From: Maximilian Friedersdorff Date: Tue, 4 Jun 2019 09:49:58 +0000 (+0100) Subject: Sway configuration for other hosts X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=1f948754049cd185fad329d16ab26050a7070d49;p=max%2Fsaltfiles.git Sway configuration for other hosts --- diff --git a/states/sway/files/config.jinja b/states/sway/files/config.jinja index 786fb69..c5b6eb1 100644 --- a/states/sway/files/config.jinja +++ b/states/sway/files/config.jinja @@ -188,60 +188,6 @@ exec swayidle \ resume 'swaymsg "output * dpms on" \ before-sleep "lock.{{ host }}" -# Magnesium specific section -{% if host == 'magnesium' %} -bar { - id bar_left - status_command conky-i3bar - position top - output "HDMI-A-3" - 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 - } -} - -bar { - id bar_right - position top - output "HDMI-A-2" - 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 - } -} - - -workspace 1 output HDMI-A-3 -workspace 2 output HDMI-A-2 - -output HDMI-A-2 { - position 0 1080 - background ~/Pictures/background_1080_1.png fit -} - -output HDMI-A-3 { - position 0 0 - background ~/Pictures/background_1080_2.png fit -} - - - -font pango:Liberation Mono 8 - -input 1241:36:HOLDCHIP_USB_Keyboard { - xkb_layout us - xkb_variant colemak - xkb_options ctrl:nocaps -} -{% endif %} +# host specific section +{%- do salt.log.error('sway/files/' + host) -%} +{% include 'sway/files/' + host %} diff --git a/states/sway/files/magnesium b/states/sway/files/magnesium new file mode 100644 index 0000000..830e9a7 --- /dev/null +++ b/states/sway/files/magnesium @@ -0,0 +1,56 @@ +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + id bar_left + status_command conky-i3bar + position top + output "HDMI-A-3" + 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 + } +} + +bar { + id bar_right + position top + output "HDMI-A-2" + 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 + } +} + + +workspace 1 output HDMI-A-3 +workspace 2 output HDMI-A-2 + +output HDMI-A-2 { + position 0 1080 + background ~/Pictures/background_1080_1.png fit +} + +output HDMI-A-3 { + position 0 0 + background ~/Pictures/background_1080_2.png fit +} + + + +font pango:Liberation Mono 8 + +input 1241:36:HOLDCHIP_USB_Keyboard { + xkb_layout us + xkb_variant colemak + xkb_options ctrl:nocaps +} diff --git a/states/sway/files/platinum b/states/sway/files/platinum new file mode 100644 index 0000000..73b8eaa --- /dev/null +++ b/states/sway/files/platinum @@ -0,0 +1,36 @@ +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + id bar_left + status_command conky-i3bar + position top + font pango:Liberation Mono 12 + 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 + } +} + +font pango:Liberation Mono 10 + +output eDP-1 { + scale 2 + position 0 0 + background ~/Pictures/background_1800.png center +} + +output HDMI-A-2 { + scale 1 + position 3200 0 + background ~/Pictures/background_1440.png fill +} + +input * { + xkb_layout gb + xkb_variant colemak + xkb_options ctrl:nocaps +} diff --git a/states/sway/files/plutonium b/states/sway/files/plutonium new file mode 100644 index 0000000..0c7a4b3 --- /dev/null +++ b/states/sway/files/plutonium @@ -0,0 +1,23 @@ +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + id bar_left + status_command conky-i3bar + position top + 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 + } +} + +font pango:Liberation Mono 8 + +set $mod Mod1 + +output DP-1 background ~/Pictures/background.png center +output DP-1 scale 2