diff options
| author | Freya Murphy <freya@freyacat.org> | 2023-11-27 13:03:12 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2023-11-27 13:03:12 -0500 |
| commit | 849ab46bd68fd8e8c275cfa8b918a16cfcd59642 (patch) | |
| tree | 0e6d10d74c6e5096ab8b6c725eb475949edb20fb /.config/sway/config.d/keybinds | |
| download | dotfiles-arch-849ab46bd68fd8e8c275cfa8b918a16cfcd59642.tar.gz dotfiles-arch-849ab46bd68fd8e8c275cfa8b918a16cfcd59642.tar.bz2 dotfiles-arch-849ab46bd68fd8e8c275cfa8b918a16cfcd59642.zip | |
initial
Diffstat (limited to '.config/sway/config.d/keybinds')
| -rw-r--r-- | .config/sway/config.d/keybinds | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.config/sway/config.d/keybinds b/.config/sway/config.d/keybinds new file mode 100644 index 0000000..0543339 --- /dev/null +++ b/.config/sway/config.d/keybinds @@ -0,0 +1,58 @@ +### 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 +bindsym $mod+Shift+l exec $lock + +# Exit sway +bindsym Ctrl+Alt+Delete exec killall sway + +# Power menu +bindsym $mod+L exec killall wlogout || wlogout --css ~/.config/sway/logout.d/power/style.css -l ~/.config/sway/logout.d/power/layout + +# 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 +bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy && notify-send -t 1000 "Screenshot copied to clipboard" +bindsym Print exec grim - | wl-copy && notify-send -t 1000 "Screenshot copied to clipboard" +bindsym Shift+Print exec slurp -p | grim -g - - | convert - txt:- | tail -n 1 | awk '{print $3}' | wl-copy + +# Michelsoft Binbows +bindsym Ctrl+$mod+Shift+L exec firefox "https://linkedin.com" +bindsym Ctrl+$mod+Shift+S exec alacritty -e sl |