dotfiles/sway/config
2024-07-15 18:29:24 -06:00

138 lines
3.8 KiB
Text

# Preferences
output * {
bg ~/Pictures/Backgrounds/default.jpg fill
}
output HDMI-A-1 pos 0 0
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 270
repeat_rate 70
}
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 $col_fg #fabd2f
set $col_bg #121212
set $col_ac #606060
# 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+i exec menu-input
bindsym $mod+o exec menu-output
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 -d)" - | wl-copy
# -
bindsym $mod+Shift+q reload
bindsym $mod+p exec menu-power
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+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+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
# -
bindsym $mod+Shift+c exec clipman pick -t bemenu -T'--no-exec -i -c -l 10 -W 0.4 -B 2 --cw 1 --tb #fabd2f --tf #1d2021 --fb #1d2021 --ff #606060 --cb #1d2021 --cf #ebdbb2 --nb #1d2021 --nf #606060 --hb #fabd2f --hf #1d2021 --ab #1d2021 --af #606060 --bdr #fabd2f --fn JetbrainsMono -p Clip:'
# Layout
client.focused $col_fg $col_fg $col_bg $col_fg $col_fg
client.unfocused $col_bg $col_bg $col_ac $col_bg $col_bg
default_border pixel 2
titlebar_border_thickness 2
titlebar_padding 2
gaps inner 5
font pango:JetBrainsMono Medium 8
bar {
position bottom
font pango:JetBrainsMono Bold 9
status_command ~/.config/scripts/sway/swaystatus
tray_padding 4
colors {
background #000000
statusline #1d2021
focused_workspace $col_fg $col_fg $col_bg
inactive_workspace #000000 #000000 #1d2021
}
}
for_window [class="Display-im6.q16"] floating enable
# Autostart
exec wl-paste -t text --watch clipman store
exec wl-paste -p -t text --watch clipman store --histpath="~/.local/share/clipman.json"
exec emacs --daemon
exec_always dbus-update-activation-environment WAYLAND_DISPLAY
exec_always --no-startup-id /usr/libexec/xdg-desktop-portal -r