summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadbeast <sadbeast@sadbeast.com>2020-09-17 13:47:05 -0500
committerSadbeast <sadbeast@sadbeast.com>2020-09-17 13:47:05 -0500
commita66ef7906c3a7d554053df085fdf95c7c9f23177 (patch)
tree75e1e3ff272fb3125b465c2f882f169323a2a8c9
parent561961e68840de415aec8459550075319818aabd (diff)
downloadcfg-a66ef7906c3a7d554053df085fdf95c7c9f23177.tar.gz
cfg-a66ef7906c3a7d554053df085fdf95c7c9f23177.tar.bz2
wob progress bars, etc.
-rw-r--r--.config/sway/config26
1 files changed, 21 insertions, 5 deletions
diff --git a/.config/sway/config b/.config/sway/config
index 77750db..ffe1f3c 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -14,7 +14,7 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
-set $term alacritty
+set $term termite
# Your preferred application launcher
# Note: it's recommended that you pass the final command to sway
set $menu wofi -f --show run | xargs swaymsg exec --
@@ -40,11 +40,8 @@ default_floating_border normal
hide_edge_borders smart
smart_gaps on
-gaps inner 10
+gaps outer 0
-# Brightness controls
-bindsym --locked XF86MonBrightnessUp exec light -A 10
-bindsym --locked XF86MonBrightnessDown exec light -U 10
### Output configuration
#
@@ -205,6 +202,7 @@ default_border pixel
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
+
#
# Resizing containers:
#
@@ -230,6 +228,24 @@ mode "resize" {
}
bindsym $mod+r mode "resize"
+bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && pamixer --get-volume > $SWAYSOCK.wob
+bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pamixer --get-volume > $SWAYSOCK.wob
+bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
+bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
+
+bindsym XF86AudioPlay exec playerctl play-pause
+bindsym XF86AudioNext exec playerctl next
+bindsym XF86AudioPrev exec playerctl previous
+
+# Brightness controls
+#bindsym --locked XF86MonBrightnessUp exec light -A 10
+#bindsym --locked XF86MonBrightnessDown exec light -U 10
+
+bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
+bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
+
+exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob
+
exec_always ~/.config/waybar/waybar.sh
include /etc/sway/config.d/*