task | clean up vars
This commit is contained in:
parent
e97f4e4073
commit
fabfd31bdf
1 changed files with 6 additions and 3 deletions
|
|
@ -5,9 +5,12 @@
|
||||||
outputs,
|
outputs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
} @args: {
|
} @args: let
|
||||||
|
_osConfig = if args ? osConfig then args.osConfig else args.config;
|
||||||
|
swayScale = if _osConfig.variables ? swayScale then _osConfig.variables.swayScale else 1;
|
||||||
|
in {
|
||||||
xdg.configFile."sway/config".text = ''
|
xdg.configFile."sway/config".text = ''
|
||||||
# For ${(if args ? osConfig then args.osConfig else args.config).networking.hostName}
|
# For ${_osConfig.networking.hostName}
|
||||||
set $mod Mod1
|
set $mod Mod1
|
||||||
set $terminal_path /home/don/bin/mynewterm
|
set $terminal_path /home/don/bin/mynewterm
|
||||||
set $snd_sink alsa_output.usb-Corsair_CORSAIR_VOID_ELITE_Wireless_Gaming_Dongle-00.iec958-stereo
|
set $snd_sink alsa_output.usb-Corsair_CORSAIR_VOID_ELITE_Wireless_Gaming_Dongle-00.iec958-stereo
|
||||||
|
|
@ -29,7 +32,7 @@
|
||||||
workspace_auto_back_and_forth yes
|
workspace_auto_back_and_forth yes
|
||||||
|
|
||||||
set $laptop eDP-1
|
set $laptop eDP-1
|
||||||
output $laptop scale ${(if args ? osConfig then args.osConfig else args.config).variables.swayScale}
|
output $laptop scale ${toString swayScale}
|
||||||
output * bg /home/don/nixos/hosts/fan-table-device-box-wallpaper.jpg fill
|
output * bg /home/don/nixos/hosts/fan-table-device-box-wallpaper.jpg fill
|
||||||
bindswitch --reload --locked lid:on output $laptop disable
|
bindswitch --reload --locked lid:on output $laptop disable
|
||||||
bindswitch --reload --locked lid:off output $laptop enable
|
bindswitch --reload --locked lid:off output $laptop enable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue