summaryrefslogtreecommitdiff
path: root/.xinitrc
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-11-30 17:24:01 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2025-12-07 14:23:42 +0100
commit4fc73c77daaa5075fc01ab5d0d2b4e9b3aa0938f (patch)
tree99de1c0323d87fc798bafacdd5c04f7566322da4 /.xinitrc
downloadconfig-4fc73c77daaa5075fc01ab5d0d2b4e9b3aa0938f.tar.gz
config-4fc73c77daaa5075fc01ab5d0d2b4e9b3aa0938f.zip
Initial commit
Diffstat (limited to '.xinitrc')
-rw-r--r--.xinitrc39
1 files changed, 39 insertions, 0 deletions
diff --git a/.xinitrc b/.xinitrc
new file mode 100644
index 0000000..3be0323
--- /dev/null
+++ b/.xinitrc
@@ -0,0 +1,39 @@
1# Check every minute
2while true; do
3 battery-checknow &
4 sleep 0.01
5 event list now | sed -E 's/....-..-.. .{1,2}:..[[:space:]]*//g' | \
6 while read text; do
7 notify push "$text"
8 done &
9 sleep 0.01 &
10
11 if [ "$(cat /sys/class/net/eth0/carrier)" = 1 ]; then
12 iwctl station wlan0 disconnect
13 fi
14
15 xroot-update
16
17 sleep $((60 - $(date +%-S)))
18done &
19
20# Extra settings
21xsetroot -cursor_name left_ptr &
22setxkbmap -option compose:ralt
23setxkbmap -option caps:swapescape
24xbacklight -set 30
25xset s off -dpms
26xrdb -merge .Xresources
27
28# Background and time
29sleep 0.05
30xwallpaper --zoom ~/box/pictures/wallpapers/marmolada.jpg
31sleep 0.01
32event list past | sed -E 's/....-..-.. .{1,2}:..[[:space:]]*//g' | \
33while read text; do
34 notify push "$text"
35done &
36
37xbanish &
38telegram-desktop &
39exec dwm

Generated with cgit - Back to sebastiano.tronto.net