File tree 5 files changed +28
-5
lines changed
5 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ emacs --daemon &
23
23
thunar --daemon &
24
24
25
25
sxhkd " $XDG_CONFIG_HOME /sxhkd/$WM " &
26
- xss-lock -- " $HOME /.local/bin/wm/lock.sh" &
27
26
28
27
/usr/lib/polkit-kde-authentication-agent-1 &
29
28
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ i3lock -n -i "$LOCK" -B 6 -S 1 -e \
51
51
--time-size=64 --date-size=24 \
52
52
--time-str=" %I:%M %p" --date-str=" %A, %B %e" \
53
53
--time-pos=" ix:iy-250" --date-pos=" ix:iy-200" \
54
- --time-color=FFFFFFC0 --date-color=FFFFFFC0
54
+ --time-color=FFFFFFC0 --date-color=FFFFFFC0 \
55
+ --no-modkey-text
55
56
56
57
revert
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ $ sudo EDITOR=vim visudo
65
65
66
66
Add user:
67
67
#+BEGIN_SRC shell-script
68
- $ useradd -m -G wheel -s /bin/bash <username >
69
- $ passwd <username >
68
+ $ useradd -m -G wheel -s /bin/bash <user >
69
+ $ passwd <user >
70
70
#+END_SRC
71
71
72
72
Pacman colors:
@@ -99,6 +99,11 @@ $ git config --global user.email "<email address>"
99
99
$ git config --global user.name "<name>"
100
100
#+END_SRC
101
101
102
+ Lock before sleep:
103
+ #+BEGIN_SRC shell-script
104
+ $ sudo systemctl enable i3lock@<user>
105
+ #+END_SRC
106
+
102
107
Tlp:
103
108
#+BEGIN_SRC shell-script
104
109
$ systemctl enable tlp.service
Original file line number Diff line number Diff line change @@ -220,7 +220,6 @@ xorg-xinput
220
220
xorg-xprop
221
221
xorg-xrandr
222
222
xorg-xsetroot
223
- xss-lock
224
223
yt-dlp
225
224
yt-dlp-drop-in
226
225
zathura
Original file line number Diff line number Diff line change
1
+ # -*- conf -*-
2
+
3
+ [Unit]
4
+ Description =Lock the screen with i3lock
5
+ Before =sleep.target
6
+
7
+ [Service]
8
+ User =%I
9
+ Type =forking
10
+ Environment =DISPLAY =:0
11
+ Environment =XDG_CACHE_HOME =/home/%I/.cache
12
+ ExecStart =/bin/setsid -f /home/%I/.local/bin/wm/lock.sh
13
+ ExecStartPost =/bin/sleep 1
14
+
15
+ [Install]
16
+ WantedBy =sleep.target
17
+
18
+ # Reference:
19
+ # https://wiki.archlinux.org/title/Power_management#Sleep_hooks
You can’t perform that action at this time.
0 commit comments