dotfiles-arch/.config/sway/config.d/keybinds

58 lines
2 KiB
Text
Raw Normal View History

2023-11-27 18:03:12 +00:00
### Key bindings
# Start a terminal
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
# Start your browesr
bindsym $mod+w exec $browser
# Lock screen
2024-04-05 19:11:06 +00:00
bindsym $mod+l exec $lock
2023-11-27 18:03:12 +00:00
# Exit sway
2024-04-05 19:11:06 +00:00
bindsym $mod+Shift+l exit
2023-11-27 18:03:12 +00:00
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# 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
# Reload the configuration file
bindsym $mod+F5 reload
# Audio keybinds
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym Shift+XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ 10000%
bindsym Shift+XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ 0%
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
# Brightness keybinds
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
# Player keybinds
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# Screenshot
2024-04-05 19:11:06 +00:00
bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy -t image/png && notify-send -t 3000 "Sway" "Screenshot copied to clipboard"
2023-11-28 14:07:49 +00:00
bindsym Print exec grim - | wl-copy -t iamge/png && notify-send -t 3000 "Sway" "Full screen copied to clipboard"
2023-11-27 18:03:12 +00:00
bindsym Shift+Print exec slurp -p | grim -g - - | convert - txt:- | tail -n 1 | awk '{print $3}' | wl-copy
# Michelsoft Binbows
2024-01-22 23:34:10 +00:00
bindsym Ctrl+$mod+Shift+L exec $browser "https://linkedin.com"
bindsym Ctrl+$mod+Shift+S exec $term -e sl
2024-04-05 19:11:06 +00:00
bindsym Ctrl+$mod+Shift+T exec electron28 "https://twitter.com"
bindsym Ctrl+$mod+Shift+M exec electron28 "https://www.tumblr.com"