summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbspwm/.config/bspwm/bspwmrc1
-rw-r--r--ncmpcpp/.ncmpcpp/config92
-rwxr-xr-xpolybar/.config/polybar/cmus.sh20
-rw-r--r--polybar/.config/polybar/config37
-rw-r--r--zsh/.zshrc2
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 @@
3sxhkd & 3sxhkd &
4dunst & 4dunst &
5unclutter & 5unclutter &
6mpDris2 &
6xss-lock -- /home/fd0e/.local/bin/lock & 7xss-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 &
8compton --config ~/.config/compton.conf & 9compton --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
34alternative_header_first_line_format = "$0$aqqu$/a {$7%a - $9}{$5%t$9}|{$8%f$9} $0$atqq$/a$9"
35alternative_header_second_line_format = "{{$6%b$9}{ [$6%y$9]}}|{%D}"
36song_list_format = "{$3%n │ $9}{$7%a - $9}{$5%t$9}|{$8%f$9}$R{$6 │ %b$9}{$3 │ %l$9}"
37user_interface = "alternative"
38#user_interface = "classic"
39default_place_to_search_in = "database"
40
41
42# visualizer
43visualizer_fifo_path = "/tmp/mpd.fifo"
44visualizer_output_name = "my_fifo"
45visualizer_sync_interval = "12"
46#visualizer_type = "wave" (spectrum/wave)
47visualizer_type = "spectrum" (spectrum/wave)
48visualizer_in_stereo = "yes"
49visualizer_look = "+|"
50
51
52## Navigation ##
53cyclic_scrolling = "yes"
54header_text_scrolling = "yes"
55jump_to_now_playing_song_at_start = "yes"
56lines_scrolled = "2"
57
58## Other ##
59system_encoding = "utf-8"
60regular_expressions = "extended"
61
62
63
64## Selected tracks ##
65selected_item_prefix = "* "
66discard_colors_if_item_is_selected = "no"
67
68## Seeking ##
69incremental_seeking = "yes"
70seek_time = "1"
71
72## Visivility ##
73header_visibility = "yes"
74statusbar_visibility = "yes"
75titles_visibility = "yes"
76
77
78progressbar_look = "=>-"
79progressbar_boldness = "yes"
80progressbar_elapsed_color = "white"
81
82now_playing_prefix = "> "
83song_status_format = " $2%a $4⟫$3⟫ $8%t $4⟫$3⟫ $5%b "
84autocenter_mode = "yes"
85centered_cursor = "yes"
86
87# Misc
88display_bitrate = "yes"
89# enable_window_title = "no"
90follow_now_playing_lyrics = "yes"
91ignore_leading_the = "yes"
92empty_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
3prepend_zero () {
4 seq -f "%02g" $1 $1
5}
6
7artist=$(echo -n $(cmus-remote -C status | grep "tag artist" | cut -c 12-))
8
9if [[ $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]"
18else
19 echo
20fi
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
35font-1 = FontAwesome:style=Regular:size=10;1 35font-1 = FontAwesome:style=Regular:size=10;1
36modules-left = pulseaudio battery date time bspwm 36modules-left = pulseaudio battery date time bspwm
37modules-center = 37modules-center =
38modules-right = spotify cmus xwindow 38modules-right = spotify mpd
39tray-position = right 39tray-position = right
40cursor-click = pointer 40cursor-click = pointer
41cursor-scroll = ns-resize 41cursor-scroll = ns-resize
@@ -152,26 +152,26 @@ format = <label>
152format-foreground = #7b8c58 152format-foreground = #7b8c58
153exec = python ~/.config/polybar/spotify.py -f '{artist}: {song}' 153exec = python ~/.config/polybar/spotify.py -f '{artist}: {song}'
154 154
155[module/cmus] 155;[module/cmus]
156type = custom/script 156;type = custom/script
157exec = ~/.config/polybar/cmus.sh 157;exec = ~/.config/polybar/cmus.sh
158exec-if = pgrep -x cmus 158;exec-if = pgrep -x cmus
159interval = 1 159;interval = 1
160click-left = cmus-remote --next 160;click-left = cmus-remote --next
161click-right = cmus-remote --prev 161;click-right = cmus-remote --prev
162click-middle = cmus-remote --pause 162;click-middle = cmus-remote --pause
163scroll-up = cmus-remote --volume +5% 163;scroll-up = cmus-remote --volume +5%
164scroll-down = cmus-remote --volume -5% 164;scroll-down = cmus-remote --volume -5%
165format = <label> 165;format = <label>
166format-prefix = " " 166;format-prefix = " "
167format-foreground = #7b8c58 167;format-foreground = #7b8c58
168label = %output% 168;label = %output%
169label-maxlen = 50 169;label-maxlen = 50
170 170
171[module/mpd] 171[module/mpd]
172type = internal/mpd 172type = internal/mpd
173label-offline = mpd is offline 173label-offline = mpd is offline
174format-online = <label-song> <icon-prev> <toggle> <icon-next> 174format-online = <label-song> <icon-prev> <toggle> <icon-next>
175format-offline = <label-offline> 175format-offline = <label-offline>
176host = 127.0.0.1 176host = 127.0.0.1
177port = 6600 177port = 6600
@@ -180,8 +180,9 @@ icon-stop = 
180icon-play =  180icon-play = 
181icon-pause =  181icon-pause = 
182icon-next =  182icon-next = 
183label-song-maxlen = 25 183label-song-maxlen = 40
184label-song-ellipsis = true 184label-song-ellipsis = true
185label-song-foreground = #7b8c58
185bar-progress-width = 10 186bar-progress-width = 10
186bar-progress-indicator = | 187bar-progress-indicator = |
187bar-progress-fill = ─ 188bar-progress-fill = ─
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 5737f94..bddd6dd 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -116,7 +116,7 @@ alias py2="/bin/python2"
116alias pubip="curl ipinfo.io/ip" 116alias pubip="curl ipinfo.io/ip"
117alias mirror="sudo reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist" 117alias mirror="sudo reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist"
118alias k="pkill " 118alias k="pkill "
119alias m="cmus" 119alias m="ncmpcpp"
120alias vimrc="vim $HOME/.config/nvim/init.vim" 120alias vimrc="vim $HOME/.config/nvim/init.vim"
121alias poly="vim $HOME/.config/polybar/config" 121alias poly="vim $HOME/.config/polybar/config"
122alias z="zathura" 122alias z="zathura"