dotfiles/sway/config
2024-02-07 21:35:41 -06:00

149 lines
4.2 KiB
Text

# Preferences
output * {
# bg ~/Pictures/Backgrounds/background.jpg fill
}
input type:touchpad {
natural_scroll enabled
tap enabled
}
input type:pointer {
accel_profile flat
}
input type:keyboard {
xkb_layout us,latam
xkb_options grp:win_space_toggle
repeat_delay 300
repeat_rate 45
}
set $mod Mod4
set $alt Mod1
set $left h
set $down j
set $up k
set $right l
# -
set $term foot
set $filemgr thunar
set $browser firefox
set $browserh firefox-hardened
# -
set $menu ~/.config/scripts/menu/menu "Run:" run | xargs swaymsg exec --
set $passmgr ~/.config/scripts/sway/swaypass
set $passotp ~/.config/scripts/sway/swayotp
set $volup ~/.config/scripts/volup
set $voldown ~/.config/scripts/voldown
set $mute ~/.config/scripts/mute
set $micup ~/.config/scripts/micup
set $micdown ~/.config/scripts/micdown
set $micmute ~/.config/scripts/micmute
set $brightup ~/.config/scripts/brightup
set $brightdown ~/.config/scripts/brightdown
set $powermenu ~/.config/scripts/menu/menu-power
set $bookmenu ~/.config/scripts/menu/menu-bookmarks
# Keybinds
floating_modifier $mod normal
# -
bindsym $mod+Return exec $term
bindsym $mod+r exec $menu
bindsym $mod+Shift+p exec $passmgr
bindsym $mod+Shift+o exec $passotp
bindsym $mod+e exec $filemgr
bindsym $mod+w exec $browser
bindsym $mod+Shift+w exec $browserh
bindsym $mod+b exec $bookmenu
bindsym XF86AudioRaiseVolume exec $volup
bindsym XF86AudioLowerVolume exec $voldown
bindsym XF86AudioMute exec $mute
bindsym Shift+XF86AudioRaiseVolume exec $micup
bindsym Shift+XF86AudioLowerVolume exec $micdown
bindsym Shift+XF86AudioMute exec $micmute
bindsym XF86MonBrightnessUp exec $brightup
bindsym XF86MonBrightnessDown exec $brightdown
bindsym Print exec grim -g "$(slurp)" -o ~/screen.png
# -
bindsym $mod+Shift+q exec swaymsg exit
bindsym $mod+p exec $powermenu
bindsym $mod+q reload
bindsym $mod+c kill
# -
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# -
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# -
bindsym $mod+1 workspace " 1 "
bindsym $mod+2 workspace " 2 "
bindsym $mod+3 workspace " 3 "
bindsym $mod+4 workspace " 4 "
bindsym $mod+5 workspace " 5 "
bindsym $mod+6 workspace " 6 "
bindsym $mod+7 workspace " 7 "
bindsym $mod+8 workspace " 8 "
bindsym $mod+9 workspace " 9 "
bindsym $mod+Shift+1 move container to workspace " 1 "
bindsym $mod+Shift+2 move container to workspace " 2 "
bindsym $mod+Shift+3 move container to workspace " 3 "
bindsym $mod+Shift+4 move container to workspace " 4 "
bindsym $mod+Shift+5 move container to workspace " 5 "
bindsym $mod+Shift+6 move container to workspace " 6 "
bindsym $mod+Shift+7 move container to workspace " 7 "
bindsym $mod+Shift+8 move container to workspace " 8 "
bindsym $mod+Shift+9 move container to workspace " 9 "
# -
bindsym $alt+t workspace "  "
bindsym $alt+w workspace " 󰖟 "
bindsym $alt+m workspace "  "
bindsym $alt+Shift+t move container to workspace "  "
bindsym $alt+Shift+w move container to workspace " 󰖟 "
bindsym $alt+Shift+m move container to workspace "  "
#-
bindsym $mod+comma workspace next_on_output
bindsym $mod+period workspace prev_on_output
# -
bindsym $mod+Shift+t layout tabbed
bindsym $mod+f fullscreen
bindsym $mod+Shift+f floating toggle
# Layout
client.focused #00000000 #2e9ef4 #00000000
default_border pixel 1
gaps inner 10
bar {
position top
font pango:JetBrainsMono Bold 9
status_command ~/.config/scripts/sway/swaystatus
colors {
background #00000000
statusline #ffffff
focused_workspace #2e9ef450 #2e9ef420 #2e9ef4
inactive_workspace #00000000 #00000000 #ffffff
gaps 10 10
}
}
# Autostart
exec_always dunst
exec_always dbus-update-activation-environment WAYLAND_DISPLAY
exec_always --no-startup-id /usr/libexec/xdg-desktop-portal -r
exec_always swww init
exec_always swww img ~/Pictures/Backgrounds/default.gif