From e79ebe9d4f0a8610bb0994117c248503ee10faa2 Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Tue, 7 Feb 2023 17:36:02 +0100 Subject: scripts: minor changes Comment out xidlehook and betterlockscreen, as I am currently not using these programs --- .config/X11/xinitrc | 4 ++-- .local/bin/dock | 10 ++++++---- .local/bin/scheme | 2 +- .local/bin/screensaver | 12 ++++++------ 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc index 90c7e25..12af84a 100755 --- a/.config/X11/xinitrc +++ b/.config/X11/xinitrc @@ -37,9 +37,9 @@ clipmenud & playerctld daemon & redshift -l 55.7:12.6 -t 5700:4000 -g 0.9 -m randr -v & unclutter -b & -nextcloud --background & +# nextcloud --background & xwallpaper --center ~/.local/share/bg & -betterlockscreen -u ~/.local/share/lock & +# betterlockscreen -u ~/.local/share/lock & ~/.local/bin/screensaver & ~/.local/bin/comptoggle & ~/.local/bin/rate & diff --git a/.local/bin/dock b/.local/bin/dock index 8d39930..5764213 100755 --- a/.local/bin/dock +++ b/.local/bin/dock @@ -16,19 +16,21 @@ dock () { echo "error: HDMI not connected"; exit 1 fi - barpos bottom + # barpos bottom + barlaunch xrandr --output HDMI-1 --mode 2560x1440 --rate 70 --primary xrandr --output eDP-1 --off xwallpaper --center ~/.local/share/bg - betterlockscreen -u ~/.local/share/lock >/dev/null 2>&1 & + # betterlockscreen -u ~/.local/share/lock >/dev/null 2>&1 & } undock () { - barpos top + # barpos top + barlaunch xrandr --output eDP-1 --mode 1920x1080 --primary xrandr --output HDMI-1 --off xwallpaper --center ~/.local/share/bg - betterlockscreen -u ~/.local/share/lock >/dev/null 2>&1 & + # betterlockscreen -u ~/.local/share/lock >/dev/null 2>&1 & } main "$@" diff --git a/.local/bin/scheme b/.local/bin/scheme index 128d8f2..af2edad 100755 --- a/.local/bin/scheme +++ b/.local/bin/scheme @@ -49,8 +49,8 @@ set_scheme () { echo -n $FZF_COLOR > "$XDG_CONFIG_HOME"/scheme/fzf-color # todo: + # - dmenu ? # - send nvim clients theme update - # - delta ? # - restart firefox ? # - restart thunderbird ? } diff --git a/.local/bin/screensaver b/.local/bin/screensaver index 7b25bf9..37005fc 100755 --- a/.local/bin/screensaver +++ b/.local/bin/screensaver @@ -1,9 +1,9 @@ #!/bin/sh -# xset -dpms -xset s off +xset dpms 300 +# xset s off -xidlehook \ - --detect-sleep --not-when-audio --not-when-fullscreen \ - --timer 300 'betterlockscreen -l' '' \ - --timer 300 'systemctl suspend' '' & +# xidlehook \ +# --detect-sleep --not-when-audio --not-when-fullscreen \ +# --timer 300 'betterlockscreen -l' '' \ +# --timer 300 'systemctl suspend' '' & -- cgit v1.2.3-70-g09d2