The utils experiment was a bust. Time to fall back.

This commit is contained in:
David Thurstenson 2021-07-07 19:54:16 -05:00
parent 6eea09f15f
commit 45e81fd87e
14 changed files with 22 additions and 50 deletions

View File

@ -2,9 +2,6 @@
#
# Thurstylark
# Get hostname
set $hostname "$(uname -n)"
# Directories
set $dir-conf ~/.config/sway
set $dir-localconf $dir-conf/$hostname

View File

@ -2,10 +2,4 @@
#
# Thurstylark
# Tools for setting output configuration
include $dir-utils/output/set-mode
include $dir-utils/output/set-position
include $dir-utils/output/set-scale
include $dir-utils/output/set-transform
include $dir-localconf/outputs/*.conf

View File

@ -2,10 +2,8 @@
#
# Thurstylark
include $dir-utils/output/set-bg
set $o-id "*"
set $o-bg-path $default-background
set $o-bg-fill "#000000"
$u-output-set-bg
output $o-id bg $o-bg-path fill $o-bg-fill

View File

@ -8,4 +8,4 @@ set $o-id "*"
set $o-bg-path $$(find $dir-wallpapers -type f \( -iname \*.jpg -o -iname \*.png \) -not -path $dir-wallpapers/sway/\* | shuf -n 1 )
set $o-bg-fill "#000000"
$u-output-set-bg
output $o-id bg $o-bg-path fill $o-bg-fill

View File

@ -2,8 +2,8 @@
#
# Thurstylark
# Include all common configs
#include ~/.config/sway/common/*.conf
# Get hostname
set $hostname "$(uname -n)"
# Include all configs by hostname
include ~/.config/sway/$hostname/*.conf

View File

@ -9,5 +9,7 @@ set $o-pos-y "0"
# Do the thing
$u-output-set-mode
$u-output-set-position
output $o-id {
mode $o-mode
pos $o-pos-x $o-pos-y
}

View File

@ -9,5 +9,7 @@ set $o-pos-y "0"
# Do the thing
$u-output-set-mode
$u-output-set-position
output $o-id {
mode $o-mode
pos $o-pos-x $o-pos-y
}

View File

@ -9,5 +9,7 @@ set $o-pos-y "0"
# Do the thing
$u-output-set-mode
$u-output-set-position
output $o-id {
mode $o-mode
pos $o-pos-x $o-pos-y
}

View File

@ -21,7 +21,9 @@ set $o-transform "90"
# Do the thing
# (comment or remove direcives that are unnecessary to avoid errors)
$u-output-set-mode
$u-output-set-position
$u-output-set-scale
$u-output-set-transform
output $o-id {
mode $o-mode
position $o-pos-x $o-pos-y
scale $o-scalefactor
transform $o-transform
}

View File

@ -1,5 +0,0 @@
# Sway config: Configure Output: Wallpaper
#
# Thurstylark
set $u-output-set-bg "output $$o-id bg $$o-bg-path fill $$o-bg-fill"

View File

@ -1,5 +0,0 @@
# Sway config: Configure Output: Mode
#
# Thurstylark
set $u-output-set-mode "output $$o-id mode $$o-mode"

View File

@ -1,5 +0,0 @@
# Sway config: Configure Output: Position
#
# Thurstylark
set $u-output-set-position "output $$o-id pos $$o-pos-x $$o-pos-y"

View File

@ -1,5 +0,0 @@
# Sway config: Configure Output: Scale
#
# Thurstylark
set $u-output-set-scale "output $$o-id scale $$o-scalefactor"

View File

@ -1,5 +0,0 @@
# Sway config: Configure Output: Transform
#
# Thurstylark
set $u-output-set-transform "output $$o-id transform $$o-transform"