From 4d242d154a6c94734c26496d6303dacd30a40485 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 31 Mar 2019 21:08:41 +0200 Subject: [PATCH] Update i3 config for laptop home --- .config/i3/config-laptop-home | 19 +++++++++++++++++-- .config/i3/config-laptop-work | 10 +++++++++- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/.config/i3/config-laptop-home b/.config/i3/config-laptop-home index 2bd0aec..b36ff96 100644 --- a/.config/i3/config-laptop-home +++ b/.config/i3/config-laptop-home @@ -9,9 +9,9 @@ # # Please see http://i3wm.org/docs/userguide.html for a complete reference! +set $alt Mod1 #set $mod Mod4 set $mod Mod1 -set $alt Mod1 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. @@ -197,6 +197,21 @@ bar { status_command i3status } +# Pulse Audio controls +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound + +# Screen brightness controls +bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness + +# Media player controls +bindsym XF86AudioPlay exec playerctl play +bindsym XF86AudioPause exec playerctl pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous + # Enable or disable floating for_window [class="pinentry"] floating enable @@ -204,6 +219,6 @@ for_window [class="pinentry"] floating enable exec --no-startup-id xfce4-power-manager exec --no-startup-id nm-applet exec --no-startup-id nextcloud -exec --no-startup-id shutter --min_at_startup +# Set background image exec_always --no-startup-id feh --bg-scale ~/Backgrounds/current diff --git a/.config/i3/config-laptop-work b/.config/i3/config-laptop-work index bd5f4d4..66adfb1 100644 --- a/.config/i3/config-laptop-work +++ b/.config/i3/config-laptop-work @@ -183,6 +183,11 @@ mode "resize" { bindsym $mod+r mode "resize" +# Scratchpad bindings +bindsym $mod+Shift+x move scratchpad +#bindsym $mod+$alt+x floating toggle +bindsym $mod+x scratchpad show + # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { @@ -204,9 +209,12 @@ bindsym XF86AudioPause exec playerctl pause bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous +# Enable or disable floating +for_window [class="pinentry"] floating enable + # Autostart programs +exec --no-startup-id xfce4-power-manager exec --no-startup-id nm-applet -exec --no-startup-id shutter --min_at_startup exec --no-startup-id nextcloud # Set background image