sway: menu -> wofi with mod+r, remove resize mode

This commit is contained in:
Konstantin Koslowski 2021-01-22 10:01:56 +01:00
parent 78704fa1e4
commit b1292c41ac
2 changed files with 15 additions and 37 deletions

View file

@ -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
```

48
config
View file

@ -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