puntos/.config/sway/config

262 lines
8.8 KiB
Plaintext
Raw Permalink Normal View History

2023-01-28 03:10:42 +00:00
#include ~/.cache/themer.lua/sway-colors
set $background #000000
2023-02-07 18:53:31 +00:00
set $backgroundish #333333
2023-01-28 03:10:42 +00:00
set $muted #6e6a86
set $foreground #dddddd
set $accent #eb6f92
set $accentish #ebbcba
2022-04-10 19:45:51 +00:00
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
2023-01-28 03:09:19 +00:00
set $term kitty --single-instance
2022-02-19 15:19:21 +00:00
# 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.
2023-02-10 15:01:48 +00:00
set $menu ~/.local/bin/fuzzel-run
2022-02-19 15:19:21 +00:00
2023-01-28 03:09:26 +00:00
font Inter Medium 11
2022-02-19 15:19:21 +00:00
### Output configuration
2023-01-15 23:43:40 +00:00
output * background "/home/diablo/Pictures/Sync Pictures/Wosito Wallpapers/contando ovejas 1.jpg" fill
2022-02-19 15:19:21 +00:00
### Idle configuration
#
# Example configuration:
#
exec swayidle -w \
2023-02-11 15:57:34 +00:00
timeout 420 '~/.local/bin/lock' \
2022-02-19 15:19:21 +00:00
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
2023-02-11 15:57:34 +00:00
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'"
2022-02-19 15:19:21 +00:00
### Input configuration
#
input * {
repeat_delay 290
repeat_rate 30
2022-11-09 21:29:58 +00:00
natural_scroll on
2023-02-11 15:57:53 +00:00
xkb_layout us
2023-01-11 02:28:25 +00:00
xkb_variant altgr-intl
2023-01-12 01:02:11 +00:00
xkb_options caps:escape
2023-01-28 03:09:33 +00:00
click_method clickfinger
2022-02-19 15:19:21 +00:00
}
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Return exec $term
bindsym $mod+Mod1+Return exec footclient ssh nulo@sutty.vm
2022-02-19 15:19:21 +00:00
# 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
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
bindsym Mod1+Shift+Left move left
bindsym Mod1+Shift+Down move down
bindsym Mod1+Shift+Up move up
bindsym Mod1+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
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
2022-02-19 15:19:21 +00:00
#
# Workspaces:
#
# Switch to workspace
2022-09-14 23:22:49 +00:00
bindsym $mod+m workspace number 1
bindsym $mod+comma workspace number 2
bindsym $mod+period workspace number 3
2022-09-26 00:52:08 +00:00
bindsym $mod+apostrophe workspace number 4
2023-01-11 02:28:35 +00:00
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
2022-09-14 23:22:49 +00:00
# bindsym $mod+8 workspace "8: comms"
# bindsym $mod+9 workspace "9: media"
# bindsym $mod+0 workspace number 10
2022-02-19 15:19:21 +00:00
# Move focused container to workspace
2022-09-14 23:22:49 +00:00
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
2022-09-26 00:52:08 +00:00
bindsym $mod+Shift+apostrophe move container to workspace number 4
2023-01-11 02:28:35 +00:00
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
2022-09-14 23:22:49 +00:00
# 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
2022-11-09 21:29:10 +00:00
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
2022-09-26 00:53:04 +00:00
2022-11-09 21:45:49 +00:00
bindsym $mod+space exec sway-switch_window
2022-02-19 15:19:21 +00:00
# Layout stuff:
2022-09-26 00:53:04 +00:00
bindsym $mod+a focus parent
bindsym $mod+Shift+a focus child
2022-02-19 15:19:21 +00:00
bindsym $mod+s sticky toggle
2022-10-16 20:47:14 +00:00
bindsym $mod+t layout toggle tabbed splith splitv
bindsym $mod+v split v
2022-09-26 00:53:04 +00:00
2022-03-05 23:12:41 +00:00
bindsym $mod+f fullscreen
2022-02-19 15:19:21 +00:00
2022-10-16 20:47:14 +00:00
bindsym $mod+Shift+f floating toggle
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
2022-06-01 18:06:37 +00:00
bindsym $left resize shrink width 10
bindsym $down resize grow height 10
bindsym $up resize shrink height 10
bindsym $right resize grow width 10
2022-02-19 15:19:21 +00:00
# Ditto, with arrow keys
2022-06-01 18:06:37 +00:00
bindsym Left resize shrink width 10
bindsym Down resize grow height 10
bindsym Up resize shrink height 10
bindsym Right resize grow width 10
2022-02-19 15:19:21 +00:00
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
2023-02-07 18:53:31 +00:00
client.focused #0353A4 #0353A4 #eeeeee #3799FB
client.focused_inactive $muted $muted $background
client.unfocused $backgroundish $backgroundish $foreground
2023-02-16 17:45:46 +00:00
# https://git.sr.ht/~troels/dotfiles/tree/master/item/.config/sway/config#L181
2022-04-07 01:46:55 +00:00
titlebar_border_thickness 1
2023-02-16 17:45:46 +00:00
titlebar_padding 15 5
title_align center
2022-02-19 15:19:21 +00:00
bindsym $mod+z exec swaync-client --close-latest
2022-07-09 21:35:31 +00:00
bindsym $mod+x exec swaync-client -t
2022-02-19 15:19:21 +00:00
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'
2022-10-15 15:42:42 +00:00
bindsym --locked XF86MonBrightnessUp exec 'brillo -u 150000 -A 5; brillo -O'
bindsym --locked XF86MonBrightnessDown exec 'brillo -u 150000 -U 5; brillo -O'
2022-02-19 15:19:21 +00:00
2023-02-07 18:53:31 +00:00
default_border pixel 5
2022-02-19 15:19:21 +00:00
focus_follows_mouse no
for_window [title="."] inhibit_idle fullscreen
2022-05-31 22:00:40 +00:00
for_window [title="Firefox — Sharing Indicator"] floating enable
2022-02-19 15:19:21 +00:00
for_window [app_id="fzf"] floating enable
2022-10-15 15:11:42 +00:00
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
2023-02-10 15:01:48 +00:00
exec "pgrep -U $(id -u) runsv >/dev/null || runsvdir ~/.local/share/service ............."
2022-02-19 15:19:21 +00:00
exec brillo -I
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec /usr/libexec/pipewire-launcher
2022-02-19 15:19:21 +00:00
exec "foot --server"
2022-04-29 01:41:41 +00:00
exec "wlsunset -l -34.61315 -L -58.37723"
2022-07-09 21:35:31 +00:00
exec swaync
exec kanshi
2023-02-16 18:05:14 +00:00
exec waybar
exec "nm-applet --indicator"
2023-02-16 18:13:29 +00:00
exec "~/.local/bin/watch-dconf"