diff options
| -rwxr-xr-x | bspwm/.config/bspwm/bspwmrc | 1 | ||||
| -rw-r--r-- | ncmpcpp/.ncmpcpp/config | 92 | ||||
| -rwxr-xr-x | polybar/.config/polybar/cmus.sh | 20 | ||||
| -rw-r--r-- | polybar/.config/polybar/config | 37 | ||||
| -rw-r--r-- | zsh/.zshrc | 2 |
5 files changed, 113 insertions, 39 deletions
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index ae8ea3b..f94bc2e 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | sxhkd & | 3 | sxhkd & |
| 4 | dunst & | 4 | dunst & |
| 5 | unclutter & | 5 | unclutter & |
| 6 | mpDris2 & | ||
| 6 | xss-lock -- /home/fd0e/.local/bin/lock & | 7 | xss-lock -- /home/fd0e/.local/bin/lock & |
| 7 | /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & | 8 | /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & |
| 8 | compton --config ~/.config/compton.conf & | 9 | compton --config ~/.config/compton.conf & |
diff --git a/ncmpcpp/.ncmpcpp/config b/ncmpcpp/.ncmpcpp/config new file mode 100644 index 0000000..cf99ab7 --- /dev/null +++ b/ncmpcpp/.ncmpcpp/config | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | ## | ||
| 2 | # Files | ||
| 3 | mpd_music_dir = "~/Music" | ||
| 4 | lyrics_directory = ~/.ncmpcpp/lyrics | ||
| 5 | ncmpcpp_directory = ~/.ncmpcpp | ||
| 6 | mpd_host = "localhost" | ||
| 7 | mpd_port = "6600" | ||
| 8 | mpd_connection_timeout = "5" | ||
| 9 | mpd_crossfade_time = "5" | ||
| 10 | |||
| 11 | # Playlist | ||
| 12 | playlist_disable_highlight_delay = "0" | ||
| 13 | playlist_display_mode = "columns" | ||
| 14 | playlist_show_remaining_time = "yes" | ||
| 15 | |||
| 16 | browser_display_mode = "columns" | ||
| 17 | autocenter_mode = "yes" | ||
| 18 | fancy_scrolling = "yes" | ||
| 19 | follow_now_playing_lyrics = "yes" | ||
| 20 | display_screens_numbers_on_start = "yes" | ||
| 21 | ignore_leading_the = "yes" | ||
| 22 | lyrics_database = "1" | ||
| 23 | song_columns_list_format = "(10)[blue]{l} (30)[green]{a} (30)[magenta]{b} (50)[yellow]{t}" | ||
| 24 | colors_enabled = "yes" | ||
| 25 | main_window_color = "white" | ||
| 26 | main_window_highlight_color = "blue" | ||
| 27 | header_window_color = "cyan" | ||
| 28 | volume_color = "red" | ||
| 29 | progressbar_color = "cyan" | ||
| 30 | statusbar_color = "white" | ||
| 31 | active_column_color = "cyan" | ||
| 32 | active_window_border = "blue" | ||
| 33 | |||
| 34 | alternative_header_first_line_format = "$0$aqqu$/a {$7%a - $9}{$5%t$9}|{$8%f$9} $0$atqq$/a$9" | ||
| 35 | alternative_header_second_line_format = "{{$6%b$9}{ [$6%y$9]}}|{%D}" | ||
| 36 | song_list_format = "{$3%n │ $9}{$7%a - $9}{$5%t$9}|{$8%f$9}$R{$6 │ %b$9}{$3 │ %l$9}" | ||
| 37 | user_interface = "alternative" | ||
| 38 | #user_interface = "classic" | ||
| 39 | default_place_to_search_in = "database" | ||
| 40 | |||
| 41 | |||
| 42 | # visualizer | ||
| 43 | visualizer_fifo_path = "/tmp/mpd.fifo" | ||
| 44 | visualizer_output_name = "my_fifo" | ||
| 45 | visualizer_sync_interval = "12" | ||
| 46 | #visualizer_type = "wave" (spectrum/wave) | ||
| 47 | visualizer_type = "spectrum" (spectrum/wave) | ||
| 48 | visualizer_in_stereo = "yes" | ||
| 49 | visualizer_look = "+|" | ||
| 50 | |||
| 51 | |||
| 52 | ## Navigation ## | ||
| 53 | cyclic_scrolling = "yes" | ||
| 54 | header_text_scrolling = "yes" | ||
| 55 | jump_to_now_playing_song_at_start = "yes" | ||
| 56 | lines_scrolled = "2" | ||
| 57 | |||
| 58 | ## Other ## | ||
| 59 | system_encoding = "utf-8" | ||
| 60 | regular_expressions = "extended" | ||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | ## Selected tracks ## | ||
| 65 | selected_item_prefix = "* " | ||
| 66 | discard_colors_if_item_is_selected = "no" | ||
| 67 | |||
| 68 | ## Seeking ## | ||
| 69 | incremental_seeking = "yes" | ||
| 70 | seek_time = "1" | ||
| 71 | |||
| 72 | ## Visivility ## | ||
| 73 | header_visibility = "yes" | ||
| 74 | statusbar_visibility = "yes" | ||
| 75 | titles_visibility = "yes" | ||
| 76 | |||
| 77 | |||
| 78 | progressbar_look = "=>-" | ||
| 79 | progressbar_boldness = "yes" | ||
| 80 | progressbar_elapsed_color = "white" | ||
| 81 | |||
| 82 | now_playing_prefix = "> " | ||
| 83 | song_status_format = " $2%a $4⟫$3⟫ $8%t $4⟫$3⟫ $5%b " | ||
| 84 | autocenter_mode = "yes" | ||
| 85 | centered_cursor = "yes" | ||
| 86 | |||
| 87 | # Misc | ||
| 88 | display_bitrate = "yes" | ||
| 89 | # enable_window_title = "no" | ||
| 90 | follow_now_playing_lyrics = "yes" | ||
| 91 | ignore_leading_the = "yes" | ||
| 92 | empty_tag_marker = "" | ||
diff --git a/polybar/.config/polybar/cmus.sh b/polybar/.config/polybar/cmus.sh deleted file mode 100755 index 7917d4c..0000000 --- a/polybar/.config/polybar/cmus.sh +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 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 8f9701d..8260bc9 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config | |||
| @@ -35,7 +35,7 @@ font-0 = Hermit:style=medium:pixelsize=10;1 | |||
| 35 | font-1 = FontAwesome:style=Regular:size=10;1 | 35 | font-1 = FontAwesome:style=Regular:size=10;1 |
| 36 | modules-left = pulseaudio battery date time bspwm | 36 | modules-left = pulseaudio battery date time bspwm |
| 37 | modules-center = | 37 | modules-center = |
| 38 | modules-right = spotify cmus xwindow | 38 | modules-right = spotify mpd |
| 39 | tray-position = right | 39 | tray-position = right |
| 40 | cursor-click = pointer | 40 | cursor-click = pointer |
| 41 | cursor-scroll = ns-resize | 41 | cursor-scroll = ns-resize |
| @@ -152,26 +152,26 @@ format = <label> | |||
| 152 | format-foreground = #7b8c58 | 152 | format-foreground = #7b8c58 |
| 153 | exec = python ~/.config/polybar/spotify.py -f '{artist}: {song}' | 153 | exec = python ~/.config/polybar/spotify.py -f '{artist}: {song}' |
| 154 | 154 | ||
| 155 | [module/cmus] | 155 | ;[module/cmus] |
| 156 | type = custom/script | 156 | ;type = custom/script |
| 157 | exec = ~/.config/polybar/cmus.sh | 157 | ;exec = ~/.config/polybar/cmus.sh |
| 158 | exec-if = pgrep -x cmus | 158 | ;exec-if = pgrep -x cmus |
| 159 | interval = 1 | 159 | ;interval = 1 |
| 160 | click-left = cmus-remote --next | 160 | ;click-left = cmus-remote --next |
| 161 | click-right = cmus-remote --prev | 161 | ;click-right = cmus-remote --prev |
| 162 | click-middle = cmus-remote --pause | 162 | ;click-middle = cmus-remote --pause |
| 163 | scroll-up = cmus-remote --volume +5% | 163 | ;scroll-up = cmus-remote --volume +5% |
| 164 | scroll-down = cmus-remote --volume -5% | 164 | ;scroll-down = cmus-remote --volume -5% |
| 165 | format = <label> | 165 | ;format = <label> |
| 166 | format-prefix = " " | 166 | ;format-prefix = " " |
| 167 | format-foreground = #7b8c58 | 167 | ;format-foreground = #7b8c58 |
| 168 | label = %output% | 168 | ;label = %output% |
| 169 | label-maxlen = 50 | 169 | ;label-maxlen = 50 |
| 170 | 170 | ||
| 171 | [module/mpd] | 171 | [module/mpd] |
| 172 | type = internal/mpd | 172 | type = internal/mpd |
| 173 | label-offline = mpd is offline | 173 | label-offline = mpd is offline |
| 174 | format-online = <label-song> <icon-prev> <toggle> <icon-next> | 174 | format-online = <label-song> <icon-prev> <toggle> <icon-next> |
| 175 | format-offline = <label-offline> | 175 | format-offline = <label-offline> |
| 176 | host = 127.0.0.1 | 176 | host = 127.0.0.1 |
| 177 | port = 6600 | 177 | port = 6600 |
| @@ -180,8 +180,9 @@ icon-stop = | |||
| 180 | icon-play = | 180 | icon-play = |
| 181 | icon-pause = | 181 | icon-pause = |
| 182 | icon-next = | 182 | icon-next = |
| 183 | label-song-maxlen = 25 | 183 | label-song-maxlen = 40 |
| 184 | label-song-ellipsis = true | 184 | label-song-ellipsis = true |
| 185 | label-song-foreground = #7b8c58 | ||
| 185 | bar-progress-width = 10 | 186 | bar-progress-width = 10 |
| 186 | bar-progress-indicator = | | 187 | bar-progress-indicator = | |
| 187 | bar-progress-fill = ─ | 188 | bar-progress-fill = ─ |
| @@ -116,7 +116,7 @@ alias py2="/bin/python2" | |||
| 116 | alias pubip="curl ipinfo.io/ip" | 116 | alias pubip="curl ipinfo.io/ip" |
| 117 | alias mirror="sudo reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist" | 117 | alias mirror="sudo reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist" |
| 118 | alias k="pkill " | 118 | alias k="pkill " |
| 119 | alias m="cmus" | 119 | alias m="ncmpcpp" |
| 120 | alias vimrc="vim $HOME/.config/nvim/init.vim" | 120 | alias vimrc="vim $HOME/.config/nvim/init.vim" |
| 121 | alias poly="vim $HOME/.config/polybar/config" | 121 | alias poly="vim $HOME/.config/polybar/config" |
| 122 | alias z="zathura" | 122 | alias z="zathura" |
