X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Fsway%2F.config%2Fsway%2Fconfig;h=6565ca22bf5a3130dd48f0b749af9e921606ac1d;hb=aa4452d16e705b8be2ecf93e5edbc4ce1b756994;hp=8167b7c3770b12a9b9e04734ab4ef149b5618005;hpb=4ab59b12734443d36464e6dedbee3d900b4331e6;p=dotfiles.git diff --git a/stow/sway/.config/sway/config b/stow/sway/.config/sway/config index 8167b7c..6565ca2 100644 --- a/stow/sway/.config/sway/config +++ b/stow/sway/.config/sway/config @@ -18,8 +18,8 @@ set $term ~/.bin/sensible-terminal.sh # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. -set $menu dmenu_path | dmenu | xargs swaymsg exec -- - +#set $menu dmenu_path | dmenu | xargs swaymsg exec -- +set $menu /usr/bin/ulauncher include /etc/sway/config-vars.d/* ### Output configuration @@ -33,15 +33,25 @@ include /etc/sway/config-vars.d/* # # You can get the names of your outputs by running: swaymsg -t get_outputs + +output HDMI-A-1 resolution 2560x1440 position 0 0 scale 1 +output DP-1 resolution 1680x1050 position 2560 0 scale 1 + +bindsym $mod+F9 exec "sway output DP-1 disable; sway output HDMI-A-1 enable" +bindsym $mod+F10 exec "sway output DP-1 enable; sway output HDMI-A-1 enable" +bindsym $mod+F11 exec "sway output DP-1 enable; sway output HDMI-A-1 disable" ### Idle configuration # # Example configuration: # -# exec swayidle -w \ -# timeout 300 'swaylock -f -c 000000' \ -# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ -# before-sleep 'swaylock -f -c 000000' -# +set $lock_cmd ~/.bin/lockscreen.sh +exec swayidle -w \ + timeout 1200 $lock_cmd \ + timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep $lock_cmd + +bindsym $mod+Shift+x exec $lock_cmd + # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. @@ -87,6 +97,7 @@ include /etc/sway/config-vars.d/* # Exit sway (logs you out of your Wayland session) 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 Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' # + # Moving around: # # Move your focus around @@ -225,11 +236,12 @@ bar { include /etc/sway/config.d/* # custom... -exec --no-startup-id dunst -exec --no-startup-id pasystray -exec --no-startup-id nextcloud -exec --no-startup-id pass git pull -exec --no-startup-id ~/.bin/set_sway_wallpaper.sh +# mako for notifications +exec mako +exec pasystray +exec sleep 3 && nextcloud --background +exec pass git pull +exec ~/.bin/set_sway_wallpaper.sh default_border pixel 6 default_floating_border pixel 6 @@ -237,9 +249,16 @@ bindsym $mod+Shift+d exec dolphin bindsym $mod+Shift+f exec firefox bindsym $mod+Shift+Control+e exec "shutdown -h now" +bindsym Shift+Control+p exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy + for_window [window_role="About"] floating enable for_window [class="vlc"] floating enable +input type:touchpad { + tap enabled + natural_scroll enabled +} + input type:keyboard { xkb_layout us,de xkb_options grp:win_space_toggle