diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-06-24 10:53:58 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-06-24 10:53:58 +0200 |
commit | 74cea7d46069b3dde8085d78f4bb2a351cff6e2a (patch) | |
tree | ecdf9cd7b36f34dc7963743a28213d57f1a8f3fc | |
parent | 94a8af937bbab8766fcd2860281545810552ef94 (diff) |
[i3] get up to par with sway
-rw-r--r-- | .config/i3/config | 118 |
1 files changed, 83 insertions, 35 deletions
diff --git a/.config/i3/config b/.config/i3/config index d5b0a82..7142b96 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -10,6 +10,7 @@ # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 +set $mod2 Mod1 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. @@ -41,10 +42,15 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet +exec --no-startup-id picom -b --no-fading-openclose --fade-in-step=1.0 --fade-out-step=1.0 --fade-delta=0 --shadow-opacity=0.0 --inactive-opacity=1.0 + +# gnome-keyring +exec --no-startup-id nm-applet dbus-update-activation-environment --all + # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $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 @@ -71,6 +77,11 @@ bindsym $mod+d exec "rofi -modi drun,run -show drun" # .desktop file. It is a wrapper around dmenu, so you need that installed. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop +# Screenshot +set $print_key_code 191 +bindcode $print_key_code exec "scrot" +bindcode $mod+$print_key_code exec "scrot -s" + # change focus bindsym $mod+j focus left bindsym $mod+k focus down @@ -96,7 +107,7 @@ bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation -bindsym $mod+h split h +bindsym $mod+b split h # split in vertical orientation bindsym $mod+v split v @@ -123,40 +134,70 @@ bindsym $mod+a focus parent # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" +set $ws1 "1:一" +set $ws2 "2:二" +set $ws3 "3:三" +set $ws4 "4:四" +set $ws5 "5:五" +set $ws6 "6:六" +set $ws7 "7:七" +set $ws8 "8:八" +set $ws9 "9:九" +set $ws10 "10:十" +set $ws11 "11:十一" +set $ws12 "12:十二" +set $ws13 "13:十三" +set $ws14 "14:十四" +set $ws15 "15:十五" +set $ws16 "16:十六" +set $ws17 "17:十七" +set $ws18 "18:十八" +set $ws19 "19:十九" +set $ws20 "20:二十" # switch to workspace -bindsym $mod+1 workspace number $ws1 -bindsym $mod+2 workspace number $ws2 -bindsym $mod+3 workspace number $ws3 -bindsym $mod+4 workspace number $ws4 -bindsym $mod+5 workspace number $ws5 -bindsym $mod+6 workspace number $ws6 -bindsym $mod+7 workspace number $ws7 -bindsym $mod+8 workspace number $ws8 -bindsym $mod+9 workspace number $ws9 -bindsym $mod+0 workspace number $ws10 +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 +bindsym $mod+$mod2+1 workspace $ws11 +bindsym $mod+$mod2+2 workspace $ws12 +bindsym $mod+$mod2+3 workspace $ws13 +bindsym $mod+$mod2+4 workspace $ws14 +bindsym $mod+$mod2+5 workspace $ws15 +bindsym $mod+$mod2+6 workspace $ws16 +bindsym $mod+$mod2+7 workspace $ws17 +bindsym $mod+$mod2+8 workspace $ws18 +bindsym $mod+$mod2+9 workspace $ws19 +bindsym $mod+$mod2+0 workspace $ws20 # move focused container to workspace -bindsym $mod+Shift+1 move container to workspace number $ws1 -bindsym $mod+Shift+2 move container to workspace number $ws2 -bindsym $mod+Shift+3 move container to workspace number $ws3 -bindsym $mod+Shift+4 move container to workspace number $ws4 -bindsym $mod+Shift+5 move container to workspace number $ws5 -bindsym $mod+Shift+6 move container to workspace number $ws6 -bindsym $mod+Shift+7 move container to workspace number $ws7 -bindsym $mod+Shift+8 move container to workspace number $ws8 -bindsym $mod+Shift+9 move container to workspace number $ws9 -bindsym $mod+Shift+0 move container to workspace number $ws10 +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 +bindsym $mod+Shift+$mod2+1 move container to workspace $ws11 +bindsym $mod+Shift+$mod2+2 move container to workspace $ws12 +bindsym $mod+Shift+$mod2+3 move container to workspace $ws13 +bindsym $mod+Shift+$mod2+4 move container to workspace $ws14 +bindsym $mod+Shift+$mod2+5 move container to workspace $ws15 +bindsym $mod+Shift+$mod2+6 move container to workspace $ws16 +bindsym $mod+Shift+$mod2+7 move container to workspace $ws17 +bindsym $mod+Shift+$mod2+8 move container to workspace $ws18 +bindsym $mod+Shift+$mod2+9 move container to workspace $ws19 +bindsym $mod+Shift+$mod2+0 move container to workspace $ws20 # reload the configuration file bindsym $mod+Shift+c reload @@ -199,12 +240,19 @@ bindsym $mod+r mode "resize" bar { position top + padding 0 5px 0 0 + + i3bar_command i3bar --transparency status_command i3status + strip_workspace_numbers yes colors { statusline #ffffff - background #00000000 - inactive_workspace #32323200 #32323200 #5c5c5c + background #00000055 + separator #ffffff99 + focused_workspace #ffffff99 #000000 #ffffff + active_workspace #ffffff55 #33333399 #ffffff + inactive_workspace #33333399 #33333399 #ffffff } } |