puntos/.config/sway/config

254 lines
7.8 KiB
Plaintext
Raw Normal View History

2022-04-10 19:45:51 +00:00
include ~/.cache/themer.lua/sway-colors
2022-02-19 15:19:21 +00:00
### Variables
#
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term footclient
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu fuzzel-run
2022-04-05 16:44:42 +00:00
font Inter SemiBold 10
2022-02-19 15:19:21 +00:00
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
2022-04-21 16:27:31 +00:00
output * background $background solid_color
2022-02-19 15:19:21 +00:00
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
exec swayidle -w \
2022-04-10 18:23:08 +00:00
timeout 300 'lock' \
2022-02-19 15:19:21 +00:00
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
2022-04-10 18:23:08 +00:00
before-sleep 'lock'
bindsym $mod+m exec lock
bindsym $mod+Shift+m exec "lock && doas su -c 'echo mem > /sys/power/state'"
2022-02-19 15:19:21 +00:00
### Input configuration
#
input * {
repeat_delay 290
repeat_rate 30
}
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
# 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+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
#
# Moving around:
#
# Move your focus around
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
2022-02-19 15:19:21 +00:00
# Move the focused window with the same, but add Shift
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
2022-03-05 23:12:13 +00:00
bindsym $mod+Control+$left move workspace to output left
bindsym $mod+Control+$down move workspace to output down
bindsym $mod+Control+$up move workspace to output up
bindsym $mod+Control+$right move workspace to output right
bindsym $mod+Control+Left move workspace to output left
bindsym $mod+Control+Down move workspace to output down
bindsym $mod+Control+Up move workspace to output up
bindsym $mod+Control+Right move workspace to output right
2022-02-19 15:19:21 +00:00
#
# Workspaces:
#
# Switch to workspace
bindsym $mod+u workspace 1:u
bindsym $mod+i workspace 2:i
bindsym $mod+o workspace 3:o
bindsym $mod+p workspace 4:p
2022-03-06 03:21:38 +00:00
bindsym $mod+y workspace 5:y
2022-02-19 15:19:21 +00:00
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# Move focused container to workspace
bindsym $mod+Shift+u move container to workspace 1:u
bindsym $mod+Shift+i move container to workspace 2:i
bindsym $mod+Shift+o move container to workspace 3:o
bindsym $mod+Shift+p move container to workspace 4:p
2022-03-06 03:21:38 +00:00
bindsym $mod+Shift+y move container to workspace 5:y
2022-02-19 15:19:21 +00:00
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
#
# Layout stuff:
#
bindsym $mod+w layout toggle split tabbed stacking
bindsym $mod+e layout toggle split
2022-03-05 23:12:41 +00:00
bindsym $mod+v split toggle
2022-02-19 15:19:21 +00:00
bindsym $mod+s sticky toggle
# Make the current focus fullscreen
2022-03-05 23:12:41 +00:00
bindsym $mod+f fullscreen
2022-02-19 15:19:21 +00:00
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
2022-03-05 23:12:41 +00:00
bindsym $mod+a focus parent
2022-03-12 19:35:26 +00:00
bindsym $mod+Shift+a focus child
2022-02-19 15:19:21 +00:00
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#
# Status Bar:
#
bar {
position top
2022-03-26 22:15:06 +00:00
status_command ~/.config/sway/i3status-wrapper
2022-02-19 15:19:21 +00:00
status_edge_padding 6
status_padding 0
separator_symbol " "
workspace_min_width 30
strip_workspace_numbers yes
colors {
2022-04-10 19:45:51 +00:00
statusline $foreground
2022-04-21 16:27:05 +00:00
background $backgroundish
2022-04-10 19:45:51 +00:00
focused_workspace $accent $accent $background
active_workspace $accentish $accentish $background
inactive_workspace $background $background $foreground
2022-02-19 15:19:21 +00:00
}
}
client.focused $subtle $subtle $background
client.focused_inactive $muted $muted $background
client.unfocused $backgroundish $backgroundish $foreground
2022-04-07 01:46:55 +00:00
titlebar_border_thickness 1
2022-02-19 15:19:21 +00:00
bindsym $mod+z exec fnottctl dismiss
bindsym $mod+x exec fnottctl actions
bindsym Print exec 'grimshot copy area'
bindsym --locked XF86AudioRaiseVolume exec 'pamixer -i 5'
bindsym --locked XF86AudioLowerVolume exec 'pamixer -d 5'
bindsym --locked XF86AudioMute exec 'pamixer --toggle-mute'
bindsym --locked XF86AudioMicMute exec 'pamixer --default-source --toggle-mute'
2022-03-05 23:13:10 +00:00
bindsym --locked $mod+c exec 'pamixer --default-source --toggle-mute'
2022-02-19 15:19:21 +00:00
# https://github.com/altdesktop/playerctl
bindsym --locked XF86AudioMedia exec 'playerctl play-pause'
bindsym --locked XF86AudioPlay exec 'playerctl play-pause'
bindsym --locked XF86AudioPrev exec 'playerctl previous'
bindsym --locked XF86AudioNext exec 'playerctl next'
bindsym --locked XF86MonBrightnessUp exec 'brillo -A 5; brillo -O'
bindsym --locked XF86MonBrightnessDown exec 'brillo -U 5; brillo -O'
2022-05-01 02:08:42 +00:00
default_border pixel 5
2022-02-19 15:19:21 +00:00
smart_borders on
smart_gaps on
gaps inner 5
2022-02-19 15:19:21 +00:00
focus_follows_mouse no
for_window [title="."] inhibit_idle fullscreen
2022-02-19 15:19:21 +00:00
for_window [app_id="fzf"] floating enable
exec brillo -I
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec pipewire
exec /usr/libexec/xdg-desktop-portal-wlr
exec "foot --server"
2022-04-29 01:41:41 +00:00
exec "wlsunset -l -34.61315 -L -58.37723"
2022-02-19 15:19:21 +00:00
exec "pgrep -x syncthing >/dev/null || syncthing -no-browser"
2022-05-03 13:36:46 +00:00
exec_always "killall kanshi ; kanshi"
2022-02-19 15:19:21 +00:00
exec fnott