refine
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||||
|
|
||||||
set $mod Mod1
|
set $mod Mod1
|
||||||
set $wallpaper '/sync/images/wallpapers/pexels-lumn.jpg'
|
set $wallpaper_dir /sync/images/wallpapers
|
||||||
set $terminal 'wezterm'
|
set $terminal 'wezterm'
|
||||||
# Font for window titles. Will also be used by the bar unless a different font
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
@@ -34,9 +34,9 @@ exec --no-startup-id xrandr --output HDMI-0 --mode 1920x1080 --rate 120
|
|||||||
# burn-in prevention: blank after 5min, DPMS off after 10min, skip lock if fullscreen
|
# burn-in prevention: blank after 5min, DPMS off after 10min, skip lock if fullscreen
|
||||||
exec --no-startup-id xset s 300 300
|
exec --no-startup-id xset s 300 300
|
||||||
exec --no-startup-id xset dpms 300 600 900
|
exec --no-startup-id xset dpms 300 600 900
|
||||||
exec --no-startup-id xss-lock -- ~/.config/i3/scripts/lock
|
exec --no-startup-id xss-lock -- ~/.config/i3/scripts/lock $wallpaper_dir
|
||||||
|
|
||||||
bindsym $mod+l exec ~/.config/i3/scripts/lock-now
|
bindsym $mod+l exec ~/.config/i3/scripts/lock-now $wallpaper_dir
|
||||||
bindsym $mod+Shift+o exec systemctl suspend
|
bindsym $mod+Shift+o exec systemctl suspend
|
||||||
bindsym $mod+Shift+p exec systemctl poweroff
|
bindsym $mod+Shift+p exec systemctl poweroff
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ exec --no-startup-id fcitx5 -d
|
|||||||
exec --no-startup-id nm-applet
|
exec --no-startup-id nm-applet
|
||||||
exec --no-startup-id blueman-applet
|
exec --no-startup-id blueman-applet
|
||||||
exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=ssh,pkcs11
|
exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=ssh,pkcs11
|
||||||
exec --no-startup-id ~/.config/i3/scripts/wallpaper-rotate
|
exec --no-startup-id ~/.config/i3/scripts/wallpaper-rotate $wallpaper_dir
|
||||||
#exec --no-startup-id pasystray
|
#exec --no-startup-id pasystray
|
||||||
exec --no-startup-id polybar
|
exec --no-startup-id polybar
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -7,4 +7,4 @@ if [ -n "$active" ] && [ "$active" != "0x0" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
exec ~/.config/i3/scripts/lock-now
|
exec ~/.config/i3/scripts/lock-now "$1"
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
img=$(find /sync/images/wallpapers/ -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
|
wall_dir="${1:?wallpaper directory required}"
|
||||||
|
img=$(find "$wall_dir" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
|
||||||
tmp=/tmp/lockscreen.png
|
tmp=/tmp/lockscreen.png
|
||||||
res=$(xrandr --current | awk '/ connected/ {getline; print $1; exit}')
|
res=$(xrandr --current | awk '/ connected/ {getline; print $1; exit}')
|
||||||
: "${res:=1920x1080}"
|
: "${res:=1920x1080}"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Rotate wallpaper every 20 minutes from /sync/images/wallpapers/
|
wall_dir="${1:?wallpaper directory required}"
|
||||||
while true; do
|
while true; do
|
||||||
img=$(find /sync/images/wallpapers/ -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
|
img=$(find "$wall_dir" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
|
||||||
[ -n "$img" ] && feh --bg-fill "$img"
|
[ -n "$img" ] && feh --bg-fill "$img"
|
||||||
sleep 1200
|
sleep 1200
|
||||||
done
|
done
|
||||||
|
|||||||
+8
-7
@@ -31,15 +31,13 @@ disabled = #707070
|
|||||||
bottom = false
|
bottom = false
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 20pt
|
height = 20pt
|
||||||
radius = 8
|
radius = 0
|
||||||
|
|
||||||
; dpi = 96
|
; dpi = 96
|
||||||
|
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
tray-position = right
|
|
||||||
tray-background = ${colors.background-alt}
|
|
||||||
line-size = 2pt
|
line-size = 2pt
|
||||||
|
|
||||||
border-size = 0
|
border-size = 0
|
||||||
@@ -48,7 +46,7 @@ border-color = #00000000
|
|||||||
padding-left = 1
|
padding-left = 1
|
||||||
padding-right = 1
|
padding-right = 1
|
||||||
|
|
||||||
module-margin = 1
|
;module-margin = 1
|
||||||
|
|
||||||
separator = |
|
separator = |
|
||||||
separator-foreground = ${colors.disabled}
|
separator-foreground = ${colors.disabled}
|
||||||
@@ -57,15 +55,13 @@ font-0 = JetBrainsMono Nerd Font:size=14;3
|
|||||||
#font-0 = 0xProto Nerd Font:pixelsize=14;3
|
#font-0 = 0xProto Nerd Font:pixelsize=14;3
|
||||||
|
|
||||||
modules-left = xworkspaces xwindow
|
modules-left = xworkspaces xwindow
|
||||||
modules-right = polytiramisu memory cpu date battery xkeyboard
|
modules-right = date polytiramisu memory cpu battery xkeyboard tray
|
||||||
|
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = ns-resize
|
||||||
|
|
||||||
enable-ipc = true
|
enable-ipc = true
|
||||||
|
|
||||||
; tray-position = right
|
|
||||||
|
|
||||||
; wm-restack = generic
|
; wm-restack = generic
|
||||||
; wm-restack = bspwm
|
; wm-restack = bspwm
|
||||||
; wm-restack = i3
|
; wm-restack = i3
|
||||||
@@ -185,6 +181,11 @@ exec = ~/.config/polybar/scripts/polytiramisu.sh
|
|||||||
format = <label>
|
format = <label>
|
||||||
tail = true
|
tail = true
|
||||||
|
|
||||||
|
[module/tray]
|
||||||
|
type = internal/tray
|
||||||
|
tray-background = ${colors.background}
|
||||||
|
tray-spacing = 4pt
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
screenchange-reload = true
|
screenchange-reload = true
|
||||||
pseudo-transparency = true
|
pseudo-transparency = true
|
||||||
|
|||||||
Reference in New Issue
Block a user