From 5ab9be056e470a4f51a4ddeffe2fe7a9a2f8dc36 Mon Sep 17 00:00:00 2001 From: Snorky Date: Thu, 2 Oct 2025 17:22:47 +0200 Subject: [PATCH] Conf --- i3/config | 3 ++- i3status/mytopbar.sh | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/i3/config b/i3/config index b7c502c..de29d19 100644 --- a/i3/config +++ b/i3/config @@ -42,9 +42,10 @@ bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ to bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status bindsym XF86MonBrightnessUp exec xbacklight -inc 10 -bindsym XF86MonBrightnessDown exec xbacklight -inc 10 +bindsym XF86MonBrightnessDown exec xbacklight -dec 10 bindsym Ctrl+Mod4+e exec element-desktop +bindsym Ctrl+Mod4+p exec discord bindsym Ctrl+Mod4+l exec "i3lock -c 000000" bindsym Ctrl+Mod4+m exec wezterm -e --class term_date "ncmpcpp" # use these keys for focus, movement, and resize directions when reaching for diff --git a/i3status/mytopbar.sh b/i3status/mytopbar.sh index 0c6dadb..c5cd02d 100755 --- a/i3status/mytopbar.sh +++ b/i3status/mytopbar.sh @@ -280,7 +280,7 @@ volume() { echo -n "\"background\":\"$bg\"," common echo -n "}," - separator $bg_bar_color $bg + #separator $bg_bar_color $bg } systemupdate() { @@ -320,6 +320,22 @@ Music_text() { echo -n "}," } +Backlight_text() { + local bg="#000000" + local text_color="#D48F06" + separator $bg "#FFD180" + echo -n ",{" + echo -n "\"name\":\"id_backlight_text\"," + echo -n "\"color\":\"$text_color\"," + echo -n "\"full_text\":\"🞻 $( xbacklight -get)%\"," + echo -n "\"background\":\"$bg\"," + common + echo -n "}," + separator $bg_bar_color $bg +} + + + Album_text() { local bg="#000000" local text_color="#D48F06" @@ -385,6 +401,7 @@ do bat_text battery0 volume + Backlight_text logout echo "]" sleep 1