diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | config | 3 | ||||
-rw-r--r-- | images/imagelock.png | bin | 113100 -> 0 bytes | |||
-rw-r--r-- | install.sh | 4 | ||||
-rw-r--r-- | scripts/i3lock.bash | 34 |
5 files changed, 2 insertions, 40 deletions
@@ -15,7 +15,6 @@ This repository saves the custom configuration used by heckyel in i3wm - feh - i3-wm - i3blocks -- i3lock - nitrogen - ranger - rofi @@ -254,9 +254,6 @@ mode "$mode_mount" { # Declare here the shortcut to mount-device selection menu bindsym $mod+m mode "$mode_mount" -# i3lock -bindsym Pause exec "bash $HOME/.config/i3/scripts/i3lock.bash" - ## Manual management of external displays # Set the shortcuts and what they do set $mode_display Ext Screen (v) VGA ON, (h) HDMI ON, (x) VGA OFF, (y) HDMI OFF diff --git a/images/imagelock.png b/images/imagelock.png Binary files differdeleted file mode 100644 index 4037c32..0000000 --- a/images/imagelock.png +++ /dev/null @@ -19,7 +19,7 @@ do # i3 base $root_key pacman -S --noconfirm i3-wm i3status dmenu sysstat # i3 blocks and dependecies - $root_key pacman -S --noconfirm i3blocks i3lock rofi \ + $root_key pacman -S --noconfirm i3blocks rofi \ conky acpi scrot st sakura feh ranger bubblewrap \ ttf-hack xenocara-xbacklight xdg-user-dirs fi @@ -30,7 +30,7 @@ do printf '%b%s%b%s%b\n' '\e[1;32m' '==> ' '\e[0m\033[1m' 'Copying images...' '\e[m' install -d -m755 "$HOME/.config/i3/images" - for i in background.png imagelock.png; do + for i in background.png; do install -m644 -v "/tmp/i3config/images/$i" "$HOME/.config/i3/images/$i" done diff --git a/scripts/i3lock.bash b/scripts/i3lock.bash deleted file mode 100644 index caddf1c..0000000 --- a/scripts/i3lock.bash +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -revert() { - rm /tmp/*screen*.png - xset dpms 0 0 0 -} - -trap revert HUP INT TERM - -if [[ $(command -v xset) ]]; then - xset +dpms dpms 0 0 5 -else - echo 'xset command not found' >> "$HOME/.config/i3/logs/xset-log-$(date +'%F-%k-%M-%S').log" 2>&1 # debug -fi - -if [[ $(command -v scrot) ]]; then - scrot -d 1 /tmp/locking_screen.png -else - echo 'scrot is not installed' >> "$HOME/.config/i3/logs/scrot-log-$(date +'%F-%k-%M-%S').log" 2>&1 # debug -fi - -if [[ $(command -v convert) ]]; then - convert -blur 0x8 /tmp/locking_screen.png /tmp/screen_blur.png - convert -composite /tmp/screen_blur.png "$HOME/.config/i3/images/imagelock.png" -gravity South -geometry -20x1200 /tmp/screen.png -else - echo 'convert command not found' >> "$HOME/.config/i3/logs/convert-log-$(date +'%F-%k-%M-%S').log" 2>&1 # debug -fi - -if [[ $(command -v i3lock) ]]; then - i3lock -i /tmp/screen.png -else - echo 'i3lock is not installed' >> "$HOME/.config/i3/logs/i3lock-log-$(date +'%F-%k-%M-%S').log" 2>&1 # debug -fi - -revert "$@" |