summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-08-13 18:37:28 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-08-13 18:37:28 +0530
commitd2bcdf100726baf18a34bd3c0c68c074827c6d04 (patch)
tree759f880f8b90a5e2fadcc586c9482bb63f07a4bd
parent63eac95d7930cecfb44a3aabe4f3db3ee253fa27 (diff)
sxhkd+dunstrc changes
-rw-r--r--.config/sxhkd/sxhkdrc31
-rw-r--r--.config/wal/templates/dunstrc9
2 files changed, 27 insertions, 13 deletions
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 7fece7d..8d7d788 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -4,9 +4,10 @@
# Toggle mute
XF86AudioMute
- pactl set-sink-mute @DEFAULT_SINK@ toggle
+ pactl set-sink-mute @DEFAULT_SINK@ toggle && dunstify "Mute" "Volume set to 0%" -i volume-xmark -t 1000 -r 1234
+
super + F4
- pactl set-sink-mute @DEFAULT_SINK@ toggle
+ pactl set-sink-mute @DEFAULT_SINK@ toggle && dunstify "Mute" "Volume set to 0%" -i volume-xmark -t 1000 -r 1234
# Toggle mic mute
@@ -14,7 +15,7 @@ super + F4
# Change volume
XF86Audio{Raise,Lower}Volume
- pactl set-sink-volume @DEFAULT_SINK@ {+,-}2%
+ pactl set-sink-volume @DEFAULT_SINK@ {+,-}2% && dunstify "Volume Changed" "Volume set to $(pamixer --get-volume)" -i {volume-high,volume-low} -t 1500 -r {1235,1236}
# Change volume
#super + {k,j}
@@ -28,16 +29,28 @@ XF86Audio{Raise,Lower}Volume
#Toggle play/pause in spotify (universal)
XF86AudioPlay
- playerctl -p spotify play-pause
+ playerctl -p spotify play-pause
# Change tracks spotify only
XF86Audio{Prev,Next}
- playerctl -p spotify {previous,next}
+ playerctl -p spotify {previous,next}
# Change spotify volume only
XF86{HomePage,Mail}
- playerctl -p spotify volume 0.05{+,-}
+ playerctl -p spotify volume 0.05{+,-} && dunstify "Volume Changed" "Spotify Volume set to $(printf %.0f%% $(echo $(playerctl -p spotify volume)*100 | bc))" -i spotify -r {1400,1401}
+# playerctl -p spotify volume 0.05{+,-} && dunstify "Volume Changed" "Spotify volume set to $(echo $(playerctl -p spotify volume)*100 | bc | sed 's/\..*/%/')" -i spotify -r {1400,1401}
+
+# playerctl -p spotify volume 0.05{+,-} && dunstify "Volume Changed" "Spotify volume set to $(playerctl -p spotify volume)" -i spotify -t 1500 -r 2300
+# playerctl -p spotify volume 0.05{+,-} && dunstify "Volume Changed" "Spotify volume changed to $(awk -vn=$(playerctl -p spotify volume) 'BEGIN{printf('%.0f%',n*100)}')" -i spotify -t 1500 -r 2300
+
+#playerctl -p spotify volume 0.05{+,-} && dunstify "Volume Changed" "Spotify volume changed to $(echo $(playerctl -p spotify volume)*100 | bc | sed 's/\..*/%/')" -i spotify
+
+
+#dunstify "Volume Changed" "Spotify volume changed to $(echo $(playerctl -p spotify volume)*100 | bc | sed 's/\..*/%/')"
+
+
+
#
#super + ;
#dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
@@ -85,6 +98,8 @@ super + shift + n
# Launch outlook
super + shift + e
qutebrowser https://outlook.office365.com/mail/inbox
+super + ctrl + e
+ qutebrowser https://gmail.com
# Launch teams
super + shift + t
@@ -104,7 +119,7 @@ super + ctrl + t
# dmenu custom run
super + d
- dmenu_run -hp 4chgetw,bts,dcalc,dmount,dumount,librewolf,passmenu,picomm,pidkill,setbg,st,telegram-desktop,todo,tolearn,trashy,ungoogled-chromium,xkill
+ dmenu_run -hp 4chgetw,bts,dcalc,dmount,dumount,librewolf,passmenu,picomm,pidkill,setbg,st,telegram-desktop,tempclip,todo,tolearn,trashy,ungoogled-chromium,xkill
#dmenu pidkill
super + F1
@@ -144,7 +159,7 @@ super + ctrl + l
# Change screen brightness
XF86MonBrightness{Up,Down}
- brillo -s intel_backlight -{A,U} 5 && dunstify -u normal -t 3000 -r 90210 -i display-brightness "$(printf %.0f%% $( brillo -G) )"
+ brillo -s intel_backlight -{A,U} 5 && dunstify -u normal -t 3000 -r 90210 -i brightness "$(printf %.0f%% $( brillo -G) )"
# Change screen temp
diff --git a/.config/wal/templates/dunstrc b/.config/wal/templates/dunstrc
index 3dc4aaa..2207226 100644
--- a/.config/wal/templates/dunstrc
+++ b/.config/wal/templates/dunstrc
@@ -11,7 +11,6 @@
indicate_hidden = yes
shrink = yes
transparency = 10
- #notification_height = 0
# Show multiple notifications in the same box
separator_height = 2
@@ -51,14 +50,13 @@
sticky_history = yes
history_length = 20
dmenu = /usr/bin/dmenu -p dunst:
- browser = /usr/bin/brave-new-tab
+ browser = /usr/bin/brave -new-tab
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
title = Dunst
class = Dunst
- startup_notification = false
force_xinerama = false
@@ -77,7 +75,8 @@
foreground = "{background}"
[urgency_critical]
- background = "{foreground}"
- foreground = "{background}"
+ background = "#900000"
+ foreground = "#ffffff"
+ fram_color = "ff0000"
# vim:ft=cfg