fixed dwm hanging cus slstatus was stuck on bluetoothctl show

This commit is contained in:
c2ny 2026-01-26 10:25:40 -05:00
parent 91190eb4b8
commit d4e319226e
9 changed files with 63 additions and 12 deletions

View File

@ -11,4 +11,7 @@ export XDG_SESSION_TYPE=x11
# QT apps use xdg portal settings # QT apps use xdg portal settings
export QT_USE_PORTAL=1 export QT_USE_PORTAL=1
# xss-lock -- cinnamon-screensaver-command --lock &
redshift -l 40.7:-74.0 -t 6800:3600 &
exec dbus-run-session -- /usr/local/bin/dwm exec dbus-run-session -- /usr/local/bin/dwm

View File

@ -0,0 +1,35 @@
{
"section1": {
"type": "section",
"description": "Keyboard shortcuts"
},
"keyPower": {
"type": "keybinding",
"description": "Inhibit power management",
"default": "",
"tooltip": "Set keybinding(s) to inhibit power management.",
"value": ""
},
"keyNotifications": {
"type": "keybinding",
"description": "Inhibit notifications",
"default": "",
"tooltip": "Set keybinding(s) to inhibit notifications.",
"value": ""
},
"section2": {
"type": "section",
"description": ""
},
"btnSystemPowerSettings": {
"type": "button",
"description": "Open power settings",
"callback": "on_btn_open_system_power_settings_clicked"
},
"btnSystemNotificationSettings": {
"type": "button",
"description": "Open notification settings",
"callback": "on_btn_open_system_notification_settings_clicked"
},
"__md5__": "56e8861daa343dffe968f80e9a7fa5a2"
}

Binary file not shown.

View File

@ -2,7 +2,7 @@
/* /*
* Packages needed for dwm to work properly: * Packages needed for dwm to work properly:
* xset redshift nitrogen brightnessctl playerctl flameshot xss-lock * xset redshift nitrogen brightnessctl playerctl flameshot
*/ */
/* appearance */ /* appearance */
@ -66,7 +66,6 @@ static const char *const autostart[] = {
// "/home/plky/.config/dwmstat.sh", NULL, // "/home/plky/.config/dwmstat.sh", NULL,
"slstatus", NULL, "slstatus", NULL,
// doesnt work?? // doesnt work??
"redshift", "-l", "40.7:-74.0", "-t", "6800:3600", NULL,
"xcompmgr", NULL, "xcompmgr", NULL,
// screen blank/off after 1h // screen blank/off after 1h
@ -74,8 +73,6 @@ static const char *const autostart[] = {
"xset", "+dpms", NULL, "xset", "+dpms", NULL,
"xset", "dpms", "3600", "3600", "3600", NULL, "xset", "dpms", "3600", "3600", "3600", NULL,
"xss-lock", "--", "cinnamon-screensaver-command", "--lock", NULL,
NULL NULL
}; };

View File

@ -30,8 +30,9 @@ x-scheme-handler/jetbrains=jetbrains-toolbox.desktop
x-scheme-handler/about=helium.desktop x-scheme-handler/about=helium.desktop
x-scheme-handler/unknown=helium.desktop x-scheme-handler/unknown=helium.desktop
x-scheme-handler/discord-1038970224050962582=nuclear.desktop x-scheme-handler/discord-1038970224050962582=nuclear.desktop
x-scheme-handler/tg=org.telegram.desktop.desktop x-scheme-handler/tg=org.telegram.desktop._b1807ce1df22ee6402707058cb72785d.desktop
x-scheme-handler/tonsite=org.telegram.desktop.desktop x-scheme-handler/tonsite=org.telegram.desktop._b1807ce1df22ee6402707058cb72785d.desktop
application/pdf=org.kde.okular.desktop
[Added Associations] [Added Associations]
x-scheme-handler/http=userapp-Firefox-J7KBH3.desktop; x-scheme-handler/http=userapp-Firefox-J7KBH3.desktop;

View File

@ -1,7 +1,7 @@
[desktop-monitor-0] [desktop-monitor-0]
nemo-icon-view-keep-aligned=true nemo-icon-view-keep-aligned=true
nemo-icon-view-auto-layout=true nemo-icon-view-auto-layout=true
nemo-icon-view-layout-timestamp=1769319652 nemo-icon-view-layout-timestamp=1769438486
[trash] [trash]
nemo-icon-position-timestamp=1769305174 nemo-icon-position-timestamp=1769305174

2
okularpartrc Normal file
View File

@ -0,0 +1,2 @@
[Main View]
ShowLeftPanel=false

12
okularrc Normal file
View File

@ -0,0 +1,12 @@
[Desktop Entry]
FullScreen=false
[General]
LockSidebar=true
ShowSidebar=true
[Recent Files]
File1[$e]=$HOME/Documents/Psychology2e_WEB.pdf
File2[$e]=$HOME/Downloads/Young Goodman Brown Full Text - Young Goodman Brown - Owl Eyes.pdf
Name1[$e]=Psychology2e_WEB.pdf
Name2[$e]=Young Goodman Brown Full Text - Young Goodman Brown - Owl Eyes.pdf

View File

@ -95,7 +95,8 @@ static const char bt[] =
"if ! command -v bluetoothctl >/dev/null 2>&1; then " "if ! command -v bluetoothctl >/dev/null 2>&1; then "
"printf \"󰂯 N/A\"; exit; " "printf \"󰂯 N/A\"; exit; "
"fi; " "fi; "
"powered=`bluetoothctl show 2>/dev/null | awk -F': ' '/Powered:/ {print $2}'`; " // removing timeout 0.1 is worse than death
"powered=`timeout 0.1 bluetoothctl show 2>/dev/null | awk -F': ' '/Powered:/ {print $2}'`; "
"if [ \"$powered\" != \"yes\" ]; then " "if [ \"$powered\" != \"yes\" ]; then "
"printf \"󰂯 OFF\"; exit; " "printf \"󰂯 OFF\"; exit; "
"fi; " "fi; "