Compare commits
3 Commits
dc9e74ca12
...
e98ebe5d8c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e98ebe5d8c | ||
|
|
8e5e63facb | ||
|
|
14c22cbbaa |
@@ -1,5 +1 @@
|
|||||||
windowrule {
|
windowrulev2 = idleinhibit fullscreen, class:^(GeForceNOW)$
|
||||||
name = geforce
|
|
||||||
class:= GeForceNOW
|
|
||||||
idle_inhibit = fullscreen
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,6 +1,2 @@
|
|||||||
windowrule {
|
windowrulev2 = fullscreen, class:^(com.moonlight_stream.Moonlight)$
|
||||||
name = moonlight
|
windowrulev2 = idleinhibit fullscreen, class:^(com.moonlight_stream.Moonlight)$
|
||||||
class:= com.moonlight_stream.Moonlight
|
|
||||||
fullscreen = 1
|
|
||||||
idle_inhibit = fullscreen
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ windowrulev2 = tag -default-opacity, tag:pip
|
|||||||
windowrulev2 = float, tag:pip
|
windowrulev2 = float, tag:pip
|
||||||
windowrulev2 = pin, tag:pip
|
windowrulev2 = pin, tag:pip
|
||||||
windowrulev2 = size 600 338, tag:pip
|
windowrulev2 = size 600 338, tag:pip
|
||||||
windowrulev2 = keep_aspect_ratio on, tag:pip
|
windowrulev2 = keepaspectratio, tag:pip
|
||||||
windowrulev2 = border_size 0, tag:pip
|
windowrulev2 = bordersize 0, tag:pip
|
||||||
windowrulev2 = opacity 1 1, tag:pip
|
windowrulev2 = opacity 1 1, tag:pip
|
||||||
windowrulev2 = move (monitor_w-window_w-40) (monitor_h*0.04), tag:pip
|
windowrulev2 = move (monitor_w-window_w-40) (monitor_h*0.04), tag:pip
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
windowrulev2 = fullscreen, class:com.libretro.RetroArch
|
windowrulev2 = fullscreen, class:com.libretro.RetroArch
|
||||||
windowrulev2 = tag -default-opacity, class:com.libretro.RetroArch
|
windowrulev2 = tag -default-opacity, class:com.libretro.RetroArch
|
||||||
windowrulev2 = opacity 1 1, class:com.libretro.RetroArch
|
windowrulev2 = opacity 1 1, class:com.libretro.RetroArch
|
||||||
windowrulev2 = idleinhibit, fullscreen, class:com.libretro.RetroArch
|
windowrulev2 = idleinhibit fullscreen, class:com.libretro.RetroArch
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ windowrulev2 = tag -default-opacity, class:steam.*
|
|||||||
windowrulev2 = opacity 1 1, class:steam.*
|
windowrulev2 = opacity 1 1, class:steam.*
|
||||||
windowrulev2 = size 1100 700, class:steam, title:Steam
|
windowrulev2 = size 1100 700, class:steam, title:Steam
|
||||||
windowrulev2 = size 460 800, class:steam, title:Friends List
|
windowrulev2 = size 460 800, class:steam, title:Friends List
|
||||||
windowrulev2 = idleinhibit, fullscreen, class:steam
|
windowrulev2 = idleinhibit fullscreen, class:steam
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ windowrulev2 = opacity 1 1, class:^(zoom|vlc|mpv|org.kde.kdenlive|com.obsproject
|
|||||||
windowrulev2 = rounding 8, tag:pop
|
windowrulev2 = rounding 8, tag:pop
|
||||||
|
|
||||||
# Prevent idle while open
|
# Prevent idle while open
|
||||||
windowrulev2 = idleinhibit, always, tag:noidle
|
windowrulev2 = idleinhibit always, tag:noidle
|
||||||
|
|||||||
@@ -26,9 +26,14 @@ tz=$(jq_or_empty "$SYS_STATE" '.timezone')
|
|||||||
dns=$(jq_or_empty "$SYS_STATE" '.dns')
|
dns=$(jq_or_empty "$SYS_STATE" '.dns')
|
||||||
hybrid_gpu=$(jq_or_empty "$SYS_STATE" '.features.hybridGPU')
|
hybrid_gpu=$(jq_or_empty "$SYS_STATE" '.features.hybridGPU')
|
||||||
|
|
||||||
# Form factor: same battery-presence check the installer uses to auto-set
|
# Form factor: battery presence (same signal the installer uses to auto-set
|
||||||
# nomarchy.{system.,}formFactor.
|
# nomarchy.{system.,}formFactor). `compgen` is a bash programmable-completion
|
||||||
if compgen -G "/sys/class/power_supply/BAT*" >/dev/null; then
|
# builtin, and the non-interactive bash this script gets wrapped with is
|
||||||
|
# compiled without it — so a glob into a nullglob array, not `compgen -G`.
|
||||||
|
shopt -s nullglob
|
||||||
|
batteries=( /sys/class/power_supply/BAT* )
|
||||||
|
shopt -u nullglob
|
||||||
|
if (( ${#batteries[@]} )); then
|
||||||
form_factor="laptop"
|
form_factor="laptop"
|
||||||
else
|
else
|
||||||
form_factor="desktop"
|
form_factor="desktop"
|
||||||
|
|||||||
Reference in New Issue
Block a user