From b1292c41ac000d06b615a909380ec815ded68471 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Fri, 22 Jan 2021 10:01:56 +0100 Subject: [PATCH] sway: menu -> wofi with mod+r, remove resize mode --- README.md | 4 ++-- config | 48 +++++++++++++----------------------------------- 2 files changed, 15 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index fc3f042..bb61b88 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,6 @@ install required packages ``` -$ sudo pacman -S sway swayidle swaylock bemenu bemenu-wlroots i3status-rust grim slurp wl-clipboard -$ yay -S j4-dmenu-desktop persway +$ sudo pacman -S sway swayidle swaylock bemenu bemenu-wlroots i3status-rust grim slurp wl-clipboard wofi +$ yay -S persway ``` diff --git a/config b/config index 1f3b270..32dd4a7 100644 --- a/config +++ b/config @@ -24,10 +24,7 @@ set $volume_cmd $HOME/.config/sway/bin/sway_volume set $font Cascadia Code PL Regular 10 # Your preferred application launcher -set $bemenu 'bemenu -i --nb "#3f3f3f" --nf "#dcdccc" --tf "$268bd2" --hf "#268bd2" --fn "$font"' -set $menu j4-dmenu-desktop --term="termite" \ - --dmenu=$bemenu - +set $menu wofi --show drun # # Host Specific # @@ -80,7 +77,7 @@ bindsym $mod+Shift+q kill bindsym --release button3 kill # Start your launcher -bindsym $mod+t exec $menu +bindsym $mod+r exec $menu # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. @@ -90,7 +87,7 @@ bindsym $mod+t exec $menu floating_modifier $mod normal # Reload the configuration file -bindsym $mod+Shift+r reload +bindsym $mod+Ctrl+r reload # 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' @@ -102,22 +99,18 @@ bindsym $mod+$left focus left bindsym $mod+$down focus down bindsym $mod+$up focus up bindsym $mod+$right focus right -# Or use $mod+[up|down|left|right] -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - # Move the focused window with the same, but add Shift bindsym $mod+Shift+$left move left bindsym $mod+Shift+$down move down bindsym $mod+Shift+$up move up bindsym $mod+Shift+$right move right -# Ditto, with arrow 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 +# +# Resize +# +bindsym $mod+Ctrl+$left resize shrink width 50px +bindsym $mod+Ctrl+$down resize grow height 50px +bindsym $mod+Ctrl+$up resize shrink height 50px +bindsym $mod+Ctrl+$right resize grow width 50px # # Workspaces: # @@ -214,25 +207,10 @@ bindsym $mod+s [con_mark="s"] scratchpad show bindsym $mod+z [con_mark="z"] scratchpad show bindsym $mod+x [con_mark="x"] scratchpad show bindsym $mod+c [con_mark="c"] scratchpad show -# -# Resizing containers: -# -mode "resize" { - bindsym $left resize shrink width 25px - bindsym $down resize grow height 25px - bindsym $up resize shrink height 25px - bindsym $right resize grow width 25px - # resize more - bindsym Shift+$left resize shrink width 100px - bindsym Shift+$down resize grow height 100px - bindsym Shift+$up resize shrink height 100px - bindsym Shift+$right resize grow width 100px - # Return to default mode - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym $mod+r mode "resize" +# +# Modes +# mode "move" { bindsym $left move left 25px bindsym $down move down 25px