summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-06-11 08:24:20 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-06-11 08:24:20 +0300
commit48fe9977f8193e6323f6fafca26fab029816be97 (patch)
tree4bb83fa1edcdc3a0c47efd256422fac269c245c1
parent3622addb4aa4c5ffe4eb4385862a747f7debf354 (diff)
downloaddotfiles-48fe9977f8193e6323f6fafca26fab029816be97.tar
dotfiles-48fe9977f8193e6323f6fafca26fab029816be97.tar.gz
dotfiles-48fe9977f8193e6323f6fafca26fab029816be97.zip
Improved jgmenu commands for logout and lock now, updated lock script with more information and better sleeping, fixed some configs
-rw-r--r--.config/jgmenu/append.csv4
-rw-r--r--.config/openbox/autostart2
-rw-r--r--.config/terminator/config2
-rwxr-xr-x.i3lock/lock.sh19
-rw-r--r--.lwarc2
5 files changed, 21 insertions, 8 deletions
diff --git a/.config/jgmenu/append.csv b/.config/jgmenu/append.csv
index 8e850b5..3d300ab 100644
--- a/.config/jgmenu/append.csv
+++ b/.config/jgmenu/append.csv
@@ -1,6 +1,6 @@
^sep()
-Log Out,openbox --exit,system-log-out
-Lock Now,/home/kamen/.i3lock/lock.sh now,system-lock-screen
+Log Out,pkill -KILL -u $USER,system-log-out
+Lock Now,~/.i3lock/lock.sh now,system-lock-screen
^sep()
Suspend,~/.i3lock/lock.sh suspend,system-suspend
Reboot,systemctl -i reboot,system-reboot
diff --git a/.config/openbox/autostart b/.config/openbox/autostart
index 811876f..1115358 100644
--- a/.config/openbox/autostart
+++ b/.config/openbox/autostart
@@ -15,7 +15,7 @@ lxpolkit & # polkit
barrier & # using mouse & keyboard on other computers while connected to wifi
xautolock -detectsleep -secure -time 15 -locker ~/.i3lock/lock.sh & # auto lock screen
tint2 & # taskbar
-compton --experimental-backends & # compositor
+picom --experimental-backends & # compositor
setxkbmap -layout "us,bg" -variant ",phonetic" -option "grp:alt_shift_toggle" & # keyboard switching
flameshot & # screenshot utility
diff --git a/.config/terminator/config b/.config/terminator/config
index 1e4eadc..d3a3fab 100644
--- a/.config/terminator/config
+++ b/.config/terminator/config
@@ -5,6 +5,8 @@
[profiles]
[[default]]
background_color = "#282828"
+ background_darkness = 0.97
+ background_type = transparent
cursor_color = "#aaaaaa"
font = MesloLGS NF 12
foreground_color = "#ebdbb2"
diff --git a/.i3lock/lock.sh b/.i3lock/lock.sh
index 7131e1e..4dc5357 100755
--- a/.i3lock/lock.sh
+++ b/.i3lock/lock.sh
@@ -1,13 +1,23 @@
#!/bin/bash
if [ $(grep -r "RUNNING" /proc/asound | wc -l) -eq 0 ] || [[ $# -ne 0 ]]; then
- # Also disables and enables dunst, my notification daemon
+ # Disables dunst, my notification daemon, so I don't see notification on lock screen
# https://github.com/dunst-project/dunst/issues/697
# https://wiki.archlinux.org/title/Dunst#Disable_dunst_temporarily
-
killall -SIGUSR1 dunst
+
if [[ "$1" == "suspend" ]]; then
- systemctl -i suspend
+ # Usually suspending should be done with "systemctl suspend", but I've had issues with that so I directly tell the kernel to sleep the system
+ # For that I have a script in /usr/loca/sbin that just continains:
+ #
+ # #!/bin/bash
+ # echo -n mem>/sys/power/state
+ #
+ # And I've added the following to /etc/sudoers (where kamen is my username), so I don't need to put in my password:
+ #
+ # kamen ALL = (root) NOPASSWD: /usr/local/sbin/sleep.sh
+ sudo -u root /usr/local/sbin/sleep.sh
+
# Audio could get messed up if something is playing while trying to suspend
# By restarting pulseaudio, all playback gets "stopped", which should prevent any audio issues post-suspend
pulseaudio -k
@@ -15,7 +25,8 @@ if [ $(grep -r "RUNNING" /proc/asound | wc -l) -eq 0 ] || [[ $# -ne 0 ]]; then
i3lock -f -c d49408 -i /home/kamen/.i3lock/lockscreen.png -n
- killall -SIGUSR2 dunst
+ killall -SIGUSR2 dunst # Enables my notification daemon
killall lwa-hot-corners; lwa-hot-corners ~/.lwarc &
killall tint2; tint2 &
+ picom --experimental-backends & # Sometimes my compositor crashes or smth, so I try to launch it, just in case it stopped working
fi
diff --git a/.lwarc b/.lwarc
index cd4ba52..eae8f1a 100644
--- a/.lwarc
+++ b/.lwarc
@@ -1,5 +1,5 @@
bottom_left_command=gnome-system-monitor
-bottom_right_command=if xprop -root _NET_SHOWING_DESKTOP|egrep '= 1' ; then wmctrl -k off; else wmctrl -k on ;fi; sleep 0.2
+bottom_right_command=if xprop -root _NET_SHOWING_DESKTOP|egrep '= 1' ; then wmctrl -k off; else wmctrl -k on ;fi
hold_duration=0
update_interval=100
disable_on_fullscreen=false