screen locker

This commit is contained in:
2023-02-28 15:52:26 +01:00
parent 8651757102
commit 5382be2aa7
3 changed files with 6 additions and 5 deletions

View File

@@ -110,6 +110,6 @@ while true; do
# sleep 1 && xsetroot -name "$updates $(battery) $(brightness) $(cpu) $(mem) $(wlan) $(clock)" # sleep 1 && xsetroot -name "$updates $(battery) $(brightness) $(cpu) $(mem) $(wlan) $(clock)"
# sleep 1 && xsetroot -name "$(battery) $(brightness) $(cpu) $(mem) $(wlan) $(clock)" # sleep 1 && xsetroot -name "$(battery) $(brightness) $(cpu) $(mem) $(wlan) $(clock)"
sleep 1 && xsetroot -name "^c$text^^b$surface0^ $(brightness) ^b$base^ $(battery) $(net)^c$text^^b$base^ $(today) ^b$surface0^ $(clock) ^b$surface1^ $(pulse) " # sleep 1 && xsetroot -name "^c$text^^b$surface0^ $(brightness) ^b$base^ $(battery) $(net)^c$text^^b$base^ $(today) ^b$surface0^ $(clock) ^b$surface1^ $(pulse) "
# sleep 1 && xsetroot -name "^c$text^$(net)^c$text^^b$base^ $(today) ^b$surface0^ $(clock) ^b$surface1^ $(pulse) " sleep 1 && xsetroot -name "^c$text^$(net)^c$text^^b$base^ $(today) ^b$surface0^ $(clock) ^b$surface1^ $(pulse) "
done done

View File

@@ -216,6 +216,7 @@ static const char *tools[] = {"lxappearance"};
static const char *search[] = {"rofi", "-show", "drun", NULL}; static const char *search[] = {"rofi", "-show", "drun", NULL};
// static const char *launcha[] = {alttabstart}; // static const char *launcha[] = {alttabstart};
static const char *explorer[] = {"nemo", NULL}; static const char *explorer[] = {"nemo", NULL};
static const char *locksession[] = {"loginctl", "lock-session", NULL};
#if RENAMED_SCRATCHPADS_PATCH #if RENAMED_SCRATCHPADS_PATCH
static char scratchselfgcolor[] = "#FFF7D4"; static char scratchselfgcolor[] = "#FFF7D4";
@@ -919,7 +920,7 @@ static const Key keys[] = {
{0, XF86XK_Search, spawn, {.v = search}}, {0, XF86XK_Search, spawn, {.v = search}},
{0, XF86XK_LaunchA, alttabstart, {0}}, {0, XF86XK_LaunchA, alttabstart, {0}},
{0, XF86XK_Explorer, spawn, {.v = explorer}}, {0, XF86XK_Explorer, spawn, {.v = explorer}},
{ MODKEY|ShiftMask, XK_l, spawn, {.v = locksession} },
#if KEYMODES_PATCH #if KEYMODES_PATCH
{ MODKEY, XK_Escape, setkeymode, {.ui = COMMANDMODE} }, { MODKEY, XK_Escape, setkeymode, {.ui = COMMANDMODE} },
#endif // KEYMODES_PATCH #endif // KEYMODES_PATCH

View File

@@ -58,13 +58,13 @@ xset s 900 &
gnome-keyring-daemon & gnome-keyring-daemon &
## Map super key to trigger rofi when used alone ## Map super key to trigger rofi when used alone
xcape -e 'Super_L=Super_L|Shift_L|space' & # xcape -e 'Super_L=Super_L|Shift_L|space' &
# wallpapers # wallpapers
nitrogen --restore & nitrogen --restore &
## Set screen locker ## Set screen locker
xss-lock -v -- betterlockscreen -l & xss-lock -v -- betterlockscreen -l --time-format '%I:%M %p' &
## Desktop portal ## Desktop portal
/usr/lib/xdg-desktop-portal-gtk & /usr/lib/xdg-desktop-portal-gtk &