From 7408a5f07a511f9e2eaa1d4645d73bed20c81fa6 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Sat, 16 Dec 2023 09:40:54 +0200 Subject: [PATCH] Adding autostart and keyboard, updating floating and keybinds --- config/sway/config | 13 ++++++++++--- config/sway/config.d/autostart | 4 ++++ config/sway/config.d/common_floating | 1 + config/sway/config.d/keyboard | 7 +++++++ 4 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 config/sway/config.d/autostart create mode 100644 config/sway/config.d/keyboard diff --git a/config/sway/config b/config/sway/config index 9008b28..a161ed7 100644 --- a/config/sway/config +++ b/config/sway/config @@ -23,8 +23,8 @@ set $menu bemenu-run -p "" | xargs swaymsg exec -- # output HDMI-A-1 resolution 1920x1080 position 1920,0 # # You can get the names of your outputs by running: swaymsg -t get_outputs -output DP-3 resolution 1920x1080 pos 0 540 adaptive_sync on -output HDMI-A-1 resolution 1920x1080 pos 1920 0 transform 90 adaptive_sync on +output DP-3 resolution 1920x1080@143.855hz pos 0 540 +output HDMI-A-1 resolution 1920x1080@72.038hz pos 1920 0 transform 90 ### Key bindings # # Basics: @@ -55,6 +55,13 @@ output HDMI-A-1 resolution 1920x1080 pos 1920 0 transform 90 adaptive_sync on # bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- +bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle +# +# Media keys: +# +bindsym XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous # # Screen capture: # @@ -142,7 +149,7 @@ bindsym $mod+shift+s exec grimshot copy area bindsym $mod+Shift+space floating toggle # Swap focus between the tiling area and the floating area - bindsym $mod+space focus mode_toggle + #bindsym $mod+space focus mode_toggle # Move focus to the parent container bindsym $mod+a focus parent diff --git a/config/sway/config.d/autostart b/config/sway/config.d/autostart new file mode 100644 index 0000000..8dce2fb --- /dev/null +++ b/config/sway/config.d/autostart @@ -0,0 +1,4 @@ +exec keepassxc +exec nextcloud +exec telegram-desktop && swaymsg 'assign [class=Telegram] workspace 2 + diff --git a/config/sway/config.d/common_floating b/config/sway/config.d/common_floating index 566b736..4ea526e 100644 --- a/config/sway/config.d/common_floating +++ b/config/sway/config.d/common_floating @@ -8,3 +8,4 @@ for_window [app_id = "floating"] floating enable for_window [app_id = "floating_update"] floating enable, resize set width 1000px height 600px for_window [class = "(?i)pinentry"] floating enable for_window [title = "Administrator privileges required"] floating enable +for_window [title = "Unlock Database"] floating enable diff --git a/config/sway/config.d/keyboard b/config/sway/config.d/keyboard new file mode 100644 index 0000000..c662266 --- /dev/null +++ b/config/sway/config.d/keyboard @@ -0,0 +1,7 @@ +input * { + xkb_layout "us,fi" +# xkb_options "grp:ctrl_shift_toggle" + xkb_switch_layout "next" +} + +bindsym $mod+space input type:keyboard xkb_switch_layout next