From 38558ace806c5f29bd207fc14ce038c9d9e50644 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Wed, 3 Apr 2019 00:48:22 +0100 Subject: Add expantab to vimrc --- Editor/vimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Editor/vimrc b/Editor/vimrc index 5b3510e..19903e9 100644 --- a/Editor/vimrc +++ b/Editor/vimrc @@ -76,10 +76,10 @@ nnoremap v :!open '' "read spaces in path's set isfname+=32 -""Set tab to two spaces -"set expandtab -"set shiftwidth=2 -"set softtabstop=2 +"Set tab to two spaces +set expandtab +set shiftwidth=2 +set softtabstop=2 "Make tab into another escape -- cgit v1.2.3 From c3c941727b05fc1637e891a2c424a9dae5d10091 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Wed, 3 Apr 2019 00:48:49 +0100 Subject: Add bb and sp aliases --- Shell/bash_aliases | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Shell/bash_aliases b/Shell/bash_aliases index 27a1bf9..3e60c1e 100644 --- a/Shell/bash_aliases +++ b/Shell/bash_aliases @@ -1,6 +1,10 @@ #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/' +alias sp='spotify &e' + +#bauerbill +alias bb='baurebill' #ip alias ip='ip -c' @@ -41,7 +45,7 @@ alias radiorock="unbuffer mpv 'http://relay.181.fm:8028' |grep --line-buffered i alias radio40="unbuffer mpv 'http://relay.181.fm:8070' |grep --line-buffered icy-title | sed -u 's/.*icy-title: /p/' > /tmp/panel-fifo" alias radiolounge="unbuffer mpv 'http://sc-tcl.1.fm:8010/' |grep --line-buffered icy-title | sed -u 's/.*icy-title: /p/' > /tmp/panel-fifo" alias irc='autossh -M 0 -o "ServerAliveInterval 45" -o "ServerAliveCountMax 2" -p 55022 vasko@skozl.com' -alias vps='mosh vasko@108.61.173.91 -- screen -rd' +alias vps='mosh vasko@108.61.173.91 -- TERM=xterm-xfree86 screen -rd' alias desk='mosh -p 55101:55999 --ssh="ssh -p 55022" vsz@108.61.173.91 -- screen -rd' alias sourcel='source ~/.bash_aliases' alias ,.='fc -e -' -- cgit v1.2.3 From 75f13a4ed020a9cdea4cda1775b4b1ebe5c3c3ea Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Wed, 3 Apr 2019 00:49:23 +0100 Subject: Replace vimb with chromium in mailcap --- Mail/mutt/mailcap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mail/mutt/mailcap b/Mail/mutt/mailcap index 2ff7cf2..bc80a85 100644 --- a/Mail/mutt/mailcap +++ b/Mail/mutt/mailcap @@ -1,3 +1,3 @@ application/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; rifle /tmp/mutt/$(basename %s) & -text/html; vimb '%s' &; test=test -n "$DISPLAY"; needsterminal; +text/html; chromium '%s' &; test=test -n "$DISPLAY"; needsterminal; text/html; w3m -I %{charset} -T text/html; copiousoutput; -- cgit v1.2.3 From f098edccda3c8d1ab02a7bae06cdb450ad0ef60d Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Wed, 3 Apr 2019 00:51:06 +0100 Subject: Get rid of xcape now that we are using qmk firmware --- Xinit/xinitrc | 1 - 1 file changed, 1 deletion(-) diff --git a/Xinit/xinitrc b/Xinit/xinitrc index 5b69322..5b6cec9 100755 --- a/Xinit/xinitrc +++ b/Xinit/xinitrc @@ -25,7 +25,6 @@ statnot ~/dotfiles/Panel/statnot/config & ~/.tools/clipboard init # Keyboard bindings -xcape -t 300 -e 'Shift_L=parenleft;Shift_R=parenright;Hyper_L=Shift_L|exclam;Hyper_R=Shift_L|question' & xset r 64 xset r 133 xset r rate 170 60 -- cgit v1.2.3 From b1dbf62ab9dcad03138a52a8596dccdf9286d958 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Wed, 3 Apr 2019 00:51:56 +0100 Subject: Add spotify volume commands --- Window_Manager/ratpoison/ratpoisonrc.conf | 32 +++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/Window_Manager/ratpoison/ratpoisonrc.conf b/Window_Manager/ratpoison/ratpoisonrc.conf index 757d186..8b00a30 100644 --- a/Window_Manager/ratpoison/ratpoisonrc.conf +++ b/Window_Manager/ratpoison/ratpoisonrc.conf @@ -1,13 +1,15 @@ #using jcs hacks # info: C=control, M=meta/alt, s=super, S=shift, H = Hyper # xnest for testing + +set onlyborder 0 + escape grave definekey top s-grave meta definekey top Arabic_dammatan meta #set quiet 1 - set historyexpansion 1 #find files script @@ -54,7 +56,7 @@ showpanel alias showborder set border 2 alias hideborder set border 0 -bordscript +#bordscript ###################################### # Panel @@ -73,7 +75,7 @@ addhook switchwin barsend #addhook deletewindow barsend addhook switchframe barsend addhook switchgroup barsend -addhook switchgroup bordscript +#addhook switchgroup bordscript #addhook titlechanged barsend #addhook key barsend @@ -105,7 +107,7 @@ bind V hsplit 2/3 bind s vsplit bind S vsplit 2/3 bind d remove -bind space exec urxvt +bind space exec alacritty bind o only bind semicolon colon bind e exec @@ -126,7 +128,7 @@ alias paneltoggle exec ~/.config/ratpoison/paneltoggle -addhook key bordscript +#addhook key bordscript definekey top s-b bordtoggle definekey top s-p paneltoggle @@ -176,18 +178,28 @@ definekey top KP_Enter exec ~/Dropbox/speech/run-duplex.sh # Volume Control #------------------------------------------------------------- # Up -#alias volup exec amixer -q set Master 5+ && ratpoison -c "echo `$HOME/.config/ratpoison/volind`" & volume -f 'V%i' > /tmp/panel-fifo -alias volup exec amixer -q set Master 5+ && volume -f 'V%i' > /tmp/panel-fifo +#alias volup exec amixer -D pulse -q set Master 5+ && ratpoison -c "echo `$HOME/.config/ratpoison/volind`" & volume -f 'V%i' > /tmp/panel-fifo +alias volup exec pactl set-sink-volume `pactl list sinks short | perl -ne '/^(\d*)/; $x=$1; END { print $x }'` +2% && volume -f 'V%i' > /tmp/panel-fifo +alias voldown exec pactl set-sink-volume `pactl list sinks short | perl -ne '/^(\d*)/; $x=$1; END { print $x }'` -2% && volume -f 'V%i' > /tmp/panel-fifo -definekey top XF86AudioRaiseVolume volup +alias spvolup exec pactl set-sink-input-volume `.config/ratpoison/get_spotify_sink` +2% +alias spvoldown exec pactl set-sink-input-volume `.config/ratpoison/get_spotify_sink` -2% + + +definekey top M-XF86AudioRaiseVolume spvolup definekey top s-Prior volup definekey top s-q volup +definekey top XF86AudioPlay exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause +definekey top XF86AudioStop exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop +definekey top XF86AudioNext exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next +definekey top XF86AudioPrev exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous + # Down -#alias voldown exec amixer -q set Master 5- && ratpoison -c "echo `$HOME/.config/ratpoison/volind`" & volume -f 'V%i' > /tmp/panel-fifo -alias voldown exec amixer -q set Master 5- && volume -f 'V%i' > /tmp/panel-fifo +#alias voldown exec amixer -D pulse -q set Master 5- && ratpoison -c "echo `$HOME/.config/ratpoison/volind`" & volume -f 'V%i' > /tmp/panel-fifo definekey top XF86AudioLowerVolume voldown +definekey top M-XF86AudioLowerVolume spvoldown definekey top s-Next voldown definekey top s-a voldown -- cgit v1.2.3 From 9e057a7cdeb3eddbe842bf3e5902753e7b556e7b Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Wed, 3 Apr 2019 00:59:03 +0100 Subject: Add script to get spotify sink number --- Window_Manager/ratpoison/get_spotify_sink | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 Window_Manager/ratpoison/get_spotify_sink diff --git a/Window_Manager/ratpoison/get_spotify_sink b/Window_Manager/ratpoison/get_spotify_sink new file mode 100755 index 0000000..58ba5e9 --- /dev/null +++ b/Window_Manager/ratpoison/get_spotify_sink @@ -0,0 +1,4 @@ +#!/bin/sh +pacmd list-sink-inputs | +tr '\n' '\r' | +perl -ne 's/ *index: ([0-9]+).+?application\.name = "([^\r]+)"\r.+?(?=index:|$)/\2:\1\r/g; print $1 if $2=="Spotify"' -- cgit v1.2.3