From 83edb9cd097107958b105e44ea70e0ca9d9950f5 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Mon, 30 Sep 2024 16:00:43 +0100 Subject: [PATCH] Template sway config --- dot_config/sway/{config => config.tmpl} | 104 ++++++++++++++++++------ 1 file changed, 79 insertions(+), 25 deletions(-) rename dot_config/sway/{config => config.tmpl} (80%) diff --git a/dot_config/sway/config b/dot_config/sway/config.tmpl similarity index 80% rename from dot_config/sway/config rename to dot_config/sway/config.tmpl index 72ee19c..ae2b168 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config.tmpl @@ -96,13 +96,21 @@ timeout 300 "swaylock -e -f -i ~/Pictures/Backgrounds/DSC02113.jpg" \ # You can get the names of your inputs by running: swaymsg -t get_inputs # Read `man 5 sway-input` for more information about this section. # This keyboard has this layout on all machines: -input 1267:12356:ELAN1200:00_04F3:3044_Touchpad { - tap enabled - dwt enabled - natural_scroll enabled - tap_button_map lrm + +input 5426:133:Razer_Razer_Basilisk_V2 { + accel_profile flat + pointer_accel -0.5 } + +input type:touchpad { + dwt enabled + tap enabled + tap_button_map lmr + natural_scroll enabled +} + + input 1241:36:HOLDCHIP_USB_Keyboard { xkb_layout us xkb_variant colemak @@ -117,6 +125,7 @@ input 16700:8455:DELL_Dell_USB_Entry_Keyboard { input 65261:4871:TMK/Cub_Ergodox { xkb_layout gb + xkb_options compose:prsc } input 9494:21:CM_Storm_Quickfire_Pro_Ultimate_6_key { @@ -315,13 +324,15 @@ bindsym $mod+Alt+l exec 'swaylock -e -f -i ~/Pictures/Backgrounds/DSC02113.jpg' include /etc/sway/config.d/* -# host specific section# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) +# host specific section + +{{- if eq .chezmoi.hostname "baryte" }} bar { - id bar_left - status_command conky-i3bar + id bar_right + status_command ~/.local/bin/conky-i3bar ~/.conkyrc-net position top - font pango:Liberation Mono 12 + output "Acer Technologies VG270U P 0x05217924" + font pango:Liberation Mono 11 colors { background $black_super focused_background $black @@ -329,30 +340,73 @@ bar { active_workspace $black_super $blue_super $black inactive_workspace $black_super $black_super $white_super urgent_workspace $black $red_super $white + separator $white } } -font pango:Liberation Mono 10 +bar { + id bar_right_alt + status_command ~/.local/bin/conky-i3bar ~/.conkyrc-net + position top + output HDMI-A-1 + font pango:Liberation Mono 11 + colors { + background $black_super + focused_background $black + focused_workspace $black_super $yellow_super $black + active_workspace $black_super $blue_super $black + inactive_workspace $black_super $black_super $white_super + urgent_workspace $black $red_super $white + separator $white + } +} + +bar { + id bar_internal + status_command ~/.local/bin/conky-i3bar ~/.conkyrc-main + position top + output "eDP-1" + font pango:Liberation Mono 10 + colors { + background $black_super + focused_background $black + focused_workspace $black_super $yellow_super $black + active_workspace $black_super $blue_super $black + inactive_workspace $black_super $black_super $white_super + urgent_workspace $black $red_super $white + separator $white + } +} output eDP-1 { - scale 2 - position 0 0 - background ~/Pictures/background_1800.png center + background ~/Pictures/Backgrounds/DSC02113.jpg fill + position 231 1080 + scale 2 } -output HDMI-A-2 { - scale 1 - position 3200 0 - background ~/Pictures/background_1440.png fill +output "Acer Technologies VG270U P 0x05217924" { + background ~/Pictures/Backgrounds/DSC02111.jpg fill + position 1670 810 + scale 1 } -# Disable tap-to-click on touchpad to prevent jerkyness -input type:touch tap disable +output "LG Electronics LG FULL HD Unknown" { + background ~/Pictures/Backgrounds/DSC02111.jpg fill + position 0 0 + scale 1 +} -for_window [app_id="zoom" title="^zoom$"] border none, floating enable -for_window [app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable -for_window [app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700 -for_window [app_id="zoom" title="Zoom Meeting(.*)?"] floating disable, inhibit_idle open +workspace 1 output eDP-1 +workspace 3 output eDP-1 +workspace 2 output "Acer Technologies VG270U P 0x05217924" +workspace 4 output "Acer Technologies VG270U P 0x05217924" -for_window [app_id="waydroid.com*"] floating enable, border pixel +exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway +exec mako& +exec zoom& +for_window [class="zoom"] floating enable +for_window [class="zoom" title="Zoom Workplace - Licensed account"] floating disable + +for_window [app_id="firefox" title="Extension:*"] floating enable +{{- end }}