mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-07-21 16:00:55 +00:00
updated a bunch
This commit is contained in:
+20
-14
@@ -8,16 +8,16 @@ set $term alacritty
|
||||
set $menu wmenu-run -l 5 -N 000000ff -n ffffffff -M 00675aff -m ffffffff -S 00675aff -s ffffffff
|
||||
|
||||
# Workspace Names
|
||||
set $ws1 "1: Code"
|
||||
set $ws2 "2: Term"
|
||||
set $ws3 "3: Term"
|
||||
set $ws4 "4: VM"
|
||||
set $ws5 "5: Web"
|
||||
set $ws6 "6: Mail"
|
||||
set $ws7 "7: Games"
|
||||
set $ws8 "8: Other"
|
||||
set $ws9 "9: Other"
|
||||
set $ws10 "10: Other"
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# Font
|
||||
font pango:MesloLGL Nerd Font Mono 10
|
||||
@@ -26,8 +26,8 @@ font pango:MesloLGL Nerd Font Mono 10
|
||||
output * bg /home/agres/.config/sway/wallpaper/wallpaper.jpg fill
|
||||
|
||||
# Gaps
|
||||
gaps inner 2
|
||||
gaps outer 2
|
||||
gaps inner 0
|
||||
gaps outer 0
|
||||
|
||||
# Screen Locker
|
||||
exec_always /home/agres/.config/sway/scripts/lock-sway.sh
|
||||
@@ -36,6 +36,7 @@ exec_always /home/agres/.config/sway/scripts/lock-sway.sh
|
||||
bindsym $mod+Return exec $term
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+d exec $menu
|
||||
bindsym $mod+s exec ~/.local/bin/docpic-rofi
|
||||
floating_modifier $mod normal
|
||||
bindsym $mod+Shift+r reload
|
||||
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
||||
@@ -161,13 +162,18 @@ input "1452:641:Apple_SPI_Trackpad" {
|
||||
scroll_factor 0.3
|
||||
}
|
||||
|
||||
input type:pointer {
|
||||
accel_profile flat
|
||||
pointer_accel -0.4
|
||||
}
|
||||
|
||||
output eDP-1 {
|
||||
scale 1.65
|
||||
scale 1.85
|
||||
scale_filter linear
|
||||
}
|
||||
|
||||
# Opacity Settings
|
||||
for_window [app_id="Alacritty"] opacity 0.98
|
||||
for_window [app_id="Alacritty"] opacity 0.995
|
||||
|
||||
# Show a slightly thicker border so focused window color is more obvious
|
||||
default_border pixel 3
|
||||
|
||||
@@ -4,7 +4,7 @@ set -euo pipefail
|
||||
IMG_PATH="${XDG_RUNTIME_DIR:-/tmp}/lock.png"
|
||||
|
||||
exec swayidle -w \
|
||||
timeout 30 "grim -t png \"$IMG_PATH\" && magick \"$IMG_PATH\" -blur 0x12 \"$IMG_PATH\" && swaylock -f -i \"$IMG_PATH\"" \
|
||||
timeout 600 'swaymsg "output * power off"' \
|
||||
timeout 4800 "grim -t png \"$IMG_PATH\" && magick \"$IMG_PATH\" -blur 0x12 \"$IMG_PATH\" && swaylock -f -i \"$IMG_PATH\"" \
|
||||
timeout 4810 'swaymsg "output * power off"' \
|
||||
resume 'swaymsg "output * power on"' \
|
||||
before-sleep "grim -t png \"$IMG_PATH\" && magick \"$IMG_PATH\" -blur 0x12 \"$IMG_PATH\" && swaylock -f -i \"$IMG_PATH\""
|
||||
|
||||
@@ -17,11 +17,11 @@ TIME=$(date "+%d.%m %H:%M")
|
||||
|
||||
#BRIGHT=$(echo "$(brightnessctl get) / 4.2" | bc)
|
||||
|
||||
VPN_STATUS=$(mullvad status 2>/dev/null | grep -q '^Connected' && echo UP || echo DOWN)
|
||||
LAB_STATUS=$(ping -c1 -W1 192.168.0.200 >/dev/null 2>&1 && echo UP || echo DOWN )
|
||||
#VPN_STATUS=$(mullvad status 2>/dev/null | grep -q '^Connected' && echo U || echo D)
|
||||
LAB_STATUS=$(ping -c1 -W1 192.168.0.200 >/dev/null 2>&1 && echo U || echo D )
|
||||
|
||||
UPTIME=$(awk '{t=int($1); d=t/86400; h=(t%86400)/3600; m=(t%3600)/60; if(d>0) printf "%dd %02d:%02dh\n", d,h,m; else printf "%02d:%02dh\n", h,m}' /proc/uptime)
|
||||
|
||||
POWER=$(powerprofilesctl get | tr '[:lower:]' '[:upper:]')
|
||||
|
||||
echo "$USER | UPT: $UPTIME | POW: $POWER | LAB: $LAB_STATUS | VPN: $VPN_STATUS | CPU: $CPU | MEM: $MEM | BAT: $BAT | $TIME "
|
||||
echo "$USER | UPT: $UPTIME | POW: $POWER | LAB: $LAB_STATUS | CPU: $CPU | MEM: $MEM | BAT: $BAT | $TIME "
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.0 MiB |
Reference in New Issue
Block a user