i3: schließe Fenster mit alt+f4

This commit is contained in:
Michael Grote 2021-06-29 16:16:46 +02:00
parent 47c9fc6558
commit 29b4f2bc0c

113
i3/config
View file

@ -2,7 +2,8 @@
# #
# Please see https://i3wm.org/docs/userguide.html for a complete reference! # Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4 #Super/Windows-Taste set $mod1 Mod4 #Super/Windows-Taste
set $mod2 Mod1 #alt
# 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.
@ -30,73 +31,73 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Use Mouse+$mod to drag floating windows to their wanted position # Use Mouse+$mod1 to drag floating windows to their wanted position
floating_modifier $mod floating_modifier $mod1
# start a terminal # start a terminal
bindsym $mod+Return exec alacritty bindsym $mod1+Return exec alacritty
# kill focused window # kill focused window
bindsym $mod++Shift+q kill bindsym $mod2+F4 kill
# start dmenu (a program launcher) # start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop bindsym $mod1+d exec --no-startup-id i3-dmenu-desktop
# A more modern dmenu replacement is rofi: # A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun" # bindcode $mod1+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a # There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed. # .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop # bindcode $mod1+40 exec --no-startup-id i3-dmenu-desktop
# change focus # change focus
bindsym $mod+Left focus left bindsym $mod1+Left focus left
bindsym $mod+Down focus down bindsym $mod1+Down focus down
bindsym $mod+Up focus up bindsym $mod1+Up focus up
bindsym $mod+Right focus right bindsym $mod1+Right focus right
# move focused window # move focused window
bindsym $mod+Shift+Left move left bindsym $mod1+Shift+Left move left
bindsym $mod+Shift+Down move down bindsym $mod1+Shift+Down move down
bindsym $mod+Shift+Up move up bindsym $mod1+Shift+Up move up
bindsym $mod+Shift+Right move right bindsym $mod1+Shift+Right move right
# resize focused window # resize focused window
bindsym $mod+Control+Left resize shrink width 10 px or 10 ppt bindsym $mod1+Control+Left resize shrink width 10 px or 10 ppt
bindsym $mod+Control+Down resize grow height 10 px or 10 ppt bindsym $mod1+Control+Down resize grow height 10 px or 10 ppt
bindsym $mod+Control+Up resize shrink height 10 px or 10 ppt bindsym $mod1+Control+Up resize shrink height 10 px or 10 ppt
bindsym $mod+Control+Right resize grow width 10 px or 10 ppt bindsym $mod1+Control+Right resize grow width 10 px or 10 ppt
# split in horizontal orientation # split in horizontal orientation
bindsym $mod+v split h bindsym $mod1+v split h
# split in vertical orientation # split in vertical orientation
bindsym $mod+h split v bindsym $mod1+h split v
# move focused workspace between monitors # move focused workspace between monitors
bindsym $mod+Ctrl+greater move workspace to output right bindsym $mod1+Ctrl+greater move workspace to output right
bindsym $mod+Ctrl+less move workspace to output left bindsym $mod1+Ctrl+less move workspace to output left
# enter fullscreen mode for the focused container # enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle bindsym $mod1+f fullscreen toggle
# enter lockscreen # enter lockscreen
bindsym $mod+l exec i3lock -c 000000 bindsym $mod1+l exec i3lock -c 000000
# change container layout (stacked, tabbed, toggle split) # change container layout (stacked, tabbed, toggle split)
#bindsym $mod+s layout stacking #bindsym $mod1+s layout stacking
bindsym $mod+w layout tabbed bindsym $mod1+w layout tabbed
bindsym $mod+e layout toggle split bindsym $mod1+e layout toggle split
# toggle tiling / floating # toggle tiling / floating
bindsym $mod+Shift+space floating toggle bindsym $mod1+Shift+space floating toggle
# change focus between tiling / floating windows # change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle bindsym $mod1+space focus mode_toggle
# focus the parent container # focus the parent container
bindsym $mod+a focus parent bindsym $mod1+a focus parent
# focus the child container # focus the child container
#bindsym $mod+d focus child #bindsym $mod1+d focus child
# Define names for default workspaces for which we configure key bindings later on. # Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places. # We use variables to avoid repeating the names in multiple places.
@ -112,35 +113,35 @@ set $ws9 "9"
set $ws10 "10" set $ws10 "10"
# switch to workspace # switch to workspace
bindsym $mod+1 workspace number $ws1 bindsym $mod1+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2 bindsym $mod1+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3 bindsym $mod1+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4 bindsym $mod1+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5 bindsym $mod1+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6 bindsym $mod1+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7 bindsym $mod1+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8 bindsym $mod1+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9 bindsym $mod1+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10 bindsym $mod1+0 workspace number $ws10
# move focused container to workspace # move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1 bindsym $mod1+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2 bindsym $mod1+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3 bindsym $mod1+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4 bindsym $mod1+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5 bindsym $mod1+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6 bindsym $mod1+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7 bindsym $mod1+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8 bindsym $mod1+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod1+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10 bindsym $mod1+Shift+0 move container to workspace number $ws10
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod1+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart bindsym $mod1+Shift+r restart
# exit i3 (logs you out of your X session) # exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" bindsym $mod1+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# keine Fensterrahmen wenn nur ein Fenster angezeigt wird # keine Fensterrahmen wenn nur ein Fenster angezeigt wird
hide_edge_borders smart hide_edge_borders smart