diff options
-rw-r--r-- | Shell/bash_aliases | 8 | ||||
-rw-r--r-- | Shell/zshrc | 29 | ||||
-rw-r--r-- | Window_Manager/ratpoison/ratpoisonrc.conf | 13 | ||||
-rw-r--r-- | Window_Manager/ratpoisonrc | 3 |
4 files changed, 40 insertions, 13 deletions
diff --git a/Shell/bash_aliases b/Shell/bash_aliases index 80ca10d..d9612b7 100644 --- a/Shell/bash_aliases +++ b/Shell/bash_aliases @@ -1,6 +1,9 @@ #if you wanna change timezone just copy one of /usr/share/zoneinfo/place to /etc/localtime # awesome perl echo 'one two three'| perl -lne 'print $2 if /one(.*)three/' +# mpv +alias mpvl='mpv --ytdl-format=43' + #Micrcontroller alias serial='micronucleus --run ~/Sync/Programming/serial.hex' @@ -19,6 +22,9 @@ alias chemistry='vim ~/Sync/Notes/Chemistry/chemistry.txt' alias english='vim ~/Sync/Notes/English/english.txt' alias swedish='vim ~/Sync/Notes/Swedish/swedish.txt' +#quiet +alias quiet='sudo hdparm -y /dev/sda' + #zombify alias zombify='sudo -u dork /home/vasko/dorknet/dork zombify' @@ -130,7 +136,7 @@ alias cfgpanel=' fgpanel --fg-root=/usr/share/games/flightgear --panel=Aircraft/ alias cfgfs='optirun fgfs --generic=socket,out,20,127.0.0.1,34200,udp,../Aircraft/c172p/Panels/FGPanel_Protocol_c172p' #alias xonotic='cd ~/.Xonotic && optirun ~/.Xonotic/xonotic-linux64-glx -sessionid vaskozl' alias blizz='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Battle.net/Battle.net.exe' -alias starcraft='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/StarCraft\ II/Support/SC2Switcher.exe' +alias starcraft='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/StarCraft\ II/Support64/SC2Switcher_x64.exe' alias lotv='wine "/home/vasko/.wine/drive_c/Program Files (x86)/StarCraft II - Legacy of the Void Beta/Support/SC2Switcher.exe"' # Network tools diff --git a/Shell/zshrc b/Shell/zshrc index e0ad925..3e4b71d 100644 --- a/Shell/zshrc +++ b/Shell/zshrc @@ -23,7 +23,7 @@ source ~/.bash_aliases export GPGKEY="895134C5" export PATH="$HOME/bin:$PATH" -export EDITOR="vim" +export EDITOR="nvim" export BROWSER="~/.ratposon/firesend" export LD_LIBRARY_PATH=/usr/local/lib export wiki_browser='firefox' @@ -57,10 +57,29 @@ fi export ANDROID_HOME=/opt/android-sdk -#fortune -s | cowsay -f $(ls /usr/share/cows/ | shuf -n1) -#fortune -s -#~/archey - +~/bin/sysinfo +case $TERM in + (*xterm* | *rxvt*) + # Write some info to terminal title. + # This is seen when the shell prompts for input. + function precmd { +if pgrep "panel" > /dev/null +then + print -Pn "\e]0;%(1j,%j job%(2j|s|); ,)%1~\a" + ~/dotfiles/Panel/lemonbar/windows +fi + } + # Write command and args to terminal title. + # This is seen while the shell waits for a command to complete. + function preexec { +if pgrep "panel" > /dev/null +then + printf "\033]0;%s\a" "$1" + ~/dotfiles/Panel/lemonbar/windows +fi + } + ;; +esac diff --git a/Window_Manager/ratpoison/ratpoisonrc.conf b/Window_Manager/ratpoison/ratpoisonrc.conf index dc2e947..535bb14 100644 --- a/Window_Manager/ratpoison/ratpoisonrc.conf +++ b/Window_Manager/ratpoison/ratpoisonrc.conf @@ -49,10 +49,12 @@ alias hidepanel set padding 0 0 0 0 showpanel -alias showborder set border 3 +alias showborder set border 2 alias hideborder set border 0 + set gap 1 -bordscript +showborder +#bordscript ###################################### # Panel @@ -85,7 +87,7 @@ unmanage ratbar.pl #bind W workspace_menu -#Get F-keys to switch windows now in /usr/bin/rpws +#Switching workspaces definekey top F1 exec ratpoison -c 'vselect 1' && echo "D1" > /tmp/panel-fifo && ratpoison -c barsend && ratpoison -c bordscript definekey top F2 exec ratpoison -c 'vselect 2' && echo "D2" > /tmp/panel-fifo && ratpoison -c barsend && ratpoison -c bordscript definekey top F3 exec ratpoison -c 'vselect 3' && echo "D3" > /tmp/panel-fifo && ratpoison -c barsend && ratpoison -c bordscript @@ -110,7 +112,6 @@ definekey top s-8 exec ratpoison -c 'vselect 8' && echo "D8" > /tmp/panel-fifo definekey top s-9 exec ratpoison -c 'vselect 9' && printf "D9\nIxlear\n" > /tmp/panel-fifo && ratpoison -c barsend && ratpoison -c bordscript definekey top s-0 exec ratpoison -c 'vselect 10' && printf "D10\nIclear\n" > /tmp/panel-fifo && ratpoison -c barsend && ratpoison -c bordscript & xset -led named "Scroll Lock" - definekey top M-F1 exec ratpoison -c 'vmove 1' && echo "D1" > /tmp/panel-fifo && ratpoison -c barsend definekey top M-F2 exec ratpoison -c 'vmove 2' && echo "D2" > /tmp/panel-fifo && ratpoison -c barsend definekey top M-F3 exec ratpoison -c 'vmove 3' && echo "D3" > /tmp/panel-fifo && ratpoison -c barsend @@ -209,7 +210,7 @@ alias paneltoggle exec ~/.config/ratpoison/paneltoggle -addhook key bordscript +#addhook key bordscript definekey top s-b bordtoggle definekey top s-p paneltoggle @@ -225,7 +226,7 @@ alias browse_selection exec .config/ratpoison/exec_to_workspace 2 vimb `ratpoiso bind B banish # Paste with X selection -alias insert_X_selection exec ~/bin/paste +alias insert_X_selection meta S-Insert bind i insert_X_selection diff --git a/Window_Manager/ratpoisonrc b/Window_Manager/ratpoisonrc index fab4c6d..0005637 100644 --- a/Window_Manager/ratpoisonrc +++ b/Window_Manager/ratpoisonrc @@ -1,5 +1,6 @@ set virtuals 24 vinit -alias config source /home/vasko/.tools/ratpoisonrc.conf +chdir +alias config source dotfiles/Windows_Manager/ratpoison/ratpoisonrc.conf config bind C-r config |