This commit is contained in:
jonathan.wyss
2025-09-26 16:15:35 +02:00
parent bbda61be11
commit 772871bd77
5 changed files with 32 additions and 1 deletions

5
.xprofile Normal file
View File

@@ -0,0 +1,5 @@
#/home/ccppi
export XDG_CONFIG_HOME="$HOME/.config"
xss-lock slock &
flameshot &
sxhkd &

6
dwm/Makefile Normal file
View File

@@ -0,0 +1,6 @@
build:
tar cf ./dwm-utils.tar \
./dwm-time.service \
./dwm-time.sh \
./dwm.desktop \
./startdwm.sh

View File

@@ -4,7 +4,7 @@ Description=Show time in dwm dmenu bar
[Service] [Service]
#WorkingDirectory=<directory_of_script e.g. /root> #WorkingDirectory=<directory_of_script e.g. /root>
ExecStart=/home/ccppi/.scripts/dwm-time.sh ExecStart=/home/ccppi/.scripts/dwm-time
Restart=always Restart=always
[Install] [Install]

View File

@@ -1,3 +1,4 @@
#!/bin/bash
while true; do while true; do
xsetroot -name "$(date)" xsetroot -name "$(date)"
sleep 2 sleep 2

19
tmux-session-rollback.sh Normal file
View File

@@ -0,0 +1,19 @@
SAVE_PATH="${HOME}/.tmux/resurrect"
res_files=($(ls -t ${SAVE_PATH} |awk '$0 ~ /tmux_resurrect/{print $0}'))
i=0
for f in ${res_files[@]}
do
((i+=1))
if [ $i -gt 20 ]
then
break
fi
echo -e "[${i}] - ${f}"
declare files["${i}"]=${f}
done
read -p "enter number to roleback" saveFile
rm $SAVE_PATH/last
echo selected: ${files[${saveFile}]}
ln -s ${files[${saveFile}]} $SAVE_PATH/last