Update i3 config for laptop home

This commit is contained in:
Jan Philipp Timme 2019-03-31 21:08:41 +02:00
parent 9985f29d21
commit 4d242d154a
2 changed files with 26 additions and 3 deletions

View File

@ -9,9 +9,9 @@
# #
# Please see http://i3wm.org/docs/userguide.html for a complete reference! # Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $alt Mod1
#set $mod Mod4 #set $mod Mod4
set $mod Mod1 set $mod Mod1
set $alt Mod1
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. # is used in the bar {} block below.
@ -197,6 +197,21 @@ bar {
status_command i3status 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 # Enable or disable floating
for_window [class="pinentry"] floating enable 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 xfce4-power-manager
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
exec --no-startup-id nextcloud 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 exec_always --no-startup-id feh --bg-scale ~/Backgrounds/current

View File

@ -183,6 +183,11 @@ mode "resize" {
bindsym $mod+r 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 # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
bar { bar {
@ -204,9 +209,12 @@ bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous bindsym XF86AudioPrev exec playerctl previous
# Enable or disable floating
for_window [class="pinentry"] floating enable
# Autostart programs # Autostart programs
exec --no-startup-id xfce4-power-manager
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
exec --no-startup-id shutter --min_at_startup
exec --no-startup-id nextcloud exec --no-startup-id nextcloud
# Set background image # Set background image