]> src.twobees.de Git - dotfiles.git/blobdiff - stow/i3/.config/i3/config
sway
[dotfiles.git] / stow / i3 / .config / i3 / config
index 0b8c32748138cec111278e927f14abc7b41fa95b..095359c0418f9d4958b9d93be18abbd3a303fff8 100644 (file)
@@ -24,25 +24,24 @@ font pango:monospace 8
 
 # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
 # screen before suspend. Use loginctl lock-session to lock your screen.
-exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
+#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
 bindsym $mod+Control+l exec --no-startup-id i3lock
 
 # NetworkManager is the most popular way to manage wireless networks on Linux,
 # and nm-applet is a desktop environment-independent system tray GUI for it.
+exec waybar
 exec dunst
-exec --no-startup-id nm-applet
-exec --no-startup-id /usr/bin/pasystray
+#exec --no-startup-id /usr/bin/pasystray
 exec --no-startup-id ~/.bin/touchpad.sh
-exec --no-startup-id /usr/bin/xfce4-power-manager
-exec --no-startup-id /usr/bin/firefox
+#exec --no-startup-id /usr/bin/xfce4-power-manager
+exec --no-startup-id firefox
 # exec --no-startup-id /usr/bin/x2goclient
 exec --no-startup-id "sleep 10; /usr/bin/nextcloud"
 exec --no-startup-id "sleep 12; /usr/bin/pass git pull"
 exec --no-startup-id nitrogen --set-zoom-fill --random ~/.walls/
-exec --no-startup-id "/usr/bin/setxkbmap -option grp:alt_shift_toggle us,de"
 
-default_border pixel 4 
-default_floating_border pixel 2 
+default_border pixel 6 
+default_floating_border pixel 6 
 
 
 
@@ -57,6 +56,9 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
 floating_modifier $mod
 
 bindsym $mod+Return exec ~/.bin/sensible-terminal.sh
+bindsym $mod+Shift+d exec /usr/bin/dolphin
+bindsym $mod+Shift+f exec firefox
+#bindsym $mod+space exec "DISPLAY=:0 setxkbmap -query | grep 'layout:.*us' && setxkbmap de || setxkbmap us"
 # start a terminal
 # use hefault and hope for the best. ... # bindsym $mod+Return exec /usr/bin/gnome-terminal
 
@@ -76,8 +78,6 @@ bindsym $mod+h focus left
 bindsym $mod+j focus down
 bindsym $mod+k focus up
 bindsym $mod+l focus right
-bindsym Control+space focus right
-bindsym Control+Shift+space focus left
 bindsym Mod1+Tab focus right
 bindsym Mod1+Shift+Tab focus left
 
@@ -117,7 +117,7 @@ bindsym $mod+e layout toggle split
 bindsym $mod+Shift+space floating toggle
 
 # change focus between tiling / floating windows
-bindsym $mod+space focus mode_toggle
+bindsym alt+Shift focus mode_toggle
 
 # focus the parent container
 bindsym $mod+a focus parent
@@ -167,31 +167,32 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
 bindsym $mod+Shift+c reload
 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
 bindsym $mod+Shift+r restart
