Template sway config

This commit is contained in:
Maximilian Friedersdorff 2024-09-30 16:00:43 +01:00
parent 3c060fa7ce
commit 83edb9cd09

View file

@ -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 # 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. # Read `man 5 sway-input` for more information about this section.
# This keyboard has this layout on all machines: # This keyboard has this layout on all machines:
input 1267:12356:ELAN1200:00_04F3:3044_Touchpad {
tap enabled input 5426:133:Razer_Razer_Basilisk_V2 {
dwt enabled accel_profile flat
natural_scroll enabled pointer_accel -0.5
tap_button_map lrm
} }
input type:touchpad {
dwt enabled
tap enabled
tap_button_map lmr
natural_scroll enabled
}
input 1241:36:HOLDCHIP_USB_Keyboard { input 1241:36:HOLDCHIP_USB_Keyboard {
xkb_layout us xkb_layout us
xkb_variant colemak xkb_variant colemak
@ -117,6 +125,7 @@ input 16700:8455:DELL_Dell_USB_Entry_Keyboard {
input 65261:4871:TMK/Cub_Ergodox { input 65261:4871:TMK/Cub_Ergodox {
xkb_layout gb xkb_layout gb
xkb_options compose:prsc
} }
input 9494:21:CM_Storm_Quickfire_Pro_Ultimate_6_key { 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/* include /etc/sway/config.d/*
# host specific section# Start i3bar to display a workspace bar (plus the system information i3status # host specific section
# finds out, if available)
{{- if eq .chezmoi.hostname "baryte" }}
bar { bar {
id bar_left id bar_right
status_command conky-i3bar status_command ~/.local/bin/conky-i3bar ~/.conkyrc-net
position top position top
font pango:Liberation Mono 12 output "Acer Technologies VG270U P 0x05217924"
font pango:Liberation Mono 11
colors { colors {
background $black_super background $black_super
focused_background $black focused_background $black
@ -329,30 +340,73 @@ bar {
active_workspace $black_super $blue_super $black active_workspace $black_super $blue_super $black
inactive_workspace $black_super $black_super $white_super inactive_workspace $black_super $black_super $white_super
urgent_workspace $black $red_super $white 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 { output eDP-1 {
scale 2 background ~/Pictures/Backgrounds/DSC02113.jpg fill
position 0 0 position 231 1080
background ~/Pictures/background_1800.png center scale 2
} }
output HDMI-A-2 { output "Acer Technologies VG270U P 0x05217924" {
scale 1 background ~/Pictures/Backgrounds/DSC02111.jpg fill
position 3200 0 position 1670 810
background ~/Pictures/background_1440.png fill scale 1
} }
# Disable tap-to-click on touchpad to prevent jerkyness output "LG Electronics LG FULL HD Unknown" {
input type:touch tap disable background ~/Pictures/Backgrounds/DSC02111.jpg fill
position 0 0
scale 1
}
for_window [app_id="zoom" title="^zoom$"] border none, floating enable workspace 1 output eDP-1
for_window [app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable workspace 3 output eDP-1
for_window [app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700 workspace 2 output "Acer Technologies VG270U P 0x05217924"
for_window [app_id="zoom" title="Zoom Meeting(.*)?"] floating disable, inhibit_idle open 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 }}