262 lines
8.8 KiB
Plaintext
262 lines
8.8 KiB
Plaintext
#include ~/.cache/themer.lua/sway-colors
|
|
set $background #000000
|
|
set $backgroundish #333333
|
|
set $muted #6e6a86
|
|
set $foreground #dddddd
|
|
set $accent #eb6f92
|
|
set $accentish #ebbcba
|
|
|
|
### Variables
|
|
#
|
|
set $mod Mod4
|
|
set $left h
|
|
set $down j
|
|
set $up k
|
|
set $right l
|
|
# Your preferred terminal emulator
|
|
set $term kitty --single-instance
|
|
# 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 ~/.local/bin/fuzzel-run
|
|
|
|
font Inter Medium 11
|
|
|
|
### Output configuration
|
|
output * background "/home/diablo/Pictures/Sync Pictures/Wosito Wallpapers/contando ovejas 1.jpg" fill
|
|
|
|
### Idle configuration
|
|
#
|
|
# Example configuration:
|
|
#
|
|
exec swayidle -w \
|
|
timeout 420 '~/.local/bin/lock' \
|
|
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
|
before-sleep '~/.local/bin/lock'
|
|
bindsym $mod+p exec ~/.local/bin/lock
|
|
bindsym $mod+Shift+p exec "~/.local/bin/lock && doas su -c 'echo mem > /sys/power/state'"
|
|
|
|
### Input configuration
|
|
#
|
|
input * {
|
|
repeat_delay 290
|
|
repeat_rate 30
|
|
natural_scroll on
|
|
xkb_layout us
|
|
xkb_variant altgr-intl
|
|
xkb_options caps:escape
|
|
|
|
click_method clickfinger
|
|
}
|
|
|
|
### Key bindings
|
|
#
|
|
# Basics:
|
|
#
|
|
# Start a terminal
|
|
bindsym $mod+Return exec $term
|
|
bindsym $mod+Mod1+Return exec footclient ssh nulo@sutty.vm
|
|
|
|
# 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
|
|
bindsym Mod1+Left focus left
|
|
bindsym Mod1+Down focus down
|
|
bindsym Mod1+Up focus up
|
|
bindsym Mod1+Right focus right
|
|
|
|
# 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
|
|
bindsym Mod1+Shift+Left move left
|
|
bindsym Mod1+Shift+Down move down
|
|
bindsym Mod1+Shift+Up move up
|
|
bindsym Mod1+Shift+Right move 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
|
|
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 Mod1+Control+Left move workspace to output left
|
|
bindsym Mod1+Control+Down move workspace to output down
|
|
bindsym Mod1+Control+Up move workspace to output up
|
|
bindsym Mod1+Control+Right move workspace to output right
|
|
#
|
|
# Workspaces:
|
|
#
|
|
# Switch to workspace
|
|
bindsym $mod+m workspace number 1
|
|
bindsym $mod+comma workspace number 2
|
|
bindsym $mod+period workspace number 3
|
|
bindsym $mod+apostrophe workspace number 4
|
|
bindsym $mod+5 workspace number 5
|
|
bindsym $mod+6 workspace number 6
|
|
bindsym $mod+7 workspace number 7
|
|
# bindsym $mod+8 workspace "8: comms"
|
|
# bindsym $mod+9 workspace "9: media"
|
|
# bindsym $mod+0 workspace number 10
|
|
# Move focused container to workspace
|
|
bindsym $mod+Shift+m move container to workspace number 1
|
|
bindsym $mod+Shift+comma move container to workspace number 2
|
|
bindsym $mod+Shift+period move container to workspace number 3
|
|
bindsym $mod+Shift+apostrophe move container to workspace number 4
|
|
bindsym $mod+Shift+5 move container to workspace number 5
|
|
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 "8: comms"
|
|
# bindsym $mod+Shift+9 move container to workspace "9: media"
|
|
# bindsym $mod+Shift+0 move container to workspace number 10
|
|
|
|
bindsym Mod4+Prior exec sway-switch_workspace prev
|
|
bindsym Mod4+Next exec sway-switch_workspace next
|
|
bindsym Mod4+Mod1+Prior exec sway-switch_workspace prev move
|
|
bindsym Mod4+Mod1+Next exec sway-switch_workspace next move
|
|
|
|
bindsym $mod+space exec sway-switch_window
|
|
|
|
# Layout stuff:
|
|
bindsym $mod+a focus parent
|
|
bindsym $mod+Shift+a focus child
|
|
|
|
bindsym $mod+s sticky toggle
|
|
|
|
bindsym $mod+t layout toggle tabbed splith splitv
|
|
bindsym $mod+v split v
|
|
|
|
bindsym $mod+f fullscreen
|
|
|
|
bindsym $mod+Shift+f floating toggle
|
|
|
|
#
|
|
# 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 10
|
|
bindsym $down resize grow height 10
|
|
bindsym $up resize shrink height 10
|
|
bindsym $right resize grow width 10
|
|
|
|
# Ditto, with arrow keys
|
|
bindsym Left resize shrink width 10
|
|
bindsym Down resize grow height 10
|
|
bindsym Up resize shrink height 10
|
|
bindsym Right resize grow width 10
|
|
|
|
# Return to default mode
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
bindsym $mod+r mode "resize"
|
|
|
|
client.focused #0353A4 #0353A4 #eeeeee #3799FB
|
|
client.focused_inactive $muted $muted $background
|
|
client.unfocused $backgroundish $backgroundish $foreground
|
|
# https://git.sr.ht/~troels/dotfiles/tree/master/item/.config/sway/config#L181
|
|
titlebar_border_thickness 1
|
|
titlebar_padding 15 5
|
|
title_align center
|
|
|
|
bindsym $mod+z exec swaync-client --close-latest
|
|
bindsym $mod+x exec swaync-client -t
|
|
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'
|
|
|
|
# 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 -u 150000 -A 5; brillo -O'
|
|
bindsym --locked XF86MonBrightnessDown exec 'brillo -u 150000 -U 5; brillo -O'
|
|
|
|
default_border pixel 5
|
|
|
|
focus_follows_mouse no
|
|
|
|
for_window [title="."] inhibit_idle fullscreen
|
|
|
|
for_window [title="Firefox — Sharing Indicator"] floating enable
|
|
for_window [app_id="fzf"] floating enable
|
|
|
|
assign [title="https:\/\/discord.com - "] "4"
|
|
assign [title="https:\/\/web.whatsapp.com - "] "4"
|
|
assign [title="https:\/\/[a-z]+.zulipchat.com - "] "4"
|
|
assign [app_id="neomutt"] "4"
|
|
assign [app_id="telegram-desktop"] "4"
|
|
|
|
for_window [title="https:\/\/discord.com - "] layout tabbed
|
|
for_window [title="https:\/\/web.whatsapp.com - "] layout tabbed
|
|
for_window [title="https:\/\/[a-z]+.zulipchat.com - "] layout tabbed
|
|
for_window [app_id="neomutt"] layout tabbed
|
|
for_window [app_id="telegram-desktop"] layout tabbed
|
|
|
|
exec "pgrep -U $(id -u) runsv >/dev/null || runsvdir ~/.local/share/service ............."
|
|
exec brillo -I
|
|
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
|
exec /usr/libexec/pipewire-launcher
|
|
exec "foot --server"
|
|
exec "wlsunset -l -34.61315 -L -58.37723"
|
|
exec swaync
|
|
exec kanshi
|
|
exec waybar
|
|
exec "nm-applet --indicator"
|
|
exec "~/.local/bin/watch-dconf"
|