+
 # 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 $mod+Shift+e exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your X session.' -B 'Yes, exit sway' 'i3-msg exit'"
 bindsym $mod+Shift+Control+e exec "shutdown -h now"
 
 
 
 mode "resize" {
-        # These bindings trigger as soon as you enter the resize mode
+# These bindings trigger as soon as you enter the resize mode
 
-        # Pressing left will shrink the window’s width.
-        # Pressing right will grow the window’s width.
-        # Pressing up will shrink the window’s height.
-        # Pressing down will grow the window’s height.
-        bindsym h resize shrink width 10 px or 10 ppt
+# Pressing left will shrink the window’s width.
+# Pressing right will grow the window’s width.
+# Pressing up will shrink the window’s height.
+# Pressing down will grow the window’s height.
+    bindsym h resize shrink width 10 px or 10 ppt
         bindsym j resize grow height 10 px or 10 ppt
         bindsym k resize shrink height 10 px or 10 ppt
         bindsym l resize grow width 10 px or 10 ppt
 
-        # same bindings, but for the arrow keys
+# same bindings, but for the arrow keys
         bindsym Left resize shrink width 10 px or 10 ppt
         bindsym Down resize grow height 10 px or 10 ppt
         bindsym Up resize shrink height 10 px or 10 ppt
         bindsym Right resize grow width 10 px or 10 ppt
 
-        # back to normal: Enter or Escape or $mod+r
+# back to normal: Enter or Escape or $mod+r
         bindsym Return mode "default"
         bindsym Escape mode "default"
         bindsym $mod+r mode "default"
@@ -202,36 +203,54 @@ bindsym $mod+r mode "resize"
 # Start i3bar to display a workspace bar (plus the system information i3status
 # finds out, if available)
 bar {
-        status_command ~/.bin/i3status.sh
+#status_command ~/.bin/i3status.sh
 #        status_command i3status
 }
 
 set $transp       #00000000
 
-# NOTE: The secondary rgb color in the lines below is the fallback if
-# i3 fails to get colors from Xresources.
-set_from_resource $colorf  i3wm.foreground #f8f8f2
-set_from_resource $colorb  i3wm.background #181a26
-set_from_resource $color0  i3wm.color0  #282936
-set_from_resource $color8  i3wm.color8  #4d4f68
-set_from_resource $color1  i3wm.color1  #f087bd
-set_from_resource $color9  i3wm.color9  #bd6a95
-set_from_resource $color2  i3wm.color2  #a5fb8f
-set_from_resource $color10 i3wm.color10 #83c771
-set_from_resource $color3  i3wm.color3  #fae3b0
-set_from_resource $color11 i3wm.color11 #c7b58c
-set_from_resource $color4  i3wm.color4  #96cdfb
-set_from_resource $color12 i3wm.color12 #77a2c7
-set_from_resource $color5  i3wm.color5  #9183f7
-set_from_resource $color13 i3wm.color13 #7368c4
-set_from_resource $color6  i3wm.color6  #89dceb
-set_from_resource $color14 i3wm.color14 #6bacb8
-set_from_resource $color7  i3wm.color7  #e9e9f4
-set_from_resource $color15 i3wm.color15 #f7f7fb
-
-# class                 border   backgr.  text     indicator  child_border
-client.focused          $color13 $color13 $color2  $color1    $color8
-client.focused_inactive $color13 $color8  $color1  $color1    $transp
-client.unfocused        $color8  $color8  $color7  $color1    $transp
-client.urgent           $color5  $color1  $color0  $color1    $transp
-client.background       $transp
+## # NOTE: The secondary rgb color in the lines below is the fallback if
+## # i3 fails to get colors from Xresources.
+## set_from_resource $colorf  i3wm.foreground #f8f8f2
+## set_from_resource $colorb  i3wm.background #181a26
+## set_from_resource $color0  i3wm.color0  #282936
+## set_from_resource $color8  i3wm.color8  #4d4f68
+## set_from_resource $color1  i3wm.color1  #f087bd
+## set_from_resource $color9  i3wm.color9  #bd6a95
+## set_from_resource $color2  i3wm.color2  #a5fb8f
+## set_from_resource $color10 i3wm.color10 #83c771
+## set_from_resource $color3  i3wm.color3  #fae3b0
+## set_from_resource $color11 i3wm.color11 #c7b58c
+## set_from_resource $color4  i3wm.color4  #96cdfb
+## set_from_resource $color12 i3wm.color12 #77a2c7
+## set_from_resource $color5  i3wm.color5  #9183f7
+## set_from_resource $color13 i3wm.color13 #7368c4
+## set_from_resource $color6  i3wm.color6  #89dceb
+## set_from_resource $color14 i3wm.color14 #6bacb8
+## set_from_resource $color7  i3wm.color7  #e9e9f4
+## set_from_resource $color15 i3wm.color15 #f7f7fb
+## 
+## # class                 border   backgr.  text     indicator  child_border
+## client.focused          $color13 $color13 $color2  $color1    $color8
+## client.focused_inactive $color13 $color8  $color1  $color1    $transp
+## client.unfocused        $color8  $color8  $color7  $color1    $transp
+## client.urgent           $color5  $color1  $color0  $color1    $transp
+## client.background       $transp
+
+## # class                 border   backgr.  text     indicator  child_border
+#class                         border    backgr.    text     indicator
+client.focused              #333333   #363636   #f1f1f1   #3F48CD
+client.unfocused            #1b1b1b   #2a2a2a   #999999   #9FA0FF
+client.focused_inactive     #1b1b1b   #353535   #f0f0f0   #9FA0FF
+Client.urgent               #d64937   #444444   #000000   #d64937
+client.background           #1b1b1b   #353535   #f0f0f0   #9FA0FF
+
+
+
+for_window [window_role="About"] floating enable
+for_window [class="vlc"] floating enable
+
+input type:keyboard {
+    xkb_layout us,de
+    xkb_options grp:win_space_toggle
+}