Compare commits
2 commits
aa0d0c64ae
...
6a4d606166
Author | SHA1 | Date | |
---|---|---|---|
6a4d606166 | |||
827c80421e |
2 changed files with 11 additions and 20 deletions
27
sway/config
27
sway/config
|
@ -9,36 +9,27 @@ set $down 45
|
||||||
set $up 46
|
set $up 46
|
||||||
## {l>>1}
|
## {l>>1}
|
||||||
set $right 47
|
set $right 47
|
||||||
set $term alacritty
|
set $term systemd-run --user alacritty
|
||||||
set $menu wofi --show drun -i
|
set $menu systemd-run --user --scope wofi --show drun -i
|
||||||
set $status_command i3status-rs
|
set $status_command i3status-rs
|
||||||
|
|
||||||
exec swayidle -w \
|
exec systemd-run --user --scope swayidle -w \
|
||||||
timeout 300 'swaylock -f -c 000000' \
|
timeout 300 'swaylock -f -c 000000' \
|
||||||
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||||
lock "swaylock -f -c 000000" \
|
lock 'swaylock -f -c 000000' \
|
||||||
before-sleep 'swaylock -f -c 000000'
|
before-sleep 'swaylock -f -c 000000'
|
||||||
|
|
||||||
# Drag floating windows by holding down $mod and left mouse button.
|
# Copy PATH into dbus session
|
||||||
# Resize them with right mouse button + $mod.
|
exec dbus-update-activation-environment --systemd PATH
|
||||||
# Despite the name, also works for non-floating windows.
|
|
||||||
# Change normal to inverse to use left mouse button for resizing and right
|
|
||||||
# mouse button for dragging.
|
|
||||||
floating_modifier $mod normal
|
floating_modifier $mod normal
|
||||||
|
|
||||||
#
|
#
|
||||||
# Scratchpad:
|
# Scratchpad:
|
||||||
#
|
#
|
||||||
# Sway has a "scratchpad", which is a bag of holding for windows.
|
bindcode $mod+Shift+20 move scratchpad
|
||||||
# You can send windows there and get them back later.
|
bindcode $mod+20 scratchpad show
|
||||||
|
|
||||||
# Move the currently focused window to the scratchpad
|
|
||||||
bindcode $mod+Shift+20 move scratchpad
|
|
||||||
|
|
||||||
# Show the next scratchpad window or hide the focused scratchpad window.
|
|
||||||
# If there are multiple scratchpad windows, this command cycles through them.
|
|
||||||
bindcode $mod+20 scratchpad show
|
|
||||||
#
|
|
||||||
# Resizing containers:
|
# Resizing containers:
|
||||||
#
|
#
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
||||||
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||||
bindsym XF86MonBrightnessDown exec brightnessctl set 10%-
|
bindsym XF86MonBrightnessDown exec brightnessctl -e set 10%-
|
||||||
bindsym XF86MonBrightnessUp exec brightnessctl set 10%+
|
bindsym XF86MonBrightnessUp exec brightnessctl -e set 10%+
|
||||||
bindsym XF86AudioPlay exec playerctl play-pause
|
bindsym XF86AudioPlay exec playerctl play-pause
|
||||||
bindsym XF86AudioNext exec playerctl next
|
bindsym XF86AudioNext exec playerctl next
|
||||||
bindsym XF86AudioPrev exec playerctl prev
|
bindsym XF86AudioPrev exec playerctl prev
|
||||||
|
|
Loading…
Reference in a new issue