diff --git a/config b/config index fc61b76..01f1975 100644 --- a/config +++ b/config @@ -28,7 +28,7 @@ bindsym Mod4+9 workspace 9 bindsym Mod4+Backspace scratchpad show bindsym Mod4+Down focus down bindsym Mod4+Left focus left -bindsym Mod4+Print exec spectacle --region +bindsym Mod4+Print exec shutter -s bindsym Mod4+Return exec i3-sensible-terminal bindsym Mod4+Right focus right bindsym Mod4+Shift+1 move container to workspace 1 @@ -57,7 +57,7 @@ bindsym Mod4+Shift+s exec --no-startup-id systemctl poweroff bindsym Mod4+Shift+space floating toggle bindsym Mod4+Tab workspace next bindsym Mod4+Up focus up -bindsym Mod4+d exec /usr/bin/dmenu_run +bindsym Mod4+d exec /usr/bin/rofi -show drun bindsym Mod4+e layout toggle split bindsym Mod4+f fullscreen toggle bindsym Mod4+h split h @@ -68,13 +68,13 @@ bindsym Mod4+s layout stacking bindsym Mod4+space focus mode_toggle bindsym Mod4+v split v bindsym Mod4+w layout tabbed -bindsym XF86AudioLowerVolume exec amixer sset 'Master' 5%- +bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% bindsym XF86AudioMute exec amixer sset 'Master' toggle bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPause exec playerctl play-pause bindsym XF86AudioPlay exec playerctl play-pause bindsym XF86AudioPrev exec playerctl previous -bindsym XF86AudioRaiseVolume exec amixer sset 'Master' 5%+ +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% bindsym XF86MonBrightnessDown exec brightnessctl s 20%- bindsym XF86MonBrightnessUp exec brightnessctl s +20% @@ -94,18 +94,45 @@ bindsym Up resize shrink height 10 px or 10 ppt } bar { - position top - status_command i3status --config ~/.config/i3/i3status.conf - } - + + font pango:monospace 8 + mode dock + hidden_state hide + position top + status_command /home/konrad/opt/i3status-rust/target/release/i3status-rs + i3bar_command i3bar + workspace_buttons yes + strip_workspace_numbers no + tray_output primary + colors { + background #2b303b + statusline #dcdcdc + separator #666666 + focused_workspace #421304 #dd9815 #421304 + active_workspace #333333 #5f676a #ffffff + inactive_workspace #333333 #2b303b #888888 + urgent_workspace #d62246 #ef476f #d4f4dd + binding_mode #2f343a #900000 #ffffff + } + font pango:monospace 9 +} +# Fix notifications for Microsoft teams +for_window [title="Microsoft Teams Notification" class="microsoft teams - preview"] floating enable +for_window [title="Microsoft Teams Notification" class="Microsoft Teams - Preview"] floating enable +for_window [title="Microsoft Teams-Benachrichtigung" class="microsoft teams - preview"] floating enable +for_window [title="Microsoft Teams-Benachrichtigung" class="Microsoft Teams - Preview"] floating enable +for_window [title="Taschenrechner"] floating enable +for_window [title="NoiseTorch"] floating enable +for_window [title="win0"] floating enable +for_window [title="Erinnerungen"] floating enable exec xrandr --output VGA-0 --auto --left-of HDMI-0 exec_always --no-startup-id systemctl --user restart polybar -exec feh --bg-fill ~/Bilder/Wallpaper/howie-mapson-_iP_WZsapcY-unsplash.jpg +exec feh --bg-fill ~/Bilder/bg exec_always --no-startup-id setxkbmap -layout de @@ -115,3 +142,7 @@ exec_always --no-startup-id nm-applet exec_always ~/.config/i3/gnome-keyring.sh +exec_always --no-startup-id autorandr -c + +exec_always --no-startup-id gnome-keyring-daemon + diff --git a/i3status-rs-config.toml b/i3status-rs-config.toml index 815fc47..b6b2bff 100644 --- a/i3status-rs-config.toml +++ b/i3status-rs-config.toml @@ -47,11 +47,17 @@ alert = 10.0 [[block]] block = "sound" +driver = "pulseaudio" + +[[block]] +block = "battery" +driver = "upower" +format = "{percentage}% {time}" [[block]] block = "keyboard_layout" [[block]] block = "time" -interval = 60 -format = "%a %d.%m.%Y %R" +interval = 5 +format = "%a %Y-%m-%d %T"