summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-30 14:58:02 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-30 14:58:02 -0700
commite60581469dbbb7a8d0a8400d7fc8474826435a0e (patch)
treeb76e272c82dcba68b126551dbc513fc7d5d82bce
parent8bfdf665074b62849f996c6d5ddc010e8565d815 (diff)
Small tweaks and forgot to add new files
-rw-r--r--.config/mpd/mpd.conf2
-rw-r--r--.config/polybar/date.ini2
-rw-r--r--.config/polybar/player_mpris_zscroll.ini10
-rw-r--r--.config/sxhkd/sxhkdrc14
-rwxr-xr-x.local/bin/show_calendar10
5 files changed, 30 insertions, 8 deletions
diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf
index 4ac7cd0..47e2c76 100644
--- a/.config/mpd/mpd.conf
+++ b/.config/mpd/mpd.conf
@@ -2,7 +2,7 @@
db_file "~/.config/mpd/database"
music_directory "~/mus"
-log_file "syslog"
+log_file "~/.config/mpd/error.log"
# Optional functionalities
playlist_directory "~/.config/mpd/playlists"
diff --git a/.config/polybar/date.ini b/.config/polybar/date.ini
index 5096b93..e4777f2 100644
--- a/.config/polybar/date.ini
+++ b/.config/polybar/date.ini
@@ -22,7 +22,7 @@ time-alt = %H:%M:%S
# <label> (default)
format-prefix = " "
# format-prefix-foreground = ${colors.foreground-alt}
-format = <label>
+format = %{A3:show_calendar:}<label>%{A}
# format-background = #55ff3399
# format-foreground = #fff
format-underline = ${colors.cyan}
diff --git a/.config/polybar/player_mpris_zscroll.ini b/.config/polybar/player_mpris_zscroll.ini
new file mode 100644
index 0000000..201491d
--- /dev/null
+++ b/.config/polybar/player_mpris_zscroll.ini
@@ -0,0 +1,10 @@
+[module/player_mpris_zscroll]
+type = custom/script
+exec = player_mpris_zscroll_module show
+tail = true
+interval = 0
+
+format-prefix = " "
+format = <label>
+
+click-left = player_mpris_zscroll_module notify
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 1af3ed8..612eaf3 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -154,14 +154,16 @@ super + {Left,Down,Up,Right}
XF86AudioMute
pactl set-sink-mute @DEFAULT_SINK@ toggle
-XF86AudioPrev
- playerctl previous
+# Actually, not required to separate mpc and pctl here nor
+# on next, but still...
+{_,shift + } XF86AudioPrev
+ {mpc -q prev, playerctl previous}
-XF86AudioNext
- playerctl next
+{_,shift + } XF86AudioNext
+ {mpc -q, playerctl} next
-XF86AudioPlay
- playerctl play-pause
+{_,shift + } XF86AudioPlay
+ {mpc -q toggle, playerctl play-pause}
# XF86AudioMedia
# Same as XF86AudioPlay in my keyboard. That's why the 'play-pause' option is used.
diff --git a/.local/bin/show_calendar b/.local/bin/show_calendar
new file mode 100755
index 0000000..19dc316
--- /dev/null
+++ b/.local/bin/show_calendar
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+mouse_position="$(xdotool getmouselocation | cut -d' ' -f-2 | sed -e 's/x://' -e 's/y://')"
+w=200
+h=200
+
+x=$(echo $mouse_position | cut -d' ' -f1)
+y=$(echo $mouse_position | cut -d' ' -f2)
+
+yad --calendar --close-on-unfocus --no-buttons --undecorated --fixed --geometry=$w\x$h+$(($x - $w/2 - 30))+$(($y + 30))