{ config, pkgs, inputs, ... }: { wayland.windowManager.sway = { enable = true; config = rec { modifier = "Mod4"; # Use kitty as default terminal terminal = "alacritty"; bars = [ {command = "waybar";} ]; startup = [ # Launch Firefox on start {command = "wpaperd";} {command = "wl-paste --watch cliphist store";} ]; }; extraConfig = '' ## Input configuration input "type:keyboard" { xkb_layout de,us xkb_variant "nodeadkeys" xkb_options grp:alt_shift_toggle } input "type:touchpad" { tap enabled # enables click-on-tap tap_button_map lrm # tap with 1 finger = left click, 2 fingers = right click, 3 fingers = middle click dwt enabled # disable (touchpad) while typing dwtp disabled # disable (touchpad) while track pointing } #touch { # set along_the_top "20px x 1.0 @ .5 x 0" # set bottom_half "1.0 x .5 @ 0 x .5" # set right_half ".5 x 1.0 @ .5 x 0" # gesture exec 'rofi -show drun'{ # down 1 $along_the_top # horiz +100px < move # } #} # Brightness bindsym XF86MonBrightnessDown exec light -U 10 bindsym XF86MonBrightnessUp exec light -A 10 # Volume bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +1%' bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -1%' bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle' # app launcher bindsym Mod4+m exec 'rofi -show drun' bindsym Mod4+Shift+x exec 'rofi -show power-menu -modi power-menu:rofi-power-menu' bindsym Mod4+Print exec 'rofi-screenshot' bindsym Mod4+Shift+v exec 'cliphist list | rofi -dmenu | cliphist decode | wl-copy' bindsym Mod4+BackSpace kill # disable window border default_border pixel 2 font pango:monospace 0.001 titlebar_padding 1 titlebar_border_thickness 0 ''; }; }