summaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorAndrew Pirie <andrew@apirie.uk>2024-08-28 23:52:29 +0100
committerAndrew Pirie <andrew@apirie.uk>2024-08-28 23:52:29 +0100
commitf585e70f8cd049ea0605a85e04bce29bcdd050c4 (patch)
treedd005618f75a5fd94630d2d838643be147ec941f /sway
downloaddotfiles-f585e70f8cd049ea0605a85e04bce29bcdd050c4.tar.gz
dotfiles-f585e70f8cd049ea0605a85e04bce29bcdd050c4.zip
initial commit
Diffstat (limited to 'sway')
-rw-r--r--sway/.config/sway/aeon0
-rw-r--r--sway/.config/sway/config208
-rw-r--r--sway/.config/sway/drummer0
-rw-r--r--sway/.config/sway/redwood26
-rw-r--r--sway/.config/sway/warbler0
5 files changed, 234 insertions, 0 deletions
diff --git a/sway/.config/sway/aeon b/sway/.config/sway/aeon
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sway/.config/sway/aeon
diff --git a/sway/.config/sway/config b/sway/.config/sway/config
new file mode 100644
index 0000000..d32a53f
--- /dev/null
+++ b/sway/.config/sway/config
@@ -0,0 +1,208 @@
+# Sway configuration
+
+font pango:Iosevka Term 10
+set $deskm_primary 1390:268:ELECOM_TrackBall_Mouse_HUGE_TrackBall
+set $deskm_secondary 1133:49284:Logitech_G203_Prodigy_Gaming_Mouse
+set $wacom 1386:890:Wacom_One_by_Wacom_S_Pen
+set $uclogic 10429:148:XP-PEN_STAR_G640_Pen
+set $mod Mod4
+set $term footclient
+set $menu wmenu-run -f "Iosevka Term 11" -N 1C1B19FF -n 918175FF -S 3A3A3AFF -s FCE8C3FF
+set $brightness-step 5
+set $bg ~/pic/wall/`hostname`.jpg
+set $gnome-schema org.gnome.desktop.interface
+## Srcery colour scheme
+set $black #1C1B19
+set $bright_black #918175
+set $red #EF2F27
+set $bright_red #F75341
+set $green #519F50
+set $bright_green #98BC37
+set $yellow #FBB829
+set $bright_yellow #FED06E
+set $blue #2C78BF
+set $bright_blue #68A8E4
+set $magenta #E02C6D
+set $bright_magenta #FF5C8F
+set $cyan #0AAEB3
+set $bright_cyan #53FDE9
+set $white #D0BFA1
+set $bright_white #FCE8C3
+set $orange #D75F00
+set $bright_orange #FF8700
+set $xgray1 #262626
+set $xgray2 #303030
+set $xgray3 #3A3A3A
+set $xgray4 #444444
+set $xgray5 #4E4E4E
+set $hard_black #121212
+
+# Set background
+
+output * bg $bg fill
+
+# Inputs
+
+input "type:keyboard" {
+ xkb_layout workman
+}
+input "type:pointer" {
+ accel_profile flat
+ pointer_accel 0
+}
+input "type:touchpad" {
+ dwt enabled
+ tap enabled
+ tap_button_map lrm
+ scroll_method two_finger
+ accel_profile flat
+ pointer_accel 0
+ natural_scroll enabled
+}
+input $deskm_primary {
+ scroll_factor 1.0
+}
+input $deskm_secondary {
+ scroll_factor 1.0
+}
+
+# Modes
+
+mode "resize" {
+ bindsym Up resize shrink height 10px
+ bindsym Down resize grow height 10px
+ bindsym Left resize shrink width 10px
+ bindsym Right resize grow width 10px
+ bindsym Escape mode "default"
+}
+
+# Keybinds
+
+floating_modifier $mod normal
+bindsym $mod+Shift+q kill
+bindsym $mod+Shift+r reload
+bindsym $mod+Return exec $term
+bindsym $mod+d exec $menu
+bindsym $mod+x exec swaylock -i '~/pic/wall/lock.jpg' -e
+bindsym $mod+z exec grim -g "$(slurp)" - | wl-copy
+bindsym $mod+shift+z exec grim -g "$(slurp)" - | curl -F'file=@-' https://0x0.st | wl-copy && notify-send "screenshot uploaded & url copied to clipboard"
+bindsym $mod+ctrl+shift+z exec grim -t png ~/pic/screenshot/`date +%Y-%m-%d_%H-%m-%s`.png
+bindsym $mod+c exec bash ~/.local/bin/mpv-clip
+bindsym $mod+Shift+p exec swaynag -t warning -m 'Exit sway?' -b 'Yes' 'swaymsg exit'
+## Container focus
+bindsym $mod+y focus left
+bindsym $mod+n focus down
+bindsym $mod+e focus up
+bindsym $mod+o focus right
+bindsym $mod+f fullscreen
+bindsym $mod+Shift+space floating toggle
+bindsym $mod+Shift+s sticky toggle
+## Moving containers
+bindsym $mod+Shift+y move left
+bindsym $mod+Shift+n move down
+bindsym $mod+Shift+e move up
+bindsym $mod+Shift+o move right
+## Moving workspace focus
+bindsym $mod+1 workspace number 1
+bindsym $mod+2 workspace number 2
+bindsym $mod+3 workspace number 3
+bindsym $mod+4 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 number 8
+bindsym $mod+9 workspace number 9
+bindsym $mod+0 workspace number 10
+bindsym $mod+space focus mode_toggle
+## Moving containers to workspaces
+bindsym $mod+Shift+1 move container to workspace number 1
+bindsym $mod+Shift+2 move container to workspace number 2
+bindsym $mod+Shift+3 move container to workspace number 3
+bindsym $mod+Shift+4 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 number 8
+bindsym $mod+Shift+9 move container to workspace number 9
+bindsym $mod+Shift+0 move container to workspace number 10
+## Split direction
+bindsym $mod+b splith
+bindsym $mod+v splitv
+## Container layout
+bindsym $mod+s layout stacking
+bindsym $mod+w layout tabbed
+bindsym $mod+i layout toggle split
+## Scratchpad
+bindsym $mod+Shift+minus move scratchpad
+bindsym $mod+minus scratchpad show
+## Modes
+bindsym $mod+r mode "resize"
+## Media keys
+bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+
+bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-
+bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
+bindsym XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
+bindsym XF86MonBrightnessDown exec light -U $brightness-step
+bindsym XF86MonBrightnessUp exec light -A $brightness-step
+bindsym XF86AudioPlay exec playerctl play-pause
+bindsym XF86AudioNext exec playerctl next
+bindsym XF86AudioPrev exec playerctl previous
+
+# Colours
+
+## class border background text indicator child border
+client.focused $bright_black $xgray3 $yellow $yellow $bright_black
+client.focused_inactive $xgray3 $xgray3 $bright_black $xgray3 $xgray3
+client.unfocused $xgray1 $xgray1 $bright_black $xgray1 $xgray1
+client.urgent $red $xgray1 $red $red $red
+client.placeholder $xgray3 $hard_black $bright_black $xgray3 $xgray3
+
+# Borders
+
+default_border pixel 2
+gaps inner 2
+gaps outer -2
+smart_gaps on
+smart_borders on
+
+# Workspace assignments
+
+assign [app_id="firefox-esr"] workspace 1
+assign [app_id="foot-irc"] workspace 3
+assign [app_id="foot-xmpp"] workspace 3
+assign [class="Microsoft Teams"] workspace 5
+assign [app_id="org.keepassxc.KeePassXC"] workspace 6
+assign [app_id="org.remmina.Remmina"] workspace 9
+assign [class="Steam"] workspace 9
+assign [class="Vncviewer"] workspace 9
+assign [app_id="remote-viewer"] workspace 9
+assign [app_id="osu!"] workspace 10
+assign [title="Minecraft*"] workspace 10
+assign [app_id="mpv"] workspace 10
+
+# Per-application stuff
+
+for_window [app_id="osu!"] max_render_time 2
+for_window [title="Minecraft*"] max_render_time 2
+for_window [app_id="python3"] floating enable
+for_window [title="About Mozilla Firefox"] floating enable
+for_window [class="Steam"] floating enable
+for_window [title="Firefox — Sharing Indicator"] floating enable, sticky enable, no_focus
+for_window [title="Picture-in-Picture"] floating enable, sticky enable, no_focus
+for_window [title="Unlock keyring"] floating enable
+## fuck off microsoft get your shit together
+for_window [title="Microsoft Teams Notification"] kill
+
+# Theming
+
+exec_always {
+ gsettings set $gnome-schema gtk-theme 'oomox-srcery'
+ gsettings set $gnome-schema icon-theme 'oomox-srcery'
+ gsettings set $gnome-schema cursor-theme 'Adwaita'
+ gsettings set $gnome-schema cursor-size 24
+ gsettings set $gnome-schema color-scheme 'prefer-dark'
+ gsettings set org.gtk.Settings.FileChooser startup-mode cwd
+}
+seat seat0 xcursor_theme Adwaita 24
+
+include ~/.config/sway/`hostname`
diff --git a/sway/.config/sway/drummer b/sway/.config/sway/drummer
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sway/.config/sway/drummer
diff --git a/sway/.config/sway/redwood b/sway/.config/sway/redwood
new file mode 100644
index 0000000..73f748c
--- /dev/null
+++ b/sway/.config/sway/redwood
@@ -0,0 +1,26 @@
+# Sway configuration for "redwood" (Framework Laptop 13)
+
+# https://github.com/swaywm/sway/issues/4174
+output eDP-1 scale 1.2638655
+gaps right 1
+
+bindgesture swipe:right workspace prev
+bindgesture swipe:left workspace next
+bindgesture pinch:inward+up move up
+bindgesture pinch:inward+down move down
+bindgesture pinch:inward+left move left
+bindgesture pinch:inward+right move right
+
+exec {
+ yambar
+ foot --server
+ mako
+ gentoo-pipewire-launcher
+ mpd
+ himitsud
+ hissh-agent
+ gpgconf --launch gpg-agent
+ dbus-update-activation-environment --all
+ foot -a foot-irc senpai
+ foot -a foot-xmpp profanity
+}
diff --git a/sway/.config/sway/warbler b/sway/.config/sway/warbler
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sway/.config/sway/warbler