| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- #background
- #exec swaybg -i ~/pictures/insert_background_here.jpg
- exec /usr/libexec/xdg-desktop-portal -r & /usr/libexec/xdg-desktop-portal-wlr
- #bar for brigtness/sound/battery
- exec rm -f $WOBSOCK_VOLUME && mkfifo $WOBSOCK_VOLUME && tail -f $WOBSOCK_VOLUME | wob -c ~/.config/wob/wob-volume.ini
- exec rm -f $WOBSOCK_BRIGHTNESS && mkfifo $WOBSOCK_BRIGHTNESS && tail -f $WOBSOCK_BRIGHTNESS | wob -c ~/.config/wob/wob-brightness.ini
- exec rm -f $WOBSOCK_BATTERY && mkfifo $WOBSOCK_BATTERY && tail -f $WOBSOCK_BATTERY | wob -c ~/.config/wob/wob.ini
- #screens!
- output HDMI-A-1 pos 1920 0
- output eDP-1 pos 0 0
- workspace 1 output eDP-1
- workspace 2 output HDMI-A-1
- #directions
- set $up k
- set $down j
- set $left h
- set $right l
- set $Mod Mod4
- # use Mouse+Mod4 to drag floating windows to their wanted position
- floating_modifier $Mod
- # kill focused window
- bindsym $Mod+Shift+q kill
- bindsym Mod1+F4 kill, exec "~/scripts/shutdown_handler.sh"
- # change focus
- bindsym $Mod+$left focus left
- bindsym $Mod+$down focus down
- bindsym $Mod+$up focus up
- bindsym $Mod+$right focus right
- # alternatively, you can use the cursor keys:
- bindsym $Mod+Left focus left
- bindsym $Mod+Down focus down
- bindsym $Mod+Up focus up
- bindsym $Mod+Right focus right
- # move focused window - yes, vim bindings.
- bindsym $Mod+Shift+$left move left
- bindsym $Mod+Shift+$down move down
- bindsym $Mod+Shift+$up move up
- bindsym $Mod+Shift+$right move right
- # alternatively, you can use the cursor keys:
- bindsym $Mod+Shift+Left move left
- bindsym $Mod+Shift+Down move down
- bindsym $Mod+Shift+Up move up
- bindsym $Mod+Shift+Right move right
- # split in horizontal orientation
- bindsym $Mod+shift+v split h
- # split in vertical orientation
- bindsym $Mod+v split v
- # enter fullscreen mode for the focused container
- bindsym $Mod+f fullscreen toggle
- # change container layout (stacked, tabbed, toggle split)
- bindsym $Mod+s layout stacking
- bindsym $Mod+w layout tabbed
- bindsym $Mod+Shift+w layout toggle split
- # toggle tiling / floating
- bindsym $Mod+Shift+space floating toggle
- # switch to workspace
- bindsym $Mod+1 workspace 1
- bindsym $Mod+2 workspace 2
- bindsym $Mod+3 workspace 3
- bindsym $Mod+4 workspace 4
- bindsym $Mod+5 workspace 5
- bindsym $Mod+6 workspace 6
- bindsym $Mod+7 workspace 7
- bindsym $Mod+8 workspace 8
- bindsym $Mod+9 workspace 9
- bindsym $Mod+0 workspace 10
- bindsym $Mod+Tab workspace next
- bindsym $Mod+Shift+Tab workspace prev
- # move focused container to workspace
- bindsym $Mod+Shift+1 move container to workspace 1
- bindsym $Mod+Shift+2 move container to workspace 2
- bindsym $Mod+Shift+3 move container to workspace 3
- bindsym $Mod+Shift+4 move container to workspace 4
- bindsym $Mod+Shift+5 move container to workspace 5
- bindsym $Mod+Shift+6 move container to workspace 6
- bindsym $Mod+Shift+7 move container to workspace 7
- bindsym $Mod+Shift+8 move container to workspace 8
- bindsym $Mod+Shift+9 move container to workspace 9
- bindsym $Mod+Shift+0 move container to workspace 10
- # resize window (you can also use the mouse for that)
- mode "resize" {
- # 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 $left resize shrink width 10 px or 10 ppt
- bindsym $down resize shrink height 10 px or 10 ppt
- bindsym $up resize grow height 10 px or 10 ppt
- bindsym $right resize grow width 10 px or 10 ppt
-
- # same bindings, but for the arrow keys
- bindsym Left resize shrink width 10 px or 10 ppt
- bindsym Down resize shrink height 10 px or 10 ppt
- bindsym Up resize grow height 10 px or 10 ppt
- bindsym Right resize grow width 10 px or 10 ppt
-
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- #device specifig config
- input 1:1:AT_Translated_Set_2_keyboard {
- xkb_options caps:escape
- xkb_numlock enable
- xkb_layout de
- }
- input 1267:12299:ELAN0501:00_04F3:300B_Touchpad {
- tap enabled
- natural_scroll disabled
- dwt disabled
- }
- bindsym $Mod+r mode "resize"
- # reload the configuration file
- bindsym $Mod+Shift+c reload
- # restart sway inplace (preserves your layout/session, can be used to upgrade sway)
- bindsym $Mod+Shift+r restart
- bindsym $Mod+Space exec "cat ~/desktop/applications.txt | wofi --dmenu | dash"
- # exit sway
- 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 sway session.' -b 'Yes, exit sway' 'swaymsg exit'"
- # PROGRAM SHORTCUTS
- bindsym $Mod+Return exec foot
- bindsym $Mod+e exec thunar
- bindsym Print exec grimshot save area ~/screenshots/$(date "+2023-11-25_20-27-33").png
- bindsym $Mod+Shift+Control+l exec swaylock
- # SCREEN BACKLIGHT
- bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- && brightnessctl g > $WOBSOCK_BRIGHTNESS
- bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ && brightnessctl g > $WOBSOCK_BRIGHTNESS
- # VOLUME
- bindsym XF86AudioRaiseVolume exec ~/scripts/volume_handler.sh "+" "$WOBSOCK_VOLUME"
- bindsym XF86AudioLowerVolume exec ~/scripts/volume_handler.sh "-" "$WOBSOCK_VOLUME"
- bindsym XF86AudioMute exec ~/scripts/volume_handler.sh "m" "$WOBSOCK_VOLUME"
- # BATTERY INDICATOR
- bindsym $Mod+b exec acpi | grep -Po '(\d+)(?=%)' > $WOBSOCK_BATTERY
- # just some cosmetic options
- #class border backgr. text indicator child_border
- client.background #222222 #222222
- client.focused #33DD33 #222222 #FFFFFF #33DD33 #33DD33
- default_border pixel
- for_window {
- [app_id="connman-gtk"] floating enable
- [app_id="firefox"] inhibit_idle fullscreen
- [app_id="(?i)firefox"] inhibit_idle fullscreen
- [class="love-11.3"] floating enable
- [class="love-11.4"] floating enable
- [title="Panda"] floating enable
- [app_id="zenity"] floating enable
- [window_role="pop-up"] floating enable
- [window_role="bubble"] floating enable
- [window_role="dialog"] floating enable
- [window_type="dialog"] floating enable
- [title="(?:Open|Save) (?:File|Folder|As)"] floating enable
- [title="Sharing Indicator"] floating enable, move position 1500 0
- }
|