diff options
| author | Shubham Saini <shubham6405@gmail.com> | 2020-03-24 13:33:38 +0000 |
|---|---|---|
| committer | Shubham Saini <shubham6405@gmail.com> | 2020-03-24 13:33:38 +0000 |
| commit | 97fef158db8ae3e67f8765978fad7b2b216c672f (patch) | |
| tree | ee25f2060d9ba99eb1ec4657e0609ff03cc4660c | |
| parent | f334accc03076837c24e31b790c638c1d7ccf4d6 (diff) | |
mihn
| -rw-r--r-- | arch.png | bin | 947311 -> 881349 bytes | |||
| -rwxr-xr-x | bspwm/.config/bspwm/bspwmrc | 1 | ||||
| -rwxr-xr-x | polybar/.config/polybar/cmus.sh | 20 | ||||
| -rw-r--r-- | polybar/.config/polybar/config | 31 | ||||
| -rw-r--r-- | sxhkd/.config/sxhkd/sxhkdrc | 8 | ||||
| -rw-r--r-- | zsh/.zshrc | 2 |
6 files changed, 40 insertions, 22 deletions
| Binary files differ | |||
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index 3ee2105..1d30e20 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | sxhkd & | 3 | sxhkd & |
| 4 | dunst & | 4 | dunst & |
| 5 | unclutter & | 5 | unclutter & |
| 6 | xss-lock -- /home/fd0e/.local/bin/lock & | ||
| 7 | compton & | 6 | compton & |
| 8 | ~/scrypts/bat_check.sh & | 7 | ~/scrypts/bat_check.sh & |
| 9 | redshift -l 13.082680:80.270718 & | 8 | redshift -l 13.082680:80.270718 & |
diff --git a/polybar/.config/polybar/cmus.sh b/polybar/.config/polybar/cmus.sh new file mode 100755 index 0000000..7917d4c --- /dev/null +++ b/polybar/.config/polybar/cmus.sh | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | prepend_zero () { | ||
| 4 | seq -f "%02g" $1 $1 | ||
| 5 | } | ||
| 6 | |||
| 7 | artist=$(echo -n $(cmus-remote -C status | grep "tag artist" | cut -c 12-)) | ||
| 8 | |||
| 9 | if [[ $artist = *[!\ ]* ]]; then | ||
| 10 | song=$(echo -n $(cmus-remote -C status | grep title | cut -c 11-)) | ||
| 11 | position=$(cmus-remote -C status | grep position | cut -c 10-) | ||
| 12 | minutes1=$(prepend_zero $(($position / 60))) | ||
| 13 | seconds1=$(prepend_zero $(($position % 60))) | ||
| 14 | duration=$(cmus-remote -C status | grep duration | cut -c 10-) | ||
| 15 | minutes2=$(prepend_zero $(($duration / 60))) | ||
| 16 | seconds2=$(prepend_zero $(($duration % 60))) | ||
| 17 | echo -n "$artist - $song [$minutes1:$seconds1/$minutes2:$seconds2]" | ||
| 18 | else | ||
| 19 | echo | ||
| 20 | fi | ||
diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index fa869f3..1e91738 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config | |||
| @@ -34,7 +34,7 @@ module-margin-right = 1.5 | |||
| 34 | font-0 = Hermit:style=medium:size=9;1 | 34 | font-0 = Hermit:style=medium:size=9;1 |
| 35 | modules-left = alsa battery date time bspwm | 35 | modules-left = alsa battery date time bspwm |
| 36 | modules-center = | 36 | modules-center = |
| 37 | ;modules-right = spotify mpd | 37 | modules-right = cmus |
| 38 | tray-position = right | 38 | tray-position = right |
| 39 | cursor-click = pointer | 39 | cursor-click = pointer |
| 40 | cursor-scroll = ns-resize | 40 | cursor-scroll = ns-resize |
| @@ -143,21 +143,20 @@ format = <label> | |||
| 143 | format-foreground = #7b8c58 | 143 | format-foreground = #7b8c58 |
| 144 | exec = python ~/.config/polybar/spotify.py -f '{artist}: {song}' | 144 | exec = python ~/.config/polybar/spotify.py -f '{artist}: {song}' |
| 145 | 145 | ||
| 146 | ;[module/cmus] | 146 | [module/cmus] |
| 147 | ;type = custom/script | 147 | type = custom/script |
| 148 | ;exec = ~/.config/polybar/cmus.sh | 148 | exec = ~/.config/polybar/cmus.sh |
| 149 | ;exec-if = pgrep -x cmus | 149 | exec-if = pgrep -x cmus |
| 150 | ;interval = 1 | 150 | interval = 1 |
| 151 | ;click-left = cmus-remote --next | 151 | click-left = cmus-remote --next |
| 152 | ;click-right = cmus-remote --prev | 152 | click-right = cmus-remote --prev |
| 153 | ;click-middle = cmus-remote --pause | 153 | click-middle = cmus-remote --pause |
| 154 | ;scroll-up = cmus-remote --volume +5% | 154 | scroll-up = cmus-remote --volume +5% |
| 155 | ;scroll-down = cmus-remote --volume -5% | 155 | scroll-down = cmus-remote --volume -5% |
| 156 | ;format = <label> | 156 | format = mus: <label> |
| 157 | ;format-prefix = " " | 157 | format-foreground = #7b8c58 |
| 158 | ;format-foreground = #7b8c58 | 158 | label = %output% |
| 159 | ;label = %output% | 159 | label-maxlen = 50 |
| 160 | ;label-maxlen = 50 | ||
| 161 | 160 | ||
| 162 | [module/mpd] | 161 | [module/mpd] |
| 163 | type = internal/mpd | 162 | type = internal/mpd |
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 22fe28e..fb3fc0e 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc | |||
| @@ -14,10 +14,10 @@ super + i | |||
| 14 | ~/.config/rofi/rofi-wifi.sh | 14 | ~/.config/rofi/rofi-wifi.sh |
| 15 | 15 | ||
| 16 | # cmus (I don't know why mpDris is not supported. Got it musl problem lol) | 16 | # cmus (I don't know why mpDris is not supported. Got it musl problem lol) |
| 17 | #super + {u,n} | 17 | super + {u,n} |
| 18 | # cmus-remote {-p,-n} | 18 | cmus-remote {-p,-n} |
| 19 | #super + shift + {u,n} | 19 | super + shift + {u,n} |
| 20 | # cmus-remote {-u,-r} | 20 | cmus-remote {-u,-r} |
| 21 | 21 | ||
| 22 | 22 | ||
| 23 | # make sxhkd reload its configuration files: | 23 | # make sxhkd reload its configuration files: |
| @@ -112,7 +112,7 @@ alias py2="/bin/python2" | |||
| 112 | alias pg="ping google.com" | 112 | alias pg="ping google.com" |
| 113 | alias pubip="curl ipinfo.io/ip" | 113 | alias pubip="curl ipinfo.io/ip" |
| 114 | alias k="pkill " | 114 | alias k="pkill " |
| 115 | alias m="ncmpcpp" | 115 | alias m="cmus" |
| 116 | alias vimrc="vim $HOME/.config/nvim/init.vim" | 116 | alias vimrc="vim $HOME/.config/nvim/init.vim" |
| 117 | alias poly="vim $HOME/.config/polybar/config" | 117 | alias poly="vim $HOME/.config/polybar/config" |
| 118 | alias v="/usr/bin/nvim" | 118 | alias v="/usr/bin/nvim" |
