Initial Commit
This commit is contained in:
commit
1b2205b505
111
.Xresources
Normal file
111
.Xresources
Normal file
@ -0,0 +1,111 @@
|
||||
! special
|
||||
*.foreground: #c5c8c6
|
||||
*.background: #1e1e1e
|
||||
*.cursorColor: #c5c8c6
|
||||
|
||||
! black
|
||||
*.color0: #282a2e
|
||||
*.color8: #373b41
|
||||
|
||||
! red
|
||||
*.color1: #a54242
|
||||
*.color9: #cc6666
|
||||
|
||||
! green
|
||||
*.color2: #8c9440
|
||||
*.color10: #b5bd68
|
||||
|
||||
! yellow
|
||||
*.color3: #de935f
|
||||
*.color11: #f0c674
|
||||
|
||||
! blue
|
||||
*.color4: #5f819d
|
||||
*.color12: #81a2be
|
||||
|
||||
! magenta
|
||||
*.color5: #85678f
|
||||
*.color13: #b294bb
|
||||
|
||||
! cyan
|
||||
*.color6: #5e8d87
|
||||
*.color14: #8abeb7
|
||||
|
||||
! white
|
||||
*.color7: #707880
|
||||
*.color15: #c5c8c6
|
||||
|
||||
|
||||
! URxvt Appearance
|
||||
|
||||
Rxvt*font: xft:JetBrainsMono-Regular:size=9
|
||||
Rxvt*boldFont: xft:JetBrainsMono-Regular:bold:size=9
|
||||
Rxvt*italicFont: xft:JetBrainsMono-Regular:italic:autohint=true:size=9
|
||||
Rxvt*boldItalicFont: xft:JetBrainsMono-Regular:bold:italic:autohint=true:size=9
|
||||
|
||||
URxvt.keysym.Shift-C-Up: font-size:increase
|
||||
URxvt.keysym.Shift-C-Down: font-size:decrease
|
||||
URxvt.keysym.Shift-C-0: font-size:reset
|
||||
|
||||
! DWM Colours
|
||||
dwm.normbordercolor: #eeeeee
|
||||
dwm.normbgcolor: #2b2b2b
|
||||
dwm.normfgcolor: #ffffff
|
||||
dwm.selbordercolor: #595959
|
||||
dwm.selbgcolor: #a58804
|
||||
dwm.selfgcolor: #ffffff
|
||||
|
||||
! Setting transparency and background
|
||||
! URxvt.depth: 32
|
||||
! URxvt*background: rgba:0000/0000/0000/cccc
|
||||
|
||||
|
||||
URxvt.letterSpace: 0
|
||||
URxvt.lineSpace: -2
|
||||
URxvt.geometry: 80x25
|
||||
URxvt.internalBorder:10
|
||||
URxvt.cursorBlink: true
|
||||
URxvt.cursorUnderline: false
|
||||
URxvt.saveline: 2048
|
||||
URxvt.scrollBar: false
|
||||
URxvt.scrollBar_right: false
|
||||
URxvt.urgentOnBell: false
|
||||
! URxvt.depth: 24
|
||||
URxvt.iso14755: false
|
||||
|
||||
!! Common Keybinds for Navigations
|
||||
URxvt.keysym.Shift-Up: command:\033]720;1\007
|
||||
URxvt.keysym.Shift-Down: command:\033]721;1\007
|
||||
URxvt.keysym.Control-Right: \033[1;5C
|
||||
URxvt.keysym.Control-Left: \033[1;5D
|
||||
|
||||
!! Copy Paste & Other Ex
|
||||
URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
|
||||
URxvt.keysym.M-Escape: perl:keyboard-select:activate
|
||||
URxvt.keysym.M-s: perl:keyboard-select:search
|
||||
URxvt.keysym.M-u: perl:url-select:select_next
|
||||
URxvt.underlineURLs: true
|
||||
URxvt.urlButton: 1
|
||||
|
||||
! Link Handling
|
||||
URxvt.url-launcher: /usr/bin/brave-browser
|
||||
URxvt.colorUL: #36a832
|
||||
URxvt.perl-ext-common: default,matcher,font-size
|
||||
URxvt.matcher.button: 1
|
||||
|
||||
! -- XIDLE -- !
|
||||
XIdle*position: sw
|
||||
XIdle*delay: 1
|
||||
XIdle*timeout: 300
|
||||
|
||||
! -- XLOCK -- !
|
||||
xlock.description: off
|
||||
xlock.echokeys: off
|
||||
xlock.info:
|
||||
xlock.background: color0
|
||||
xlock.foreground: FG
|
||||
xlock.mode: blank
|
||||
xlock.username: username:
|
||||
xlock.password: password:
|
||||
xlock.font: XFONT
|
||||
xlock.planfont: XFONT
|
280
.bashrc
Normal file
280
.bashrc
Normal file
@ -0,0 +1,280 @@
|
||||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# If set, the pattern "**" used in a pathname expansion context will
|
||||
# match all files and zero or more directories and subdirectories.
|
||||
#shopt -s globstar
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# set variable identifying the chroot you work in (used in the prompt below)
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
# off by default to not distract the user: the focus in a terminal window
|
||||
# should be on the output of commands, not on the prompt
|
||||
#force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# colored GCC warnings and errors
|
||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
||||
# some more ls aliases
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
|
||||
# Alias definitions.
|
||||
# You may want to put all your additions into a separate file like
|
||||
# ~/.bash_aliases, instead of adding them here directly.
|
||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Check for an interactive session
|
||||
[ -z "$PS1" ] && return
|
||||
|
||||
|
||||
_PROMPT() {
|
||||
_EXIT_STATUS=$?
|
||||
[ $_EXIT_STATUS != 0 ] && _EXIT_STATUS_STR=" \[\033[38;5;7m\][\[$(tput sgr0)\]\[\033[38;5;9m\]$_EXIT_STATUS\[$(tput sgr0)\]\[\033[38;5;7m\]]\[$(tput sgr0)\]"
|
||||
|
||||
_BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
|
||||
if [ ! $_BRANCH == "" ]
|
||||
then
|
||||
_BRANCH_STR="[\[$(tput sgr0)\]\[\033[38;5;11m\]$_BRANCH\[$(tput sgr0)\]\[\033[38;5;7m\]]"
|
||||
else
|
||||
_BRANCH_STR=""
|
||||
fi
|
||||
|
||||
PS1="\[\033[38;5;14m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;6m\]\h\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;7m\]╺─╸\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;7m\][\[$(tput sgr0)\]\[\033[38;5;14m\]\W\[$(tput sgr0)\]\[\033[38;5;7m\]]\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;7m\]$_BRANCH_STR\[$(tput sgr0)\]\[\033[38;5;15m\] \n\[$(tput sgr0)\]\[\033[38;5;7m\][\[$(tput sgr0)\]\[\033[38;5;11m\]\A\[$(tput sgr0)\]\[\033[38;5;7m\]]\[$(tput sgr0)\]\[\033[38;5;15m\]$_EXIT_STATUS_STR \[$(tput sgr0)\]\[\033[38;5;7m\]>>\[$(tput sgr0)\] "
|
||||
unset _EXIT_STATUS_STR
|
||||
unset _EXIT_STATUS
|
||||
unset _BRANCH_STR
|
||||
unset _BRANCH
|
||||
}
|
||||
|
||||
PROMPT_COMMAND=_PROMPT
|
||||
|
||||
# ALIASES
|
||||
|
||||
alias kali-tools='sudo python3 ~/Software/git/portkali/portkali.py'
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
alias ll="ls -lAF"
|
||||
alias h="history 25"
|
||||
alias office="cd ~ && clear && offlineimap && mu index --maildir ~/Mail"
|
||||
alias rss="newsboat"
|
||||
alias audio-ext="sysctl hw.snd.default_unit=4"
|
||||
alias audio-int="sysctl hw.snd.default_unit=0"
|
||||
alias ll="ls -lah"
|
||||
alias corona="curl https://corona-stats.online"
|
||||
# alias nasm="sudo sshfs -o uid=1000 -o gid=1000 -o allow_other root@192.168.178.200:/hdds/ /media/anon/nas "
|
||||
alias corona-germany="curl https://corona-stats.online/germany"
|
||||
alias torrent="aria2c --follow-torrent=mem --seed-time=0 -j 10"
|
||||
alias fetch="neofetch --backend w3m --source ~/Bilder/tiger.png"
|
||||
alias calendar="khal interactive"
|
||||
alias bin=" | nc termbin.com 9999"
|
||||
alias joplin="~/.npm-global/bin/joplin"
|
||||
alias chrome="chrome --enable-features=WebUIDarkMode --force-dark-mode"
|
||||
alias technobase="mpv http://listen.technobase.fm/tunein-mp3"
|
||||
alias anonradio="torsocks mpv http://anonradio.net:8000/anonradio"
|
||||
alias temps="watch -n 2 sensors"
|
||||
alias backup="~/git/rsync-time-backup/rsync_tmbackup.sh ~/ /media/anon/8TB/backup/"
|
||||
alias backup-ext="Software/git/rsync-time-backup/rsync_tmbackup.sh ~/ hetzner:/home/desktop/"
|
||||
alias cal="ncal -w3C"
|
||||
alias nanochan="torsocks w3m -o auto_image=FALSE https://nanochanqzaytwlydykbg5nxkgyjxk3zsrctxuoxdmbx5jbh2ydyprid.onion/"
|
||||
alias didw="torsocks w3m -o auto_image=FALSE http://germanyruvvy2tcw.onion"
|
||||
alias download-world="curl -s http://artscene.textfiles\.com/vt100/globe.vt | pv -L9600 -q"
|
||||
alias darknet="torsocks w3m -o auto_image=FALSE .w3m/bookmark.html"
|
||||
alias reechat="ssh weechat@vps -t screen -rd weechat"
|
||||
alias cast-tay="sudo openvpn ~/Seafile/Crypt/tay.ovpn"
|
||||
alias cast-tinfoil-hat="openvpn ~/Seafile/Crypt/vps.ovpn"
|
||||
alias xfix="~/Software/scripts/xfix.sh"
|
||||
alias goaccess="ssh tay -t goaccess -c /var/log/nginx/access.log"
|
||||
alias config="git --git-dir=$HOME/.cfg/ --work-tree=$HOME"
|
||||
alias berliner-rundfunk-91-4="mpv http://stream.berliner-rundfunk.de/brf/mp3-128/internetradio"
|
||||
alias drop="~/Software/bin/plik"
|
||||
alias p0wn.sh="./git/rice/hack.exe"
|
||||
alias bg="feh -z ~/ssd/Seafile/dat/dont\ click/Wallpapers/"
|
||||
alias dotup="dotfiles-remote-autoupdate && dotfiles-autoupdate"
|
||||
alias poweroff="sudo poweroff"
|
||||
alias installation-age="stat -c %w /"
|
||||
alias db="distrobox"
|
||||
alias kali="distrobox enter kali"
|
||||
alias arch="distrobox enter arch"
|
||||
alias fedora="distrobox enter fedora"
|
||||
alias opensuse="distrobox enter opensuse"
|
||||
alias ubuntu="distrobox enter ubuntu"
|
||||
alias gentoo="distrobox enter gentoo"
|
||||
alias debiantesting="distrobox enter debiantesting"
|
||||
alias debian="distrobox enter debian"
|
||||
alias matrix="gomuks"
|
||||
alias nasm="sshfs -o uid=1000 -o gid=1000 -o reconnect u339896@u339896.your-storagebox.de:/ /media/anon/storagebox/"
|
||||
alias nasmu="sudo umount /media/anon/storagebox"
|
||||
alias mountnx="mount -t davfs https://nx.tinfoil-hat.net/remote.php/dav/files/Admin/Backups /media/anon/nextcloud"
|
||||
alias monero=" cd ~/Software/Archive/xmrig-6.19.2/ && sudo ./xmrig -o xmr-eu1.nanopool.org:14433 -u 43JXSU4beuCXTDyBPnXfgK6jtrSTAqAaMSqVDYTdQkf1CdJsiPALLmmASAdhHsXgA698vobsjejp7VBagTA32QVbJ9UCq2A --tls --coin monero && cd"
|
||||
alias stable-diffusion="bash ~/Software/scripts/stable-diffusion.sh"
|
||||
alias kali="sudo docker run --tty --interactive kalilinux/kali-rolling"
|
||||
alias youtube-dl="yt-dlp --cookies-from-browser chrome:~/.var/app/com.brave.Browser -o '%(title).100B [%(id)s].%(ext)s'"
|
||||
alias webserver="python3 -m http.server"
|
||||
|
||||
# Functions
|
||||
|
||||
record-small-screen() {
|
||||
filename="cast-$(date +"%Y-%m-%d_%H_%M")-$(uname -s)-$(uname -m)"
|
||||
ffmpeg -f alsa -ac 2 -f x11grab -r 25 -s 1366x768 -i :0.0 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -crf 0 -threads 0 -acodec pcm_s16le -y ~/$filename.mkv
|
||||
}
|
||||
record-big-screen(){
|
||||
filename="cast-$(date +"%Y-%m-%d_%H_%M")-$(uname -s)-$(uname -m)"
|
||||
ffmpeg -f alsa -ac 2 -f x11grab -r 25 -s 1920x1080 -i :0.0 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -crf 0 -threads 0 -acodec pcm_s16le -y ~/$filename.mkv
|
||||
}
|
||||
|
||||
wetter() { curl wttr.in/$1; }
|
||||
|
||||
ytdl() {
|
||||
torsocks mpv ytdl://$@
|
||||
}
|
||||
news() {
|
||||
NNTPSERVER='nntp.aioe.org' && export NNTPSERVER
|
||||
slrn -f ~/.jnewsrc --create
|
||||
}
|
||||
|
||||
# Download Plemora emojis; requires curl and jq
|
||||
|
||||
pleroma-emoji-dl() {
|
||||
server=$1
|
||||
|
||||
curl $server/api/v1/custom_emojis | jq -r 'map(.url)|join("\n")|@text' | xargs wget --random-wait --wait=1
|
||||
}
|
||||
|
||||
# NOTES FILE(S)
|
||||
notes() {
|
||||
VAR=$1
|
||||
if [ -z $VAR ]; then
|
||||
/usr/local/bin/vim sftp://chrissly@goliath.tinfoil-hat.net/notes/default.txt
|
||||
elif [ "$VAR" == "-h" ]; then
|
||||
printf "Usage: notes [-l] [file]\n";
|
||||
printf " notes Open/Create \"default.txt\" file\n"
|
||||
printf " notes <file> Open/Create \"<file>.txt\" file\n"
|
||||
printf " notes -l Show available note files\n"
|
||||
printf " notes -h Show this help\n"
|
||||
elif [ "$VAR" == "-l" ]; then
|
||||
printf "List of notes:\n"
|
||||
ssh chrissly@sina.tinfoil-hat.net "ls -1 \$HOME/notes/*.txt | sed 's,.*/\(.*\)\.txt, - \1,g'"
|
||||
else
|
||||
vim sftp://chrissly@goliath.tinfoil-hat.net/notes/$1.txt
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# Dotfiles - Autocommit
|
||||
function dotfiles-autoupdate {
|
||||
config add -u && \
|
||||
config commit -m "Update $(date +"%Y-%m-%d %H:%M") $(uname -s)/$(uname -m)" && \
|
||||
config push origin master
|
||||
}
|
||||
|
||||
# Vars
|
||||
GPG_TTY=$(tty)
|
||||
NNTPSERVER='news.tilde.club'
|
||||
TERMINAL='/usr/local/bin/urxvt'
|
||||
|
||||
# Exports
|
||||
export GPG_TTY
|
||||
export LC_ALL=de_DE.UTF-8
|
||||
export NNTPSERVER
|
||||
export PATH=$HOME/.bin:$PATH
|
||||
export EDITOR=vim
|
||||
|
||||
bind -s 'set completion-ignore-case on'
|
||||
# source ~/Software/git/ble.sh/out/ble.sh
|
||||
|
||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
1
.config/awesome/alttab
Submodule
1
.config/awesome/alttab
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 40d70b7537e86697ec4918b8a3f84ecdc63feede
|
18
.config/awesome/autorun.sh
Executable file
18
.config/awesome/autorun.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
run() {
|
||||
if ! pgrep -f "$1" ;
|
||||
then
|
||||
"$@"&
|
||||
fi
|
||||
}
|
||||
|
||||
run blueman-applet
|
||||
run nm-applet &
|
||||
run picom &
|
||||
run pnmixer &
|
||||
run xrdb -load ~/.Xresources &
|
||||
run feh --bg-scale Bilder/wall.jpg &
|
||||
run seafile-applet &
|
||||
run nextcloud &
|
||||
run redshift &
|
1
.config/awesome/lain
Submodule
1
.config/awesome/lain
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit c489aa63acc1364851e0e51152be3db5c75e145d
|
599
.config/awesome/rc.lua
Normal file
599
.config/awesome/rc.lua
Normal file
@ -0,0 +1,599 @@
|
||||
-- If LuaRocks is installed, make sure that packages installed through it are
|
||||
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
|
||||
pcall(require, "luarocks.loader")
|
||||
|
||||
-- Standard awesome library
|
||||
local gears = require("gears")
|
||||
local awful = require("awful")
|
||||
require("awful.autofocus")
|
||||
-- Widget and layout library
|
||||
local wibox = require("wibox")
|
||||
-- Theme handling library
|
||||
local beautiful = require("beautiful")
|
||||
-- Notification library
|
||||
local naughty = require("naughty")
|
||||
local menubar = require("menubar")
|
||||
local hotkeys_popup = require("awful.hotkeys_popup")
|
||||
-- Enable hotkeys help widget for VIM and other apps
|
||||
-- when client with a matching name is opened:
|
||||
require("awful.hotkeys_popup.keys")
|
||||
|
||||
-- Load Debian menu entries
|
||||
local debian = require("debian.menu")
|
||||
local has_fdo, freedesktop = pcall(require, "freedesktop")
|
||||
|
||||
-- {{{ Error handling
|
||||
-- Check if awesome encountered an error during startup and fell back to
|
||||
-- another config (This code will only ever execute for the fallback config)
|
||||
if awesome.startup_errors then
|
||||
naughty.notify({ preset = naughty.config.presets.critical,
|
||||
title = "Oops, there were errors during startup!",
|
||||
text = awesome.startup_errors })
|
||||
end
|
||||
|
||||
-- Handle runtime errors after startup
|
||||
do
|
||||
local in_error = false
|
||||
awesome.connect_signal("debug::error", function (err)
|
||||
-- Make sure we don't go into an endless error loop
|
||||
if in_error then return end
|
||||
in_error = true
|
||||
|
||||
naughty.notify({ preset = naughty.config.presets.critical,
|
||||
title = "Oops, an error happened!",
|
||||
text = tostring(err) })
|
||||
in_error = false
|
||||
end)
|
||||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- Themes define colours, icons, font and wallpapers.
|
||||
beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
|
||||
|
||||
-- This is used later as the default terminal and editor to run.
|
||||
terminal = "urxvt"
|
||||
editor = os.getenv("vim") or "vim"
|
||||
editor_cmd = terminal .. " -e " .. editor
|
||||
|
||||
-- Default modkey.
|
||||
-- Usually, Mod4 is the key with a logo between Control and Alt.
|
||||
-- If you do not like this or do not have such a key,
|
||||
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
|
||||
-- However, you can use another modifier like Mod1, but it may interact with others.
|
||||
modkey = "Mod4"
|
||||
|
||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||
awful.layout.layouts = {
|
||||
awful.layout.suit.floating,
|
||||
-- awful.layout.suit.tile,
|
||||
-- awful.layout.suit.tile.left,
|
||||
-- awful.layout.suit.tile.bottom,
|
||||
-- awful.layout.suit.tile.top,
|
||||
-- awful.layout.suit.fair,
|
||||
-- awful.layout.suit.fair.horizontal,
|
||||
awful.layout.suit.spiral,
|
||||
-- awful.layout.suit.spiral.dwindle,
|
||||
-- awful.layout.suit.max,
|
||||
-- awful.layout.suit.max.fullscreen,
|
||||
-- awful.layout.suit.magnifier,
|
||||
-- awful.layout.suit.corner.nw,
|
||||
-- awful.layout.suit.corner.ne,
|
||||
-- awful.layout.suit.corner.sw,
|
||||
-- awful.layout.suit.corner.se,
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Menu
|
||||
-- Create a launcher widget and a main menu
|
||||
myawesomemenu = {
|
||||
{ "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
|
||||
{ "manual", terminal .. " -e man awesome" },
|
||||
{ "edit config", editor_cmd .. " " .. awesome.conffile },
|
||||
{ "restart", awesome.restart },
|
||||
{ "quit", function() awesome.quit() end },
|
||||
}
|
||||
|
||||
local menu_awesome = { "awesome", myawesomemenu, beautiful.awesome_icon }
|
||||
local menu_terminal = { "open terminal", terminal }
|
||||
|
||||
if has_fdo then
|
||||
mymainmenu = freedesktop.menu.build({
|
||||
before = { menu_awesome },
|
||||
after = { menu_terminal }
|
||||
})
|
||||
else
|
||||
mymainmenu = awful.menu({
|
||||
items = {
|
||||
menu_awesome,
|
||||
{ "Debian", debian.menu.Debian_menu.Debian },
|
||||
menu_terminal,
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
|
||||
menu = mymainmenu })
|
||||
|
||||
-- Menubar configuration
|
||||
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
|
||||
-- }}}
|
||||
|
||||
-- Keyboard map indicator and switcher
|
||||
mykeyboardlayout = awful.widget.keyboardlayout()
|
||||
|
||||
-- {{{ Wibar
|
||||
-- Create a textclock widget
|
||||
mytextclock = wibox.widget.textclock()
|
||||
|
||||
-- Create a wibox for each screen and add it
|
||||
local taglist_buttons = gears.table.join(
|
||||
awful.button({ }, 1, function(t) t:view_only() end),
|
||||
awful.button({ modkey }, 1, function(t)
|
||||
if client.focus then
|
||||
client.focus:move_to_tag(t)
|
||||
end
|
||||
end),
|
||||
awful.button({ }, 3, awful.tag.viewtoggle),
|
||||
awful.button({ modkey }, 3, function(t)
|
||||
if client.focus then
|
||||
client.focus:toggle_tag(t)
|
||||
end
|
||||
end),
|
||||
awful.button({ }, 4, function(t) awful.tag.viewnext(t.screen) end),
|
||||
awful.button({ }, 5, function(t) awful.tag.viewprev(t.screen) end)
|
||||
)
|
||||
|
||||
local tasklist_buttons = gears.table.join(
|
||||
awful.button({ }, 1, function (c)
|
||||
if c == client.focus then
|
||||
c.minimized = true
|
||||
else
|
||||
c:emit_signal(
|
||||
"request::activate",
|
||||
"tasklist",
|
||||
{raise = true}
|
||||
)
|
||||
end
|
||||
end),
|
||||
awful.button({ }, 3, function()
|
||||
awful.menu.client_list({ theme = { width = 250 } })
|
||||
end),
|
||||
awful.button({ }, 4, function ()
|
||||
awful.client.focus.byidx(1)
|
||||
end),
|
||||
awful.button({ }, 5, function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
end))
|
||||
|
||||
local function set_wallpaper(s)
|
||||
-- Wallpaper
|
||||
if beautiful.wallpaper then
|
||||
local wallpaper = beautiful.wallpaper
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
end
|
||||
end
|
||||
|
||||
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
|
||||
screen.connect_signal("property::geometry", set_wallpaper)
|
||||
|
||||
awful.screen.connect_for_each_screen(function(s)
|
||||
-- Wallpaper
|
||||
set_wallpaper(s)
|
||||
|
||||
-- Each screen has its own tag table.
|
||||
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
|
||||
|
||||
-- Create a promptbox for each screen
|
||||
s.mypromptbox = awful.widget.prompt()
|
||||
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
|
||||
-- We need one layoutbox per screen.
|
||||
s.mylayoutbox = awful.widget.layoutbox(s)
|
||||
s.mylayoutbox:buttons(gears.table.join(
|
||||
awful.button({ }, 1, function () awful.layout.inc( 1) end),
|
||||
awful.button({ }, 3, function () awful.layout.inc(-1) end),
|
||||
awful.button({ }, 4, function () awful.layout.inc( 1) end),
|
||||
awful.button({ }, 5, function () awful.layout.inc(-1) end)))
|
||||
-- Create a taglist widget
|
||||
s.mytaglist = awful.widget.taglist {
|
||||
screen = s,
|
||||
filter = awful.widget.taglist.filter.all,
|
||||
buttons = taglist_buttons
|
||||
}
|
||||
|
||||
-- Create a tasklist widget
|
||||
s.mytasklist = awful.widget.tasklist {
|
||||
screen = s,
|
||||
filter = awful.widget.tasklist.filter.currenttags,
|
||||
buttons = tasklist_buttons
|
||||
}
|
||||
|
||||
-- Create the wibox
|
||||
s.mywibox = awful.wibar({ position = "top", screen = s })
|
||||
|
||||
-- Add widgets to the wibox
|
||||
s.mywibox:setup {
|
||||
layout = wibox.layout.align.horizontal,
|
||||
{ -- Left widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
mylauncher,
|
||||
s.mytaglist,
|
||||
s.mypromptbox,
|
||||
},
|
||||
s.mytasklist, -- Middle widget
|
||||
{ -- Right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
mykeyboardlayout,
|
||||
wibox.widget.systray(),
|
||||
mytextclock,
|
||||
s.mylayoutbox,
|
||||
},
|
||||
}
|
||||
end)
|
||||
-- }}}
|
||||
|
||||
-- {{{ Mouse bindings
|
||||
root.buttons(gears.table.join(
|
||||
awful.button({ }, 3, function () mymainmenu:toggle() end),
|
||||
awful.button({ }, 4, awful.tag.viewnext),
|
||||
awful.button({ }, 5, awful.tag.viewprev)
|
||||
))
|
||||
-- }}}
|
||||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = gears.table.join(
|
||||
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
||||
{description="show help", group="awesome"}),
|
||||
awful.key({ modkey, }, "Left", awful.tag.viewprev,
|
||||
{description = "view previous", group = "tag"}),
|
||||
awful.key({ modkey, }, "Right", awful.tag.viewnext,
|
||||
{description = "view next", group = "tag"}),
|
||||
awful.key({ modkey, }, "Escape", awful.tag.history.restore,
|
||||
{description = "go back", group = "tag"}),
|
||||
|
||||
awful.key({ modkey, }, "j",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
end,
|
||||
{description = "focus next by index", group = "client"}
|
||||
),
|
||||
awful.key({ modkey, }, "k",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
end,
|
||||
{description = "focus previous by index", group = "client"}
|
||||
),
|
||||
awful.key({ modkey, }, "w", function () mymainmenu:show() end,
|
||||
{description = "show main menu", group = "awesome"}),
|
||||
|
||||
-- F keys
|
||||
-- My Bindings
|
||||
awful.key({modkey }, "F1", function () awful.util.spawn_with_shell("brave-browser") end),
|
||||
awful.key({modkey }, "F2", function () awful.util.spawn_with_shell("nemo") end),
|
||||
awful.key({modkey }, "F3", function () awful.util.spawn_with_shell("thunderbird") end),
|
||||
awful.key({modkey }, "F4", function () awful.util.spawn_with_shell("element-desktop") end),
|
||||
awful.key({modkey }, "F5", function () awful.util.spawn_with_shell("gnome-screenshot -i") end),
|
||||
|
||||
-- Layout manipulation
|
||||
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end,
|
||||
{description = "swap with next client by index", group = "client"}),
|
||||
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
|
||||
{description = "swap with previous client by index", group = "client"}),
|
||||
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end,
|
||||
{description = "focus the next screen", group = "screen"}),
|
||||
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end,
|
||||
{description = "focus the previous screen", group = "screen"}),
|
||||
awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
|
||||
{description = "jump to urgent client", group = "client"}),
|
||||
awful.key({ modkey, }, "Tab",
|
||||
function ()
|
||||
awful.client.focus.history.previous()
|
||||
if client.focus then
|
||||
client.focus:raise()
|
||||
end
|
||||
end,
|
||||
{description = "go back", group = "client"}),
|
||||
|
||||
-- Standard program
|
||||
awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end,
|
||||
{description = "open a terminal", group = "launcher"}),
|
||||
awful.key({ modkey, "Shift" }, "r", awesome.restart,
|
||||
{description = "reload awesome", group = "awesome"}),
|
||||
awful.key({ modkey, "Shift" }, "q", awesome.quit,
|
||||
{description = "quit awesome", group = "awesome"}),
|
||||
|
||||
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end,
|
||||
{description = "increase master width factor", group = "layout"}),
|
||||
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end,
|
||||
{description = "decrease master width factor", group = "layout"}),
|
||||
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1, nil, true) end,
|
||||
{description = "increase the number of master clients", group = "layout"}),
|
||||
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1, nil, true) end,
|
||||
{description = "decrease the number of master clients", group = "layout"}),
|
||||
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1, nil, true) end,
|
||||
{description = "increase the number of columns", group = "layout"}),
|
||||
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1, nil, true) end,
|
||||
{description = "decrease the number of columns", group = "layout"}),
|
||||
awful.key({ modkey, }, "space", function () awful.layout.inc( 1) end,
|
||||
{description = "select next", group = "layout"}),
|
||||
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end,
|
||||
{description = "select previous", group = "layout"}),
|
||||
|
||||
awful.key({ modkey, "Control" }, "n",
|
||||
function ()
|
||||
local c = awful.client.restore()
|
||||
-- Focus restored client
|
||||
if c then
|
||||
c:emit_signal(
|
||||
"request::activate", "key.unminimize", {raise = true}
|
||||
)
|
||||
end
|
||||
end,
|
||||
{description = "restore minimized", group = "client"}),
|
||||
|
||||
-- CUSTOM
|
||||
|
||||
awful.key({modkey}, "o", awful.client.movetoscreen),
|
||||
|
||||
awful.key({ modkey }, "l", function () awful.util.spawn("i3lock-fancy -f JetBrainsMono-Regular") end,
|
||||
{description = "lockscreen", group = "lockscreen"}),
|
||||
awful.key({ modkey }, "o", function () awful.spawn.with_shell("xdotool type $(grep -v '^#' ~/.bookmarks | dmenu -i -l 50 | cut -d' ' -f1)") end,
|
||||
{description = "lockscreen", group = "lockscreen"}),
|
||||
|
||||
|
||||
-- Prompt
|
||||
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
|
||||
{description = "run prompt", group = "launcher"}),
|
||||
|
||||
awful.key({ modkey }, "x",
|
||||
function ()
|
||||
awful.prompt.run {
|
||||
prompt = "Run Lua code: ",
|
||||
textbox = awful.screen.focused().mypromptbox.widget,
|
||||
exe_callback = awful.util.eval,
|
||||
history_path = awful.util.get_cache_dir() .. "/history_eval"
|
||||
}
|
||||
end,
|
||||
{description = "lua execute prompt", group = "awesome"}),
|
||||
-- Menubar
|
||||
awful.key({ modkey }, "d", function() menubar.show() end,
|
||||
{description = "show the menubar", group = "launcher"})
|
||||
)
|
||||
|
||||
clientkeys = gears.table.join(
|
||||
awful.key({ modkey, }, "f",
|
||||
function (c)
|
||||
c.fullscreen = not c.fullscreen
|
||||
c:raise()
|
||||
end,
|
||||
{description = "toggle fullscreen", group = "client"}),
|
||||
awful.key({ modkey, "Shift" }, "w", function (c) c:kill() end,
|
||||
{description = "close", group = "client"}),
|
||||
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
|
||||
{description = "toggle floating", group = "client"}),
|
||||
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
|
||||
{description = "move to master", group = "client"}),
|
||||
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
|
||||
{description = "move to screen", group = "client"}),
|
||||
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
|
||||
{description = "toggle keep on top", group = "client"}),
|
||||
awful.key({ modkey, }, "n",
|
||||
function (c)
|
||||
-- The client currently has the input focus, so it cannot be
|
||||
-- minimized, since minimized clients can't have the focus.
|
||||
c.minimized = true
|
||||
end ,
|
||||
{description = "minimize", group = "client"}),
|
||||
awful.key({ modkey, }, "m",
|
||||
function (c)
|
||||
c.maximized = not c.maximized
|
||||
c:raise()
|
||||
end ,
|
||||
{description = "(un)maximize", group = "client"}),
|
||||
awful.key({ modkey, "Control" }, "m",
|
||||
function (c)
|
||||
c.maximized_vertical = not c.maximized_vertical
|
||||
c:raise()
|
||||
end ,
|
||||
{description = "(un)maximize vertically", group = "client"}),
|
||||
awful.key({ modkey, "Shift" }, "m",
|
||||
function (c)
|
||||
c.maximized_horizontal = not c.maximized_horizontal
|
||||
c:raise()
|
||||
end ,
|
||||
{description = "(un)maximize horizontally", group = "client"})
|
||||
)
|
||||
|
||||
-- Bind all key numbers to tags.
|
||||
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
||||
-- This should map on the top row of your keyboard, usually 1 to 9.
|
||||
for i = 1, 9 do
|
||||
globalkeys = gears.table.join(globalkeys,
|
||||
-- View tag only.
|
||||
awful.key({ modkey }, "#" .. i + 9,
|
||||
function ()
|
||||
local screen = awful.screen.focused()
|
||||
local tag = screen.tags[i]
|
||||
if tag then
|
||||
tag:view_only()
|
||||
end
|
||||
end,
|
||||
{description = "view tag #"..i, group = "tag"}),
|
||||
-- Toggle tag display.
|
||||
awful.key({ modkey, "Control" }, "#" .. i + 9,
|
||||
function ()
|
||||
local screen = awful.screen.focused()
|
||||
local tag = screen.tags[i]
|
||||
if tag then
|
||||
awful.tag.viewtoggle(tag)
|
||||
end
|
||||
end,
|
||||
{description = "toggle tag #" .. i, group = "tag"}),
|
||||
-- Move client to tag.
|
||||
awful.key({ modkey, "Shift" }, "#" .. i + 9,
|
||||
function ()
|
||||
if client.focus then
|
||||
local tag = client.focus.screen.tags[i]
|
||||
if tag then
|
||||
client.focus:move_to_tag(tag)
|
||||
end
|
||||
end
|
||||
end,
|
||||
{description = "move focused client to tag #"..i, group = "tag"}),
|
||||
-- Toggle tag on focused client.
|
||||
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
|
||||
function ()
|
||||
if client.focus then
|
||||
local tag = client.focus.screen.tags[i]
|
||||
if tag then
|
||||
client.focus:toggle_tag(tag)
|
||||
end
|
||||
end
|
||||
end,
|
||||
{description = "toggle focused client on tag #" .. i, group = "tag"})
|
||||
)
|
||||
end
|
||||
|
||||
clientbuttons = gears.table.join(
|
||||
awful.button({ }, 1, function (c)
|
||||
c:emit_signal("request::activate", "mouse_click", {raise = true})
|
||||
end),
|
||||
awful.button({ modkey }, 1, function (c)
|
||||
c:emit_signal("request::activate", "mouse_click", {raise = true})
|
||||
awful.mouse.client.move(c)
|
||||
end),
|
||||
awful.button({ modkey }, 3, function (c)
|
||||
c:emit_signal("request::activate", "mouse_click", {raise = true})
|
||||
awful.mouse.client.resize(c)
|
||||
end)
|
||||
)
|
||||
|
||||
-- Set keys
|
||||
root.keys(globalkeys)
|
||||
-- }}}
|
||||
|
||||
-- {{{ Rules
|
||||
-- Rules to apply to new clients (through the "manage" signal).
|
||||
awful.rules.rules = {
|
||||
-- All clients will match this rule.
|
||||
{ rule = { },
|
||||
properties = { border_width = beautiful.border_width,
|
||||
border_color = beautiful.border_normal,
|
||||
focus = awful.client.focus.filter,
|
||||
raise = true,
|
||||
keys = clientkeys,
|
||||
buttons = clientbuttons,
|
||||
screen = awful.screen.preferred,
|
||||
placement = awful.placement.no_overlap+awful.placement.no_offscreen
|
||||
}
|
||||
},
|
||||
|
||||
-- Floating clients.
|
||||
{ rule_any = {
|
||||
instance = {
|
||||
"DTA", -- Firefox addon DownThemAll.
|
||||
"copyq", -- Includes session name in class.
|
||||
"pinentry",
|
||||
},
|
||||
|
||||
-- Note that the name property shown in xprop might be set slightly after creation of the client
|
||||
-- and the name shown there might not match defined rules here.
|
||||
name = {
|
||||
"Event Tester", -- xev.
|
||||
},
|
||||
role = {
|
||||
"AlarmWindow", -- Thunderbird's calendar.
|
||||
"ConfigManager", -- Thunderbird's about:config.
|
||||
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
|
||||
}
|
||||
}, properties = { floating = true }},
|
||||
|
||||
-- Add titlebars to normal clients and dialogs
|
||||
{ rule_any = {type = { "normal", "dialog" }},
|
||||
except = {class ="rxvt"},
|
||||
properties = { titlebars_enabled = true }
|
||||
},
|
||||
|
||||
-- Set Firefox to always map on the tag named "2" on screen 1.
|
||||
{ rule = { class = "rxvt" },
|
||||
properties = { screen = 1, tag = "1", tile=true } },
|
||||
{ rule = { class = "Brave", switchtotag=true },
|
||||
properties = { screen = 1, tag = "2" } },
|
||||
{ rule = { class = "Thunderbird", switchtotag=true },
|
||||
properties = { screen = 1, tag = "3" } },
|
||||
|
||||
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Signals
|
||||
-- Signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c)
|
||||
-- Set the windows at the slave,
|
||||
-- i.e. put it at the end of others instead of setting it master.
|
||||
-- if not awesome.startup then awful.client.setslave(c) end
|
||||
|
||||
if awesome.startup
|
||||
and not c.size_hints.user_position
|
||||
and not c.size_hints.program_position then
|
||||
-- Prevent clients from being unreachable after screen count changes.
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
end)
|
||||
|
||||
-- Add a titlebar if titlebars_enabled is set to true in the rules.
|
||||
client.connect_signal("request::titlebars", function(c)
|
||||
-- buttons for the titlebar
|
||||
local buttons = gears.table.join(
|
||||
awful.button({ }, 1, function()
|
||||
c:emit_signal("request::activate", "titlebar", {raise = true})
|
||||
awful.mouse.client.move(c)
|
||||
end),
|
||||
awful.button({ }, 3, function()
|
||||
c:emit_signal("request::activate", "titlebar", {raise = true})
|
||||
awful.mouse.client.resize(c)
|
||||
end)
|
||||
)
|
||||
|
||||
awful.titlebar(c) : setup {
|
||||
{ -- Left
|
||||
awful.titlebar.widget.iconwidget(c),
|
||||
buttons = buttons,
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
{ -- Middle
|
||||
{ -- Title
|
||||
align = "center",
|
||||
widget = awful.titlebar.widget.titlewidget(c)
|
||||
},
|
||||
buttons = buttons,
|
||||
layout = wibox.layout.flex.horizontal
|
||||
},
|
||||
{ -- Right
|
||||
awful.titlebar.widget.floatingbutton (c),
|
||||
awful.titlebar.widget.maximizedbutton(c),
|
||||
awful.titlebar.widget.stickybutton (c),
|
||||
awful.titlebar.widget.ontopbutton (c),
|
||||
awful.titlebar.widget.closebutton (c),
|
||||
layout = wibox.layout.fixed.horizontal()
|
||||
},
|
||||
layout = wibox.layout.align.horizontal
|
||||
}
|
||||
end)
|
||||
|
||||
-- Enable sloppy focus, so that focus follows mouse.
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
c:emit_signal("request::activate", "mouse_enter", {raise = false})
|
||||
end)
|
||||
|
||||
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||
-- }}}
|
||||
-- Autostart
|
||||
awful.spawn.with_shell("~/.config/awesome/autorun.sh")
|
||||
|
129
.config/awesome/theme.lua
Normal file
129
.config/awesome/theme.lua
Normal file
@ -0,0 +1,129 @@
|
||||
---------------------------
|
||||
-- Default awesome theme --
|
||||
---------------------------
|
||||
|
||||
local theme_assets = require("beautiful.theme_assets")
|
||||
local xresources = ~/.Xresources -- require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
local gfs = require("gears.filesystem")
|
||||
local themes_path = gfs.get_themes_dir()
|
||||
|
||||
local theme = {}
|
||||
|
||||
theme.font = "JetBrainsMono-Regular 10"
|
||||
|
||||
theme.bg_normal = "#222222"
|
||||
theme.bg_focus = "#535d6c"
|
||||
theme.bg_urgent = "#ff0000"
|
||||
theme.bg_minimize = "#444444"
|
||||
theme.bg_systray = "#535d6c"
|
||||
|
||||
theme.fg_normal = "#aaaaaa"
|
||||
theme.fg_focus = "#ffffff"
|
||||
theme.fg_urgent = "#ffffff"
|
||||
theme.fg_minimize = "#ffffff"
|
||||
|
||||
theme.useless_gap = dpi(10)
|
||||
theme.border_width = dpi(1)
|
||||
theme.border_normal = "#000000"
|
||||
theme.border_focus = "#535d6c"
|
||||
theme.border_marked = "#91231c"
|
||||
|
||||
-- There are other variable sets
|
||||
-- overriding the default one when
|
||||
-- defined, the sets are:
|
||||
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
|
||||
-- tasklist_[bg|fg]_[focus|urgent]
|
||||
-- titlebar_[bg|fg]_[normal|focus]
|
||||
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
||||
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
|
||||
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
|
||||
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
|
||||
-- Example:
|
||||
--theme.taglist_bg_focus = "#ff0000"
|
||||
|
||||
-- Generate taglist squares:
|
||||
local taglist_square_size = dpi(4)
|
||||
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
|
||||
taglist_square_size, theme.fg_normal
|
||||
)
|
||||
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
|
||||
taglist_square_size, theme.fg_normal
|
||||
)
|
||||
|
||||
-- Variables set for theming notifications:
|
||||
-- notification_font
|
||||
-- notification_[bg|fg]
|
||||
-- notification_[width|height|margin]
|
||||
-- notification_[border_color|border_width|shape|opacity]
|
||||
|
||||
-- Variables set for theming the menu:
|
||||
-- menu_[bg|fg]_[normal|focus]
|
||||
-- menu_[border_color|border_width]
|
||||
theme.menu_submenu_icon = themes_path.."default/submenu.png"
|
||||
theme.menu_height = dpi(15)
|
||||
theme.menu_width = dpi(100)
|
||||
|
||||
-- You can add as many variables as
|
||||
-- you wish and access them by using
|
||||
-- beautiful.variable in your rc.lua
|
||||
--theme.bg_widget = "#cc0000"
|
||||
|
||||
-- Define the image to load
|
||||
theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
|
||||
theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
|
||||
|
||||
theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
|
||||
theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
|
||||
|
||||
theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
|
||||
theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
|
||||
theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
|
||||
theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
|
||||
|
||||
theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
|
||||
theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
|
||||
theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
|
||||
theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
|
||||
|
||||
theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
|
||||
theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
|
||||
theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
|
||||
theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
|
||||
|
||||
theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
|
||||
theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
|
||||
theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
|
||||
theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
|
||||
|
||||
-- You can use your own layout icons like this:
|
||||
theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
|
||||
theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
|
||||
theme.layout_floating = themes_path.."default/layouts/floatingw.png"
|
||||
theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
|
||||
theme.layout_max = themes_path.."default/layouts/maxw.png"
|
||||
theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
|
||||
theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
|
||||
theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
|
||||
theme.layout_tile = themes_path.."default/layouts/tilew.png"
|
||||
theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
|
||||
theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
|
||||
theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
|
||||
theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
|
||||
theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
|
||||
theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
|
||||
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
|
||||
|
||||
-- Generate Awesome icon:
|
||||
theme.awesome_icon = theme_assets.awesome_icon(
|
||||
theme.menu_height, theme.bg_focus, theme.fg_focus
|
||||
)
|
||||
|
||||
-- Define the icon theme for application icons. If not set then the icons
|
||||
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
|
||||
theme.icon_theme = "Mate Black"
|
||||
|
||||
return theme
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
39
.config/htop/htoprc
Normal file
39
.config/htop/htoprc
Normal file
@ -0,0 +1,39 @@
|
||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# The parser is also very primitive, and not human-friendly.
|
||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||
sort_key=46
|
||||
sort_direction=-1
|
||||
tree_sort_key=46
|
||||
tree_sort_direction=-1
|
||||
hide_kernel_threads=1
|
||||
hide_userland_threads=0
|
||||
shadow_other_users=0
|
||||
show_thread_names=0
|
||||
show_program_path=0
|
||||
highlight_base_name=0
|
||||
highlight_megabytes=1
|
||||
highlight_threads=1
|
||||
highlight_changes=0
|
||||
highlight_changes_delay_secs=5
|
||||
find_comm_in_cmdline=1
|
||||
strip_exe_from_cmdline=1
|
||||
show_merged_command=0
|
||||
tree_view=1
|
||||
tree_view_always_by_pid=0
|
||||
header_margin=1
|
||||
detailed_cpu_time=0
|
||||
cpu_count_from_one=0
|
||||
show_cpu_usage=1
|
||||
show_cpu_frequency=0
|
||||
show_cpu_temperature=0
|
||||
degree_fahrenheit=0
|
||||
update_process_names=0
|
||||
account_guest_in_cpu_meter=0
|
||||
color_scheme=0
|
||||
enable_mouse=1
|
||||
delay=15
|
||||
left_meters=LeftCPUs2 Memory Swap
|
||||
left_meter_modes=1 1 1
|
||||
right_meters=RightCPUs2 Tasks LoadAverage Uptime
|
||||
right_meter_modes=1 2 2 2
|
||||
hide_function_bar=0
|
22
.config/mpd/mpd.conf
Normal file
22
.config/mpd/mpd.conf
Normal file
@ -0,0 +1,22 @@
|
||||
# Recommended location for database
|
||||
db_file "~/.config/mpd/database"
|
||||
|
||||
# If running mpd using systemd, delete this line to log directly to systemd.
|
||||
log_file "syslog"
|
||||
|
||||
# The music directory is by default the XDG directory, uncomment to amend and choose a different directory
|
||||
music_directory "~/Musik/"
|
||||
|
||||
# Uncomment to refresh the database whenever files in the music_directory are changed
|
||||
auto_update "yes"
|
||||
|
||||
# Uncomment to enable the functionalities
|
||||
playlist_directory "~/.config/mpd/playlists"
|
||||
pid_file "~/.config/mpd/pid"
|
||||
state_file "~/.local/state/mpd/state"
|
||||
sticker_file "~/.config/mpd/sticker.sql"
|
||||
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "pulse audio"
|
||||
}
|
76
.config/ncmpcpp/config
Normal file
76
.config/ncmpcpp/config
Normal file
@ -0,0 +1,76 @@
|
||||
# Playlist
|
||||
playlist_disable_highlight_delay = "0"
|
||||
playlist_display_mode = "columns"
|
||||
playlist_show_remaining_time = "yes"
|
||||
|
||||
browser_display_mode = "columns"
|
||||
autocenter_mode = "yes"
|
||||
follow_now_playing_lyrics = "yes"
|
||||
song_columns_list_format = "(10)[blue]{l} (30)[green]{a} (30)[magenta]{b} (50)[yellow]{t}"
|
||||
colors_enabled = "yes"
|
||||
main_window_color = "white"
|
||||
header_window_color = "cyan"
|
||||
volume_color = "red"
|
||||
progressbar_color = "cyan"
|
||||
statusbar_color = "white"
|
||||
active_window_border = "blue"
|
||||
|
||||
alternative_header_first_line_format = "$0$aqqu$/a {$7%a - $9}{$5%t$9}|{$8%f$9} $0$atqq$/a$9"
|
||||
alternative_header_second_line_format = "{{$6%b$9}{ [$6%y$9]}}|{%D}"
|
||||
song_list_format = "{$3%n ââ€Â‚ $9}{$7%a - $9}{$5%t$9}|{$8%f$9}$R{$6 ââ€Â‚ %b$9}{$3 ââ€Â‚ %l$9}"
|
||||
user_interface = "alternative"
|
||||
#user_interface = "classic"
|
||||
default_place_to_search_in = "database"
|
||||
|
||||
|
||||
# # visualizer
|
||||
# visualizer_fifo_path = "/tmp/mpd.fifo"
|
||||
# visualizer_output_name = "my_fifo"
|
||||
# visualizer_sync_interval = "12"
|
||||
# #visualizer_type = "wave" (spectrum/wave)
|
||||
# #visualizer_type = "spectrum" (spectrum/wave)
|
||||
# visualizer_in_stereo = "yes"
|
||||
# visualizer_look = "+|"
|
||||
|
||||
|
||||
## Navigation ##
|
||||
cyclic_scrolling = "yes"
|
||||
header_text_scrolling = "yes"
|
||||
jump_to_now_playing_song_at_start = "yes"
|
||||
lines_scrolled = "2"
|
||||
|
||||
## Disable Mouse ##
|
||||
mouse_support = no
|
||||
|
||||
## Other ##
|
||||
system_encoding = "utf-8"
|
||||
regular_expressions = "extended"
|
||||
|
||||
|
||||
|
||||
## Selected tracks ##
|
||||
selected_item_prefix = "* "
|
||||
discard_colors_if_item_is_selected = "no"
|
||||
|
||||
## Seeking ##
|
||||
incremental_seeking = "yes"
|
||||
seek_time = "1"
|
||||
|
||||
## Visivility ##
|
||||
header_visibility = "yes"
|
||||
statusbar_visibility = "yes"
|
||||
titles_visibility = "yes"
|
||||
|
||||
|
||||
progressbar_look = "=>-"
|
||||
progressbar_elapsed_color = "white"
|
||||
|
||||
now_playing_prefix = "> "
|
||||
song_status_format = " $2%a $4⟫$3⟫ $8%t $4⟫$3⟫ $5%b "
|
||||
centered_cursor = "yes"
|
||||
|
||||
# Misc
|
||||
display_bitrate = "yes"
|
||||
# enable_window_title = "no"
|
||||
ignore_leading_the = "yes"
|
||||
empty_tag_marker = ""
|
125
.config/neofetch/config.conf
Normal file
125
.config/neofetch/config.conf
Normal file
@ -0,0 +1,125 @@
|
||||
# Source: https://github.com/Chick2D/neofetch-themes/
|
||||
# Made by https://github.com/tralph3
|
||||
# Customization Wiki https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
|
||||
|
||||
# Colour config is here and in .zshrc
|
||||
|
||||
print_info() {
|
||||
info title
|
||||
info underline
|
||||
|
||||
prin "$(color 12)╭──────────── $(color 10)Software$(color 12) ────────────"
|
||||
info "$(color 12)│ $(color 14)OS" distro
|
||||
info "$(color 12)│ $(color 14)Kernel" kernel
|
||||
info "$(color 12)│ $(color 14)Packages" packages
|
||||
info "$(color 12)│ $(color 14)Shell" shell
|
||||
info "$(color 12)│ $(color 14)DE" de
|
||||
info "$(color 12)│ $(color 14)Terminal" term
|
||||
prin "$(color 12)├──────────── $(color 10)Hardware$(color 12) ────────────"
|
||||
info "$(color 12)│ $(color 14)Host" model
|
||||
info "$(color 12)│ $(color 14)CPU" cpu
|
||||
info "$(color 12)│ $(color 14)GPU" gpu
|
||||
info "$(color 12)│ $(color 14)Memory" memory
|
||||
info "$(color 12)│ $(color 14)Disk" disk
|
||||
prin "$(color 12)├───────────── $(color 10)Uptime$(color 12) ─────────────"
|
||||
info "$(color 12)│" uptime
|
||||
prin "$(color 12)╰──────────────────────────────────"
|
||||
|
||||
info cols
|
||||
|
||||
# Defaults
|
||||
|
||||
# info "OS" distro
|
||||
# info "Host" model
|
||||
# info "Kernel" kernel
|
||||
# info "Uptime" uptime
|
||||
# info "Packages" packages
|
||||
# info "Shell" shell
|
||||
# info "Resolution" resolution
|
||||
# info "DE" de
|
||||
# info "WM" wm
|
||||
# info "WM Theme" wm_theme
|
||||
# info "Theme" theme
|
||||
# info "Icons" icons
|
||||
# info "Terminal" term
|
||||
# info "Terminal Font" term_font
|
||||
# info "CPU" cpu
|
||||
# info "GPU" gpu
|
||||
# info "Memory" memory
|
||||
|
||||
# info "GPU Driver" gpu_driver # Linux/macOS only
|
||||
# info "CPU Usage" cpu_usage
|
||||
# info "Disk" disk
|
||||
# info "Battery" battery
|
||||
# info "Font" font
|
||||
# info "Song" song
|
||||
# [[ "$player" ]] && prin "Music Player" "$player"
|
||||
# info "Local IP" local_ip
|
||||
# info "Public IP" public_ip
|
||||
# info "Users" users
|
||||
# info "Locale" locale # This only works on glibc systems.
|
||||
|
||||
# info cols
|
||||
|
||||
}
|
||||
|
||||
# To know what these functions mean, go to the Customization Wiki on top
|
||||
|
||||
title_fqdn="off"
|
||||
kernel_shorthand="on"
|
||||
distro_shorthand="on"
|
||||
os_arch="off"
|
||||
uptime_shorthand="off"
|
||||
memory_percent="off"
|
||||
memory_unit="mib"
|
||||
package_managers="on"
|
||||
shell_path="off"
|
||||
shell_version="on"
|
||||
cpu_brand="on"
|
||||
cpu_speed="on"
|
||||
cpu_cores="logical"
|
||||
cpu_temp="off"
|
||||
gpu_type="all"
|
||||
refresh_rate="on"
|
||||
gtk_shorthand="on"
|
||||
gtk2="on"
|
||||
gtk3="on"
|
||||
public_ip_host="http://ident.me"
|
||||
public_ip_timeout=2
|
||||
de_version="on"
|
||||
disk_subtitle="dir"
|
||||
disk_percent="on"
|
||||
music_player="auto"
|
||||
song_format="%artist% - %title%"
|
||||
mpc_args=()
|
||||
colors=(distro)
|
||||
underline_enabled="on"
|
||||
underline_char="¨"
|
||||
separator="›"
|
||||
color_blocks="on"
|
||||
block_width=3
|
||||
block_height=1
|
||||
col_offset="auto"
|
||||
bar_char_elapsed="-"
|
||||
bar_char_total="="
|
||||
bar_border="on"
|
||||
bar_length=15
|
||||
bar_color_elapsed="distro"
|
||||
bar_color_total="distro"
|
||||
cpu_display="off"
|
||||
memory_display="off"
|
||||
battery_display="off"
|
||||
disk_display="off"
|
||||
image_source="auto"
|
||||
ascii_distro="auto"
|
||||
ascii_bold="on"
|
||||
image_loop="off"
|
||||
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
|
||||
crop_mode="normal"
|
||||
crop_offset="center"
|
||||
image_size="auto"
|
||||
gap=3
|
||||
yoffset=0
|
||||
xoffset=0
|
||||
background_color=
|
||||
stdout="off"
|
1
.config/neofetch/neofetch-themes
Submodule
1
.config/neofetch/neofetch-themes
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit c7392136bed264258c9b8788b14410e1ff06d602
|
20
.config/terminator/config
Normal file
20
.config/terminator/config
Normal file
@ -0,0 +1,20 @@
|
||||
[global_config]
|
||||
suppress_multiple_term_dialog = True
|
||||
[keybindings]
|
||||
[profiles]
|
||||
[[default]]
|
||||
background_color = "#1d1f21"
|
||||
font = JetBrains Mono Light 10
|
||||
foreground_color = "#c5c8c6"
|
||||
palette = "#282a2e:#a54242:#8c9440:#de935f:#5f819d:#85678f:#5e8d87:#707880:#373b41:#cc6666:#b5bd68:#f0c674:#81a2be:#b294bb:#8abeb7:#c5c8c6"
|
||||
use_system_font = False
|
||||
[layouts]
|
||||
[[default]]
|
||||
[[[child1]]]
|
||||
type = Terminal
|
||||
parent = window0
|
||||
profile = default
|
||||
[[[window0]]]
|
||||
type = Window
|
||||
parent = ""
|
||||
[plugins]
|
53
.newsboat/config
Normal file
53
.newsboat/config
Normal file
@ -0,0 +1,53 @@
|
||||
external-url-viewer "urlscan -dc -r 'linkhandler {$1}'"
|
||||
|
||||
download-retries 2
|
||||
download-timeout 20
|
||||
use-proxy no
|
||||
proxy-type socks5h
|
||||
proxy 127.0.0.1:9050
|
||||
user-agent "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
|
||||
history-limit 0
|
||||
reload-threads 4
|
||||
auto-reload yes
|
||||
suppress-first-reload yes
|
||||
reload-time 20
|
||||
notify-beep no
|
||||
confirm-exit yes
|
||||
save-path "~/Documents/rss/"
|
||||
browser "/usr/bin/brave-browser %u"
|
||||
|
||||
|
||||
bind-key U show-urls
|
||||
bind-key s save
|
||||
|
||||
feedlist-format "%?T?║%4i %n %8u (%T) %t &╠═══════ - %t?
|
||||
|
||||
macro , open-in-browser
|
||||
|
||||
# macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best" ; open-in-browser ; set browser linkhandler
|
||||
macro m set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler
|
||||
macro v set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler
|
||||
macro l set browser "/usr/local/bin/lynx" ; open-in-browser ; set browser linkhandler
|
||||
macro f set browser "/usr/loacl/bin/feh" ; open-in-browser ; set browser linkhandler
|
||||
|
||||
color listnormal cyan default
|
||||
color listfocus default default standout bold
|
||||
color listnormal_unread green default
|
||||
color listfocus_unread green default bold
|
||||
color info default black bold
|
||||
color article white default bold
|
||||
|
||||
highlight all "---.*---" white
|
||||
highlight feedlist ".*(0/0))" white
|
||||
highlight article "(^Feed:.*|^Title:.*|^Author:.*)" white default bold
|
||||
highlight article "(^Link:.*|^Date:.*)" default default
|
||||
highlight article "https?://[^ ]+" green default
|
||||
highlight article "^(Title):.*$" yellow default
|
||||
highlight article "\\[[0-9][0-9]*\\]" cyan default bold
|
||||
highlight article "\\[image/\\ [0-9]+\\]" white default bold
|
||||
highlight article "\\[embedded flash: [0-9][0-9]*\\]" white default bold
|
||||
highlight article ":.*\\(link\\)$" green default
|
||||
highlight article ":.*\\(image\\)$" yellow default
|
||||
highlight article ":.*\\(embedded flash\\)$" magenta default
|
||||
|
||||
|
29
.profile
Normal file
29
.profile
Normal file
@ -0,0 +1,29 @@
|
||||
# ~/.profile: executed by the command interpreter for login shells.
|
||||
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
|
||||
# exists.
|
||||
# see /usr/share/doc/bash/examples/startup-files for examples.
|
||||
# the files are located in the bash-doc package.
|
||||
|
||||
# the default umask is set in /etc/profile; for setting the umask
|
||||
# for ssh logins, install and configure the libpam-umask package.
|
||||
#umask 022
|
||||
|
||||
# if running bash
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
# include .bashrc if it exists
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
PATH="$HOME/bin:$PATH"
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/.local/bin" ] ; then
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
[ ! -s ~/.config/mpd/pid ] && mpd
|
||||
|
12
.screenrc
Normal file
12
.screenrc
Normal file
@ -0,0 +1,12 @@
|
||||
screen -t /bin/bash
|
||||
|
||||
altscreen on
|
||||
term screen-256color
|
||||
bind ',' prev
|
||||
bind '.' next
|
||||
|
||||
#change the hardstatus settings to give an window list at the bottom of the
|
||||
##screen, with the time and date and with the current window highlighted
|
||||
hardstatus alwayslastline
|
||||
# hardstatus string '%{= kG}%-Lw%{= kW}%50> %n%f* %t%{= kG}%+Lw%< %{= kG}%-=%c:%s%{-}'
|
||||
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'
|
1
.vim/pack/default/start/gruvbox
Submodule
1
.vim/pack/default/start/gruvbox
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit f1ecde848f0cdba877acb0c740320568252cc482
|