Tweaked lock screen, removed beep

This commit is contained in:
Tibo De Peuter 2022-03-18 08:07:04 +01:00
parent 5151e29461
commit ccc853ccad
2 changed files with 17 additions and 11 deletions

View file

@ -7,7 +7,7 @@
# =========
# Increase font size for everything except applications
exec xrandr --dpi 125
exec xrandr --dpi 125 -vsync
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
@ -92,8 +92,6 @@ bindsym $winkey+Control_L+Shift+space focus mode_toggle
bindsym $winkey+h split h
# Split in vertical orientation
bindsym $winkey+v split v
# Toggle fullscreen
bindsym Shift+Prior fullscreen toggle
# Resize window menu
mode "resize" {
@ -242,8 +240,8 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
# Lockscreen
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
set $i3lockwall sh ~/.config/i3/scripts/lock.sh
bindsym $winkey+Delete exec --no-startup-id $i3lockwall
bindsym $winkey+Delete exec --no-startup-id "sh ~/.config/i3/scripts/lock.sh"
# exec --no-startup-id xss-lock --transfer-sleep-lock -- exec $i3lockwall --nofork
exec --no-startup-id ~/.config/i3/scripts/dimming.sh
exec --no-startup-id ~/.config/i3/scripts/locking.sh
@ -271,14 +269,12 @@ mode "$mode_system" {
# TODO Change cursor style
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status --config ~/.config/i3/i3status.conf
mode hide
position bottom
tray_padding 1 px
tray_padding 0 px
workspace_min_width 40
separator_symbol "~"
@ -297,8 +293,12 @@ bar {
}
title_align center
default_border normal
hide_edge_borders smart
default_border normal 1
hide_edge_borders both
# Toggle Show title
bindsym $alt+Next border pixel 1
bindsym $alt+Prior border normal 1
# Class border backgr text indic. child_border
client.focused #000000 #00897b #ffffff #00897b #000000

View file

@ -0,0 +1,6 @@
img=/tmp/i3lock.png
scrot -z -o $img
convert $img -scale 20% -scale 500% -gamma 0.8 $img
i3lock -i $img #-u