Use a simpler lock screen script

This also removes the desktop background. I never see it anyway
This commit is contained in:
Jake Howard 2021-10-11 20:45:42 +01:00
parent 7ec78419ee
commit e595851727
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 16 additions and 4 deletions

View file

@ -42,7 +42,7 @@ bindsym $mod+F12 exec --no-startup-id redshift -O 3000
# Applications # Applications
bindsym $mod+l exec --no-startup-id betterlockscreen -l dimblur && sleep 1 bindsym $mod+l exec --no-startup-id {{ home }}/.config/i3/lock.sh && sleep 1
bindsym $mod+Shift+l exec --no-startup-id pranklock bindsym $mod+Shift+l exec --no-startup-id pranklock
bindsym $mod+K exec --no-startup-id bitwarden bindsym $mod+K exec --no-startup-id bitwarden
bindsym $mod+d exec --no-startup-id rofi -show drun -sidebar-mode bindsym $mod+d exec --no-startup-id rofi -show drun -sidebar-mode
@ -134,7 +134,6 @@ bindsym $mod+g mode "gaps"
# Autostart # Autostart
exec /usr/lib/polkit-1/polkitd --no-debug exec /usr/lib/polkit-1/polkitd --no-debug
exec picom --dbus --xrender-sync-fence exec picom --dbus --xrender-sync-fence
exec tbg ~/Upload/bg/ -m 10 -c "betterlockscreen -u /_"
exec ssh-agent -Da /tmp/ssh-agent-$USER.sock exec ssh-agent -Da /tmp/ssh-agent-$USER.sock
exec bitwarden exec bitwarden
exec dunst exec dunst

8
files/lock-screen.sh Normal file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
BG_DIR="$HOME/Upload/bg/"
BG=$(ls "$BG_DIR" | sort -R | tail -n 1)
i3lock -i "$BG_DIR/$BG" --scale --clock --indicator --inside-color=00000088 --indicator --date-color=FFFFFF --time-color=FFFFFF

View file

@ -5,7 +5,6 @@
become_user: aur_builder become_user: aur_builder
loop: loop:
- arandr - arandr
- betterlockscreen
- brightnessctl - brightnessctl
- picom - picom
- dmenu - dmenu
@ -21,7 +20,6 @@
- rofi - rofi
- rofi-calc - rofi-calc
- rofimoji - rofimoji
- tbg
- xdotool - xdotool
- xorg - xorg
@ -110,3 +108,10 @@
mode: 0755 mode: 0755
directory_mode: 0755 directory_mode: 0755
owner: "{{ user }}" owner: "{{ user }}"
- name: Install screen lock script
copy:
src: ./files/lock-screen.sh
dest: "{{ home }}/.config/i3/lock.sh"
mode: 0755
owner: "{{ user }}"