Compare commits

...

2 commits

Author SHA1 Message Date
6a4d606166 Huh? 2025-02-04 19:30:04 +01:00
827c80421e Exponential scaling for brightnessctl 2025-02-04 19:24:51 +01:00
2 changed files with 11 additions and 20 deletions
sway

View file

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

View file

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