diff options
| author | Max Christian Pohle | 2019-09-12 18:43:48 +0200 |
|---|---|---|
| committer | Max Christian Pohle | 2019-09-13 00:47:02 +0200 |
| commit | dad9bd662680bb60f58e14ebd79848a4b4bf8f2c (patch) | |
| tree | 20058be5fe20ac26fc8e2eab09c9f7e9a1bd985d | |
| parent | adfc34fa5c61014abcda8aca745296ed2c21bd6d (diff) | |
| download | sway-dad9bd662680bb60f58e14ebd79848a4b4bf8f2c.tar.bz2 sway-dad9bd662680bb60f58e14ebd79848a4b4bf8f2c.zip | |
Refactored a lot
| -rw-r--r-- | config | 547 |
1 files changed, 279 insertions, 268 deletions
| @@ -1,18 +1,22 @@ | |||
| 1 | # i3 config file (v4) | 1 | # sway configuration file |
| 2 | # | 2 | # man sway(5) |
| 3 | # Please see http://i3wm.org/docs/userguide.html for a complete reference! | ||
| 4 | 3 | ||
| 5 | # load xrdb | 4 | # ================================================================================ |
| 6 | exec xrdb ~/.Xresources ; i3-msg reload | 5 | # output device configuration |
| 6 | # man sway-output(5) | ||
| 7 | # ================================================================================ | ||
| 8 | # force_xinerama yes | ||
| 9 | # fake-outputs 3840x1080+0+0 | ||
| 7 | 10 | ||
| 8 | output DP-1 { | 11 | |
| 12 | output DP-2 { | ||
| 9 | pos 0 0 | 13 | pos 0 0 |
| 10 | res 1920x1080 | 14 | res 1920x1080 |
| 11 | background ~/.local/share/backgrounds/01-0.jpg fill | 15 | background ~/.local/share/backgrounds/01-0.jpg fill |
| 12 | dpms on | 16 | dpms on |
| 13 | } | 17 | } |
| 14 | 18 | ||
| 15 | output DP-2 { | 19 | output DP-1 { |
| 16 | pos 1920 0 | 20 | pos 1920 0 |
| 17 | res 1920x1080 | 21 | res 1920x1080 |
| 18 | background ~/.local/share/backgrounds/01-1.jpg fill | 22 | background ~/.local/share/backgrounds/01-1.jpg fill |
| @@ -20,209 +24,269 @@ output DP-2 { | |||
| 20 | dpms on | 24 | dpms on |
| 21 | } | 25 | } |
| 22 | 26 | ||
| 27 | # ================================================================================ | ||
| 28 | # Workspace settings | ||
| 29 | # ================================================================================ | ||
| 30 | workspace 1 output VGA1 | ||
| 31 | workspace_layout tabbed | ||
| 23 | 32 | ||
| 24 | xwayland enable | 33 | # customize workspace names |
| 25 | gaps inner 0 | 34 | set $WS0 0:🄌 |
| 26 | gaps outer 0 | 35 | set $WS1 1:➊ |
| 27 | smart_gaps on | 36 | set $WS2 2:➋ |
| 28 | smart_borders no_gaps | 37 | set $WS3 3:➌ |
| 38 | set $WS4 4:➍ | ||
| 39 | set $WS5 5:➎ | ||
| 40 | set $WS6 6:➏ | ||
| 41 | set $WS7 7:➐ | ||
| 42 | set $WS8 8:➑ | ||
| 43 | set $WS9 9:➒ | ||
| 29 | 44 | ||
| 30 | # force_xinerama yes | 45 | workspace $WS0 output XWAYLAND1 HDMI-1 DP-1 VGA-1 |
| 31 | # fake-outputs 3840x1080+0+0 | 46 | workspace $WS1 output primary |
| 47 | workspace $WS9 output XWAYLAND1 HDMI-1 DP-1 VGA-1 | ||
| 32 | 48 | ||
| 33 | # we basically want to configure our font with ~/.config/fontconfig/* | 49 | bindsym Mod4+BackSpace exec i3-msg move workspace to output right |
| 34 | # font pango:GoMono Nerd Font 9 | ||
| 35 | # font pango:FuraCode Nerd Font Mono 9 | ||
| 36 | # font pango:Code New Roman Nerd Font 9 | ||
| 37 | font pango:monospace 9 | ||
| 38 | 50 | ||
| 51 | # switch to workspace | ||
| 52 | bindsym Mod4+0 workspace $WS0 | ||
| 53 | bindsym Mod4+1 workspace $WS1 | ||
| 54 | bindsym Mod4+2 workspace $WS2 | ||
| 55 | bindsym Mod4+3 workspace $WS3 | ||
| 56 | bindsym Mod4+4 workspace $WS4 | ||
| 57 | bindsym Mod4+5 workspace $WS5 | ||
| 58 | bindsym Mod4+6 workspace $WS6 | ||
| 59 | bindsym Mod4+7 workspace $WS7 | ||
| 60 | bindsym Mod4+8 workspace $WS8 | ||
| 61 | bindsym Mod4+9 workspace $WS9 | ||
| 62 | |||
| 63 | # move focused container to workspace | ||
| 64 | bindsym Mod4+Shift+0 move container to workspace $WS0 | ||
| 65 | bindsym Mod4+Shift+1 move container to workspace $WS1 | ||
| 66 | bindsym Mod4+Shift+2 move container to workspace $WS2 | ||
| 67 | bindsym Mod4+Shift+3 move container to workspace $WS3 | ||
| 68 | bindsym Mod4+Shift+4 move container to workspace $WS4 | ||
| 69 | bindsym Mod4+Shift+5 move container to workspace $WS5 | ||
| 70 | bindsym Mod4+Shift+6 move container to workspace $WS6 | ||
| 71 | bindsym Mod4+Shift+7 move container to workspace $WS7 | ||
| 72 | bindsym Mod4+Shift+8 move container to workspace $WS8 | ||
| 73 | bindsym Mod4+Shift+9 move container to workspace $WS9 | ||
| 74 | |||
| 75 | # ================================================================================ | ||
| 76 | # base16 Xressource depenend color configuration | ||
| 77 | # with default values from base16-tomorrow-night | ||
| 78 | # ================================================================================ | ||
| 79 | xwayland enable | ||
| 39 | hide_edge_borders both | 80 | hide_edge_borders both |
| 40 | title_align left | 81 | title_align left |
| 82 | # gaps inner 6 | ||
| 83 | # smart_gaps on | ||
| 84 | # smart_borders no_gaps | ||
| 41 | # focus_follows_mouse no | 85 | # focus_follows_mouse no |
| 42 | # mouse_warping none | 86 | # mouse_warping none |
| 43 | 87 | ||
| 44 | set $mod Mod4 | 88 | # we basically want to configure our font with ~/.config/fontconfig/* and can |
| 89 | # configure what is called monospace that way. It is more portable that way. | ||
| 90 | font pango:monospace 9 | ||
| 91 | # font pango:GoMono Nerd Font 9 | ||
| 92 | # font pango:FuraCode Nerd Font Mono 9 | ||
| 93 | # font pango:Code New Roman Nerd Font 9 | ||
| 45 | 94 | ||
| 46 | bindsym $mod+j "mark --toggle a" | 95 | # load xrdb |
| 96 | exec xrdb ~/.Xresources ; swaymsg reload | ||
| 47 | 97 | ||
| 48 | # Use Mouse+$mod to drag floating windows to their wanted position | 98 | include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config |
| 49 | floating_modifier $mod | 99 | # main variables ssource default |
| 100 | # d variable default | ||
| 101 | set $background $base01 | ||
| 102 | set $foreground $base05 | ||
| 103 | set $cursorColor $foreground | ||
| 50 | 104 | ||
| 51 | # start a terminal | 105 | # set_from_resource $foreground base16.cursor $cursorColor |
| 52 | # bindsym $mod+Return exec i3-sensible-terminal | 106 | # set_from_resource $foreground base16.cursor $base05 |
| 53 | bindsym $mod+Return exec rofi -show drun -show-icons | ||
| 54 | bindsym Mod1+F2 exec rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5 | ||
| 55 | bindsym $mod+t exec termite | ||
| 56 | # bindsym $mod+t exec termite | ||
| 57 | # bindsym $mod+t exec urxvt | ||
| 58 | bindsym $mod+e exec thunar | ||
| 59 | bindsym $mod+l exec swaylock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png" | ||
| 60 | 107 | ||
| 61 | bindsym $mod+F10 exec pactl set-sink-mute 0 toggle | 108 | # Basic bar configuration using the Base16 variables. |
| 62 | bindsym $mod+F11 exec pactl set-sink-volume 0 -5% | 109 | bar { |
| 63 | bindsym $mod+F12 exec pactl set-sink-volume 0 +5% | 110 | # status_command i3status --config ~/.config/i3/i3status.conf |
| 111 | font pango:monospace 9 | ||
| 112 | status_command i3status --config ~/.config/i3/i3status.conf | ||
| 113 | # swaybar_command swaybar | ||
| 64 | 114 | ||
| 65 | # Pulse Audio controls | 115 | tray_padding 2 |
| 66 | bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% # increase sound volume | 116 | tray_output DP-1 |
| 67 | bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% # decrease sound volume | 117 | mode dock |
| 68 | bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound | 118 | strip_workspace_numbers yes |
| 119 | # separator_symbol "|" | ||
| 120 | separator_symbol " " | ||
| 69 | 121 | ||
| 70 | # exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 | 122 | colors { |
| 71 | # bindcode 156 | 123 | background $background |
| 72 | # exec xrandr --output DP-1 --rotate left --pos 1920x-420 | 124 | separator $foreground |
| 73 | # exec xrandr --output DP1 --rotate left --right-of HDMI1 | 125 | statusline $foreground |
| 74 | # exec xrandr --output DP1 --rotate left --pos 1920x-420 | ||
| 75 | 126 | ||
| 76 | # kill focused window | 127 | focused_workspace $background $background $base05 |
| 77 | bindsym $mod+Shift+q kill | 128 | active_workspace $background $background $cursorColor |
| 78 | bindsym Mod1+F4 kill | 129 | inactive_workspace $background $background $base03 |
| 130 | urgent_workspace $background $background $base08 | ||
| 131 | binding_mode $background $background $foreground | ||
| 132 | } | ||
| 133 | } | ||
| 79 | 134 | ||
| 80 | # start dmenu (a program launcher) | 135 | # Basic color configuration using the Base16 variables for windows and borders. |
| 81 | # bindsym $mod+d exec dmenu_run | 136 | # Property Name Border BG Text Indicator Child Border |
| 82 | # There also is the (new) i3-dmenu-desktop which only displays applications | 137 | client.focused $base05 $base0D $base00 $base0D $base0D |
| 83 | # shipping a .desktop file. It is a wrapper around dmenu, so you need that | 138 | client.focused_inactive $base01 $base01 $base05 $base03 $base01 |
| 84 | # installed. | 139 | client.unfocused $base01 $base00 $base05 $base01 $base01 |
| 85 | bindsym $mod+d exec --no-startup-id i3-dmenu-desktop | 140 | client.urgent $base08 $base08 $base00 $base08 $base08 |
| 86 | # bindsym $mod+d exec --no-startup-id j4-dmenu-desktop | 141 | client.placeholder $base00 $base00 $base05 $base00 $base00 |
| 142 | client.background $background | ||
| 87 | 143 | ||
| 88 | 144 | ||
| 89 | bindsym $mod+Prior focus parent | ||
| 90 | bindsym $mod+Next focus child | ||
| 91 | bindsym $mod+Left focus left | ||
| 92 | bindsym $mod+Right focus right | ||
| 93 | bindsym $mod+Down focus down | ||
| 94 | bindsym $mod+Up focus up | ||
| 95 | bindsym $mod+Tab focus output right | ||
| 96 | bindsym $mod+Shift+Tab focus output left | ||
| 97 | bindsym mod1+Tab focus right | ||
| 98 | bindsym mod1+Shift+Tab focus left | ||
| 99 | 145 | ||
| 100 | # alternatively, you can use the cursor keys: | ||
| 101 | bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 102 | bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 103 | bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 104 | bindsym $mod+Shift+Right move right ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 105 | 146 | ||
| 106 | # split in horizontal orientation | 147 | # ================================================================================ |
| 107 | # bindsym $mod+h split h | 148 | # windows assignments and special treatment, e.g. icons |
| 149 | # ================================================================================ | ||
| 150 | assign [class="^Pidgin"] $WS0 | ||
| 151 | assign [class="^Hexchat"] $WS0 | ||
| 152 | assign [class="(?i)pidgin"] $WS0 | ||
| 153 | assign [class="^Thunderbird$"] $WS0 | ||
| 154 | assign [title="(?i)weechat"] $WS0 | ||
| 155 | # for_window [class="^.*"] border normal 3 | ||
| 156 | # for_window [title="^.*Thunderbird"] border pixel 0 | ||
| 157 | # for_window [title="^.*Chromium"] border pixel 0 | ||
| 158 | # for_window [class="Gvim"] border pixel 0 | ||
| 159 | for_window [title="(?i)Evolution"] title_format "📧 %title" | ||
| 160 | for_window [class="(?i)firefox"] title_format " %title" | ||
| 161 | for_window [class="(?i)chromium"] title_format " %title" | ||
| 162 | for_window [class="(?i)hexchat"] title_format " %title" | ||
| 163 | for_window [class="(?i)pidgin"] title_format "👥 %title" | ||
| 164 | for_window [class="(?i)thunar"] title_format "🗄️ %title" | ||
| 165 | for_window [class="(?i)keepassx?"] title_format "🔑 %title" | ||
| 166 | for_window [class="(?i).*terminal?"] title_format " %title" | ||
| 167 | for_window [class="(?i).*termite?"] title_format " %title" | ||
| 168 | for_window [class="(?i)xfce4-appfinder"] title_format " %title" | ||
| 169 | for_window [class="(?i)thunderbird"] title_format " %title" | ||
| 170 | for_window [title="(?i)weechat"] title_format " %title" | ||
| 171 | for_window [title="YouTube"] title_format " %title" | ||
| 172 | for_window [title=""] title_format "%title" | ||
| 173 | for_window [title=" "] title_format "%title" | ||
| 108 | 174 | ||
| 109 | # split in vertical orientation | 175 | # for_window [class="(?i)xfce4-terminal"] border pixel 0 |
| 110 | # bindsym $mod+v split v | 176 | # for_window [class="(?i)xfce4-appfinder"] border pixel 0 |
| 177 | # for_window [title="^.*\|"] border pixel 4 | ||
| 178 | # for_window [title="^HexChat.*"] border pixel 0 | ||
| 179 | # for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks | ||
| 180 | # for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks | ||
| 181 | # for_window [title="cairo-dock"] floating enable ; border none | ||
| 182 | # for_window[class="Plank"] floating enable,move absolute center | ||
| 183 | # for_window [class=".*"] title_format "┋ %title" | ||
| 184 | # for_window [con_id="__focused__"] title_format "<u>%title</u>" | ||
| 111 | 185 | ||
| 112 | # enter fullscreen mode for the focused container | ||
| 113 | bindsym $mod+f fullscreen toggle | ||
| 114 | bindsym $mod+g fullscreen toggle global | ||
| 115 | 186 | ||
| 116 | # change container layout (stacked, tabbed, toggle split) | ||
| 117 | bindsym $mod+s layout stacking | ||
| 118 | bindsym $mod+w layout tabbed | ||
| 119 | bindsym $mod+q layout toggle split | ||
| 120 | bindsym $mod+x layout toggle all | ||
| 121 | 187 | ||
| 122 | # toggle tiling / floating | 188 | # ================================================================================ |
| 123 | bindsym $mod+Shift+space floating toggle | 189 | # Keyboard mappings |
| 190 | # Mod1 ctrl | ||
| 191 | # Mod4 windows key | ||
| 192 | # ================================================================================ | ||
| 124 | 193 | ||
| 125 | # change focus between tiling / floating windows | 194 | set $mod Mod4 |
| 126 | # bindsym $mod+space focus mode_toggle | 195 | bindsym $mod+j "mark --toggle a" |
| 127 | 196 | ||
| 128 | # focus the parent container | 197 | # Use Mouse+$mod to drag floating windows to their wanted position |
| 129 | bindsym $mod+a focus parent | 198 | floating_modifier $mod |
| 130 | 199 | ||
| 131 | # focus the child container | 200 | # restart sway or reload config |
| 132 | #bindsym $mod+d focus child | 201 | bindsym $mod+Shift+c reload |
| 202 | bindsym $mod+Shift+r restart | ||
| 133 | 203 | ||
| 134 | workspace 1 output VGA1 | 204 | # kill focused window |
| 135 | workspace_layout tabbed | 205 | bindsym $mod+Shift+q kill |
| 206 | bindsym Mod1+F4 kill | ||
| 136 | 207 | ||
| 137 | # customize workspace names | 208 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' |
| 138 | set $WS1 1:1⃣ | 209 | bindsym Control+Mod1+Left workspace prev_on_output |
| 139 | set $WS2 2:2⃣ | 210 | bindsym Control+Mod1+Right workspace next_on_output |
| 140 | set $WS3 3:3⃣ | ||
| 141 | set $WS4 4:4⃣ | ||
| 142 | set $WS5 5:5⃣ | ||
| 143 | set $WS6 6:6⃣ | ||
| 144 | set $WS7 7:7⃣ | ||
| 145 | set $WS8 8:8⃣ | ||
| 146 | set $WS9 9:9⃣ | ||
| 147 | set $WS10 10:0⃣ | ||
| 148 | 211 | ||
| 149 | assign [class="^Thunderbird$"] → $WS10 | 212 | # move focused window |
| 150 | assign [class="^Pidgin"] → $WS10 | 213 | bindsym $mod+Shift+h move left |
| 151 | assign [class="^Hexchat"] → $WS10 | 214 | bindsym $mod+Shift+j move down |
| 152 | assign [class="(?i)pidgin"] → $WS10 | 215 | bindsym $mod+Shift+k move up |
| 216 | bindsym $mod+Shift+l move right | ||
| 153 | 217 | ||
| 154 | bindsym Mod4+BackSpace exec i3-msg move workspace to output right | ||
| 155 | 218 | ||
| 156 | # switch to workspace | 219 | bindsym $mod+Tab focus output right |
| 157 | bindsym Mod4+1 workspace $WS1 | 220 | bindsym $mod+Shift+Tab focus output left |
| 158 | bindsym Mod4+2 workspace $WS2 | 221 | bindsym mod1+Tab focus right |
| 159 | bindsym Mod4+3 workspace $WS3 | 222 | bindsym mod1+Shift+Tab focus left |
| 160 | bindsym Mod4+4 workspace $WS4 | 223 | bindsym $mod+Next focus child |
| 161 | bindsym Mod4+5 workspace $WS5 | 224 | bindsym $mod+Left focus left |
| 162 | bindsym Mod4+6 workspace $WS6 | 225 | bindsym $mod+Right focus right |
| 163 | bindsym Mod4+7 workspace $WS7 | 226 | bindsym $mod+Down focus down |
| 164 | bindsym Mod4+8 workspace $WS8 | 227 | bindsym $mod+Up focus up |
| 165 | bindsym Mod4+9 workspace $WS9 | 228 | bindsym $mod+Prior focus parent |
| 166 | bindsym Mod4+0 workspace $WS10 | 229 | bindsym $mod+a focus parent |
| 167 | 230 | ||
| 168 | # move focused container to workspace | 231 | # alternatively, you can use the cursor keys: |
| 169 | bindsym Mod4+Shift+1 move container to workspace $WS1 | 232 | bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks |
| 170 | bindsym Mod4+Shift+2 move container to workspace $WS2 | 233 | bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks |
| 171 | bindsym Mod4+Shift+3 move container to workspace $WS3 | 234 | bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks |
| 172 | bindsym Mod4+Shift+4 move container to workspace $WS4 | 235 | bindsym $mod+Shift+Right move right ; exec pkill -SIGRTMIN+11 i3blocks |
| 173 | bindsym Mod4+Shift+5 move container to workspace $WS5 | ||
| 174 | bindsym Mod4+Shift+6 move container to workspace $WS6 | ||
| 175 | bindsym Mod4+Shift+7 move container to workspace $WS7 | ||
| 176 | bindsym Mod4+Shift+8 move container to workspace $WS8 | ||
| 177 | bindsym Mod4+Shift+9 move container to workspace $WS9 | ||
| 178 | bindsym Mod4+Shift+0 move container to workspace $WS10 | ||
| 179 | 236 | ||
| 180 | # workspace 1 output DP-1 | ||
| 181 | # workspace 2 output DP-1 | ||
| 182 | # workspace 3 output DP-1 | ||
| 183 | # workspace 4 output DP-1 | ||
| 184 | # workspace 5 output HDMI-1 | ||
| 185 | # workspace 6 output HDMI-1 | ||
| 186 | # workspace 7 output HDMI-1 | ||
| 187 | # workspace 8 output HDMI-1 | ||
| 188 | # workspace "music" output HDMI-1 | ||
| 189 | # workspace "background" output HDMI-1 | ||
| 190 | 237 | ||
| 191 | # reload the configuration file | 238 | # change container layout (stacked, tabbed, toggle split) |
| 192 | bindsym $mod+Shift+c reload | 239 | bindsym $mod+s layout stacking |
| 193 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | 240 | bindsym $mod+w layout tabbed |
| 194 | bindsym $mod+Shift+r restart | 241 | bindsym $mod+q layout toggle split |
| 195 | # exit i3 (logs you out of your X session) | 242 | bindsym $mod+x layout toggle all |
| 196 | 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'" | ||
| 197 | 243 | ||
| 244 | bindsym $mod+v split toggle | ||
| 245 | bindsym $mod+space split toggle | ||
| 198 | 246 | ||
| 199 | bindsym $mod+m move scratchpad | 247 | # enter fullscreen mode for the focused container |
| 200 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center | 248 | bindsym $mod+f fullscreen toggle |
| 249 | bindsym $mod+g fullscreen toggle global | ||
| 201 | 250 | ||
| 251 | # toggle tiling / floating | ||
| 252 | bindsym $mod+Shift+space floating toggle | ||
| 253 | bindsym $mod+m move scratchpad | ||
| 254 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center | ||
| 202 | 255 | ||
| 256 | # start a terminal | ||
| 257 | # bindsym $mod+Return exec i3-sensible-terminal | ||
| 258 | bindsym $mod+Return exec "killall rofi ; rofi -show drun -show-icons" | ||
| 259 | bindsym Mod1+F2 exec "killall rofi ; rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5" | ||
| 260 | bindsym $mod+t exec alacritty | ||
| 261 | bindsym $mod+e exec thunar | ||
| 262 | bindsym $mod+l exec swaylock -K -f -F -c "#000000" --text-color '#ffffff' --indicator-radius 200 --indicator-thickness 10 | ||
| 263 | bindsym $mod+d exec i3-dmenu-desktop | ||
| 264 | # Pulse Audio controls | ||
| 265 | bindsym $mod+F10 exec pactl set-sink-mute @DEFAULT_SINK@ toggle | ||
| 266 | bindsym $mod+F11 exec pactl set-sink-volume @DEFAULT_SINK@ -5% | ||
| 267 | bindsym $mod+F12 exec pactl set-sink-volume @DEFAULT_SINK@ +5% | ||
| 268 | bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% | ||
| 269 | bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% | ||
| 270 | bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle | ||
| 203 | 271 | ||
| 204 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' | ||
| 205 | bindsym Control+Mod1+Left workspace prev_on_output | ||
| 206 | bindsym Control+Mod1+Right workspace next_on_output | ||
| 207 | 272 | ||
| 208 | # move focused window | ||
| 209 | bindsym $mod+Shift+h move left | ||
| 210 | bindsym $mod+Shift+j move down | ||
| 211 | bindsym $mod+Shift+k move up | ||
| 212 | bindsym $mod+Shift+l move right | ||
| 213 | 273 | ||
| 274 | # change focus between tiling / floating windows | ||
| 275 | # bindsym $mod+space focus mode_toggle | ||
| 276 | |||
| 277 | # focus the child container | ||
| 278 | #bindsym $mod+d focus child | ||
| 279 | |||
| 280 | # exit i3 (logs you out of your X session) | ||
| 281 | # 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'" | ||
| 214 | # split in horizontal orientation | 282 | # split in horizontal orientation |
| 215 | # bindsym $mod+Shift+v split h | 283 | # bindsym $mod+h split h |
| 216 | 284 | ||
| 217 | # split in vertical orientation | 285 | # split in vertical orientation |
| 218 | # bindsym $mod+v split v | 286 | # bindsym $mod+v split v |
| 219 | bindsym $mod+v split toggle | ||
| 220 | bindsym $mod+space split toggle | ||
| 221 | |||
| 222 | |||
| 223 | 287 | ||
| 224 | bindsym $mod+r mode "resize" | ||
| 225 | # resize window (you can also use the mouse for that) | 288 | # resize window (you can also use the mouse for that) |
| 289 | bindsym $mod+r mode "resize" | ||
| 226 | mode "resize" { | 290 | mode "resize" { |
| 227 | # These bindings trigger as soon as you enter the resize mode | 291 | # These bindings trigger as soon as you enter the resize mode |
| 228 | 292 | ||
| @@ -230,16 +294,16 @@ mode "resize" { | |||
| 230 | # Pressing right will grow the window’s width. | 294 | # Pressing right will grow the window’s width. |
| 231 | # Pressing up will shrink the window’s height. | 295 | # Pressing up will shrink the window’s height. |
| 232 | # Pressing down will grow the window’s height. | 296 | # Pressing down will grow the window’s height. |
| 233 | bindsym $mod+h resize shrink width 4 px or 4 ppt | 297 | bindsym $mod+h resize shrink width 4 px or 4 ppt |
| 234 | bindsym $mod+j resize grow height 4 px or 4 ppt | 298 | bindsym $mod+j resize grow height 4 px or 4 ppt |
| 235 | bindsym $mod+k resize shrink height 4 px or 4 ppt | 299 | bindsym $mod+k resize shrink height 4 px or 4 ppt |
| 236 | bindsym $mod+l resize grow width 4 px or 4 ppt | 300 | bindsym $mod+l resize grow width 4 px or 4 ppt |
| 237 | 301 | ||
| 238 | # same bindings, but for the arrow keys | 302 | # same bindings, but for the arrow keys |
| 239 | bindsym Left resize shrink width 4 px or 4 ppt | 303 | bindsym Left resize shrink width 4 px or 4 ppt |
| 240 | bindsym Up resize grow height 4 px or 4 ppt | 304 | bindsym Up resize grow height 4 px or 4 ppt |
| 241 | bindsym Down resize shrink height 4 px or 4 ppt | 305 | bindsym Down resize shrink height 4 px or 4 ppt |
| 242 | bindsym Right resize grow width 4 px or 4 ppt | 306 | bindsym Right resize grow width 4 px or 4 ppt |
| 243 | 307 | ||
| 244 | # back to normal: Enter or Escape | 308 | # back to normal: Enter or Escape |
| 245 | bindsym Return mode "default" | 309 | bindsym Return mode "default" |
| @@ -257,17 +321,41 @@ mode $mode_brightness { | |||
| 257 | } | 321 | } |
| 258 | 322 | ||
| 259 | 323 | ||
| 324 | # Press $mod+o followed by either f, t, Escape or Return to launch firefox, | ||
| 325 | # thunderbird or return to the default mode, respectively. | ||
| 326 | set $mode_launcher Launch: [f]irefox [t]hunderbird | ||
| 327 | bindsym $mod+o mode "$mode_launcher" | ||
| 328 | |||
| 329 | mode "$mode_launcher" { | ||
| 330 | bindsym f exec firefox | ||
| 331 | bindsym t exec thunderbird | ||
| 332 | |||
| 333 | bindsym Escape mode "default" | ||
| 334 | bindsym Return mode "default" | ||
| 335 | } | ||
| 336 | # bindsym $mod+d exec --no-startup-id j4-dmenu-desktop | ||
| 337 | # exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 | ||
| 338 | # bindcode 156 | ||
| 339 | # exec xrandr --output DP-1 --rotate left --pos 1920x-420 | ||
| 340 | # exec xrandr --output DP1 --rotate left --right-of HDMI1 | ||
| 341 | # exec xrandr --output DP1 --rotate left --pos 1920x-420 | ||
| 342 | |||
| 343 | |||
| 344 | |||
| 260 | 345 | ||
| 261 | 346 | ||
| 262 | 347 | ||
| 348 | # ================================================================================ | ||
| 349 | # Execute (autostart) further applications | ||
| 350 | |||
| 263 | #! exec: execute when starting | 351 | #! exec: execute when starting |
| 264 | #! exec_always: execute when starting or restarting | 352 | #! exec_always: execute when starting or restarting |
| 353 | # ================================================================================ | ||
| 354 | |||
| 265 | 355 | ||
| 266 | # exec xrandr --output HDMI-1 --right-of DP-1 | 356 | # exec xrandr --output HDMI-1 --right-of DP-1 |
| 267 | # exec xrandr --output HDMI-1 --right-of VGA-1 | 357 | # exec xrandr --output HDMI-1 --right-of VGA-1 |
| 268 | # exec /usr/bin/xrandr-reset.sh | 358 | # exec /usr/bin/xrandr-reset.sh |
| 269 | exec xset r rate 330 40 | ||
| 270 | exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 | ||
| 271 | # exec setsid xautolock -locker swaylock | 359 | # exec setsid xautolock -locker swaylock |
| 272 | 360 | ||
| 273 | exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' | 361 | exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' |
| @@ -276,113 +364,36 @@ exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms o | |||
| 276 | # start compositor... | 364 | # start compositor... |
| 277 | # exec compton -b --config ~/.config/i3/compton.conf | 365 | # exec compton -b --config ~/.config/i3/compton.conf |
| 278 | # exec nitrogen --restore | 366 | # exec nitrogen --restore |
| 279 | exec setsid mako | 367 | exec mako |
| 368 | bindsym ctrl+space exec makoctl dismiss -a | ||
| 369 | |||
| 280 | exec nm-applet | 370 | exec nm-applet |
| 281 | exec pidgin | 371 | # exec pidgin |
| 282 | exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e 'match($0,"Exec=(.*)",q){ gsub(/ %.+/, "", q[1]); system("setsid -f " q[1])};' $d; done' | 372 | exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e 'match($0,"Exec=(.*)",q){ gsub(/ %.+/, "", q[1]); system("setsid -f " q[1])};' $d; done' |
| 283 | exec_always setxkbmap de,us -device evdev -model pc105 -option "" -option keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp -v 1 -print | ||
| 284 | # exec setxkbmap -option caps:escape | ||
| 285 | |||
| 286 | |||
| 287 | |||
| 288 | |||
| 289 | 373 | ||
| 290 | exec setsid hexchat -e --minimize=2 | 374 | # exec setxkbmap de,us -device evdev -model pc105 -option "" -option keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp -v 1 -print |
| 375 | # exec xset r rate 330 40 | ||
| 376 | # exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 | ||
| 377 | # exec setxkbmap -option caps:escape | ||
| 291 | 378 | ||
| 292 | 379 | ||
| 293 | # ============================================== | ||
| 294 | # base16 Xressource depenend color configuration | ||
| 295 | # with default values from base16-tomorrow-night | ||
| 296 | # ============================================== | ||
| 297 | 380 | ||
| 298 | include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config | 381 | # input 16700:8467:Dell_KB216_Wired_Keyboard_Consumer_Control { |
| 299 | # main variables ssource default | 382 | # xkb_layout "us" |
| 300 | # d variable default | 383 | # xkb_variant "altgr-intl,nodeadkeys" |
| 301 | set $background $base01 | 384 | # xkb_options "keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp" |
| 302 | set $foreground $base05 | 385 | # xkb_model "pc105" |
| 303 | set $cursorColor #00ff00 | 386 | # xkb_numlock "enable" |
| 387 | # repeat_delay 100 | ||
| 388 | # repeat_rate 330 | ||
| 389 | # } | ||
| 304 | 390 | ||
| 305 | # set_from_resource $foreground base16.cursor $cursorColor | ||
| 306 | # set_from_resource $foreground base16.cursor $base05 | ||
| 307 | |||
| 308 | # Basic bar configuration using the Base16 variables. | ||
| 309 | bar { | ||
| 310 | # status_command i3status --config ~/.config/i3/i3status.conf | ||
| 311 | font pango:monospace 9 | ||
| 312 | status_command i3status --config ~/.config/i3/i3status.conf | ||
| 313 | # swaybar_command swaybar | ||
| 314 | 391 | ||
| 315 | tray_padding 2 | ||
| 316 | tray_output DP-1 | ||
| 317 | mode dock | ||
| 318 | strip_workspace_numbers yes | ||
| 319 | # separator_symbol "|" | ||
| 320 | separator_symbol " " | ||
| 321 | 392 | ||
| 322 | colors { | ||
| 323 | background $background | ||
| 324 | separator $foreground | ||
| 325 | statusline $foreground | ||
| 326 | 393 | ||
| 327 | focused_workspace $background $background $base05 | ||
| 328 | active_workspace $background $background $cursorColor | ||
| 329 | inactive_workspace $background $background $base03 | ||
| 330 | urgent_workspace $background $background $base08 | ||
| 331 | binding_mode $background $background $foreground | ||
| 332 | } | ||
| 333 | } | ||
| 334 | 394 | ||
| 335 | # Basic color configuration using the Base16 variables for windows and borders. | 395 | # exec setsid hexchat -e --minimize=2 |
| 336 | # Property Name Border BG Text Indicator Child Border | 396 | exec termite -e /home/max/.local/bin/weechat |
| 337 | client.focused $base05 $base0D $base00 $base0D $base0D | ||
| 338 | client.focused_inactive $base01 $base01 $base05 $base03 $base01 | ||
| 339 | client.unfocused $base01 $base00 $base05 $base01 $base01 | ||
| 340 | client.urgent $base08 $base08 $base00 $base08 $base08 | ||
| 341 | client.placeholder $base00 $base00 $base05 $base00 $base00 | ||
| 342 | client.background $background | ||
| 343 | |||
| 344 | |||
| 345 | # for_window [class="^.*"] border normal 3 | ||
| 346 | # for_window [title="^.*Thunderbird"] border pixel 0 | ||
| 347 | # for_window [title="^.*Chromium"] border pixel 0 | ||
| 348 | # for_window [class="Gvim"] border pixel 0 | ||
| 349 | for_window [class="(?i)evolution"] title_format "📧 %title" | ||
| 350 | for_window [class="(?i)thunderbird"] title_format " %title" | ||
| 351 | for_window [class="(?i)firefox"] title_format " %title" | ||
| 352 | for_window [class="(?i)chromium"] title_format " %title" | ||
| 353 | for_window [class="(?i)hexchat"] title_format " %title" | ||
| 354 | for_window [class="(?i)pidgin"] title_format "👥 %title" | ||
| 355 | for_window [class="(?i)thunar"] title_format "🗄️ %title" | ||
| 356 | for_window [class="(?i)keepassx?"] title_format "🔑 %title" | ||
| 357 | for_window [class="(?i).*terminal?"] title_format " %title" | ||
| 358 | for_window [class="(?i).*termite?"] title_format " %title" | ||
| 359 | for_window [class="(?i)xfce4-appfinder"] title_format " %title" | ||
| 360 | for_window [title="YouTube"] title_format " %title" | ||
| 361 | for_window [title=""] title_format "%title" | ||
| 362 | for_window [title=" "] title_format "%title" | ||
| 363 | # for_window [class="(?i)xfce4-terminal"] border pixel 0 | ||
| 364 | # for_window [class="(?i)xfce4-appfinder"] border pixel 0 | ||
| 365 | # for_window [title="^.*\|"] border pixel 4 | ||
| 366 | # for_window [title="^HexChat.*"] border pixel 0 | ||
| 367 | # for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks | ||
| 368 | # for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks | ||
| 369 | # for_window [title="cairo-dock"] floating enable ; border none | ||
| 370 | # for_window[class="Plank"] floating enable,move absolute center | ||
| 371 | # for_window [class=".*"] title_format "┋ %title" | ||
| 372 | # for_window [con_id="__focused__"] title_format "<u>%title</u>" | ||
| 373 | |||
| 374 | # Press $mod+o followed by either f, t, Escape or Return to launch firefox, | ||
| 375 | # thunderbird or return to the default mode, respectively. | ||
| 376 | set $mode_launcher Launch: [f]irefox [t]hunderbird | ||
| 377 | bindsym $mod+o mode "$mode_launcher" | ||
| 378 | |||
| 379 | mode "$mode_launcher" { | ||
| 380 | bindsym f exec firefox | ||
| 381 | bindsym t exec thunderbird | ||
| 382 | |||
| 383 | bindsym Escape mode "default" | ||
| 384 | bindsym Return mode "default" | ||
| 385 | } | ||
| 386 | 397 | ||
| 387 | 398 | ||
| 388 | # vim: iskeyword+=\$,\-,\# nospell ft=tcl | 399 | # vim: iskeyword+=\$,\-,\#,(,) nospell ft=tcl |
