From dc41873a79b32ed3d34dd7dac09c081f7472d207 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Wed, 25 Dec 2024 14:26:51 +0000 Subject: Change most things to symlinks instead of hardlinks --- sway/conf.d/01-system-vars.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sway/conf.d/01-system-vars.conf (limited to 'sway/conf.d/01-system-vars.conf') diff --git a/sway/conf.d/01-system-vars.conf b/sway/conf.d/01-system-vars.conf new file mode 100644 index 0000000..f93a6ac --- /dev/null +++ b/sway/conf.d/01-system-vars.conf @@ -0,0 +1,12 @@ +set $screenshot_area /usr/bin/grimshot --notify save area - | swappy -f - +set $screenshot_area_clipboard /usr/bin/grimshot --notify copy area +set $screenshot_screen /usr/bin/grimshot --notify save screen - | swappy -f - +set $screenshot_screen_clipboard /usr/bin/grimshot --notify copy screen + +set $sink_volume pactl get-sink-volume @DEFAULT_SINK@ | grep '^Volume:' | cut -d / -f 2 | tr -d ' ' | sed 's/%//' +set $sink_volume_mute pactl get-sink-mute @DEFAULT_SINK@ | sed -En "/no/ s/.*/$($sink_volume)/p; /yes/ s/.*/0/p" + +# Brightness +set $brightness brightnessctl | grep 'Current brightness:' | cut -d "(" -f 2 | cut -d "%" -f 1 + +set $wob_socket $XDG_RUNTIME_DIR/wob.sock -- cgit v1.2.3-70-g09d2