1
Fork 0

gyrfalcon initial

This commit is contained in:
Andy Killorin 2024-03-19 14:03:37 -05:00
parent ab26d455fd
commit 10b5de9b8b
Signed by: ank
GPG key ID: 23F9463ECB67FE8C
8 changed files with 93 additions and 126 deletions

View file

@ -1,71 +1,49 @@
# note: pinned on 0.22.0-1 (extra/i3status-rust) icons_format = "{icon}"
theme = "bad-wolf" [theme]
theme = "nord-dark"
#[theme.overrides]
#idle_bg = "#123456"
#idle_fg = "#abcdef"
[icons] [icons]
name = "awesome" icons = "awesome6"
[icons.overrides] #[icons.overrides]
seperator = "" #bat = ["|E|", "|_|", "|=|", "|F|"]
#time = "" #bat_charging = "|^| "
#update = ""
#uptime = ""
[[block]] [[block]]
block = "focused_window" block = "cpu"
max_width=80 info_cpu = 20
show_marks="visible" warning_cpu = 50
critical_cpu = 90
[[block]] [[block]]
block = "disk_space" block = "disk_space"
path = "/" path = "/"
alias = "/" info_type = "available"
info_type = "used" alert_unit = "GB"
unit = "GB"
interval = 20 interval = 20
warning = 900.0 warning = 20.0
alert = 940.0 alert = 10.0
format="ssd {available} ({percentage})" format = " $icon root: $available.eng(w:2) "
[[block]]
block = "disk_space"
path = "/hdd"
alias = "/hdd"
info_type = "used"
unit = "GB"
interval = 20
warning = 2800.0
alert = 2950.0
format="hdd {available} ({percentage})"
[[block]] [[block]]
block = "memory" block = "memory"
display_type = "memory" format = " $icon $mem_total_used_percents.eng(w:2) "
format_mem = "{mem_used_percents}" format_alt = " $icon_swap $swap_used_percents.eng(w:2) "
format_swap = "{swap_used_percents}"
warning_mem = 75.0
critical_swap = 80.0
[[block]]
block = "cpu"
interval = 1
warning = 50
[[block]] [[block]]
block = "sound" block = "sound"
[[block.click]]
[[block]] button = "left"
block = "pacman" cmd = "pavucontrol"
interval = 600
format = "{pacman} updates"
hide_when_uptodate = true
on_click = "fakeroot pacman -Qu --dbpath /tmp/checkup-db-andy/ | dmenu -l 25 -f -p 'to be installed'"
[[block]]
block = "uptime"
[[block]] [[block]]
block = "time" block = "time"
interval = 5 interval = 5
format = "%a %b %d : %Y-%m-%d : %l:%M:%S %p" format = " $timestamp.datetime(f:'%a %d/%m %R') "
[[block]]
block = "battery"
format = " $icon $percentage "

View file

@ -24,7 +24,7 @@ set $menu dmenu_path | dmenu | xargs swaymsg exec --
# #
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
#output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill #output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
output * bg ~/Documents/media/wallpapers/kestrel1.jpg fill #output * bg ~/Documents/media/wallpapers/kestrel1.jpg fill
# #
# Example configuration: # Example configuration:
# #
@ -60,61 +60,6 @@ output * bg ~/Documents/media/wallpapers/kestrel1.jpg fill
# Read `man 5 sway-input` for more information about this section. # Read `man 5 sway-input` for more information about this section.
### options ### options
output HDMI-A-1 {
mode 1920x1080
pos 0,1080
}
output DP-2 {
mode 1920x1080
pos 1920,600
transform 90
bg /home/andy/Documents/media/wallpapers/su30-1.jpg fill
}
# mac (over vnc)
# enable with `swaymsg create_output HEADLESS-1`
# start vnc with `wayvnc --output=HEADLESS-1 --max-fps=20 0.0.0.0 5900`
# note: wayvnc is compiled against libplacebo 4.208, freeze that until a wayvnc update (ffmpeg conflict)
output HEADLESS-3 {
#pos 1920,180
pos 3000,1920
# mac resolution
mode 1440x900
#transform 90
}
# TODO: find the correct syntax for this
#exec swaymsg create_output HEADLESS-1
#exec wayvnc --output=HEADLESS-1 0.0.0.0 5900
# kindle (over vnc)
# enable with `swaymsg create_output HEADLESS-2`
# start vnc with `firevnc` (after starting sp3vnc)
output HEADLESS-2 {
pos 1480 2160
# native
#mode 1024x600
mode 751x440
transform 90
#scale 1.25
bg /home/andy/Documents/media/wallpapers/su30-2.jpg fill
}
#exec swaymsg create_output HEADLESS-2
#exec wayvnc --output=HEADLESS-2 0.0.0.0 5901
# sp3 (over vnc)
# start vnc with `sp3vnc`
output HEADLESS-1 {
pos 400,2160
# mac resolution
mode 2160x1440
scale 2
#mode 1080x720
# 4k is detrimental over vnc + super-retina
}
#exec swaymsg create_output HEADLESS-3 #exec swaymsg create_output HEADLESS-3
#exec wayvnc --output=HEADLESS-3 0.0.0.0 5902 #exec wayvnc --output=HEADLESS-3 0.0.0.0 5902
@ -165,6 +110,10 @@ bindsym --locked XF86AudioPlay exec "playerctl --player=spotify,pragha,%any play
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +3% bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +3%
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -3% bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -3%
# brightness
bindsym XF86MonBrightnessUp exec light -A 5
bindsym XF86MonBrightnessDown exec light -U 5
# use msft keys for first 5 spaces # use msft keys for first 5 spaces
bindsym XF86Launch5 workspace number 1 bindsym XF86Launch5 workspace number 1
bindsym XF86Launch6 workspace number 2 bindsym XF86Launch6 workspace number 2
@ -176,9 +125,9 @@ bindsym XF86Favorites scratchpad show
bindsym Print move container to workspace f bindsym Print move container to workspace f
bindsym $mod+Shift+r exec wf-recorder -g "$(slurp)" -f /home/andy/Documents/media/screenshots/"$(date +%Y-%m-%d-%H:%M:%S)".webm #bindsym $mod+Shift+r exec wf-recorder -g "$(slurp)" -f /home/andy/Documents/media/screenshots/"$(date +%Y-%m-%d-%H:%M:%S)".webm
bindsym $mod+Shift+t exec killall -SIGINT wf-recorder bindsym $mod+Shift+t exec killall -SIGINT wf-recorder
bindsym $mod+Shift+f exec grim -g "$(slurp)" /home/andy/Documents/media/screenshots/"$(date +%Y-%m-%d-%H:%M:%S)".png #bindsym $mod+Shift+f exec grim -g "$(slurp)" /home/andy/Documents/media/screenshots/"$(date +%Y-%m-%d-%H:%M:%S)".png
bindsym $mod+Control+Shift+$right move workspace to output right bindsym $mod+Control+Shift+$right move workspace to output right
bindsym $mod+Control+Shift+$left move workspace to output left bindsym $mod+Control+Shift+$left move workspace to output left
@ -233,16 +182,16 @@ bindsym $mod+Shift+s exec bash ~/.config/sway/fancelock.sh
# --inside-clear-color ff212f70 \ # --inside-clear-color ff212f70 \
# --key-hl-color 1111f160 # --key-hl-color 1111f160
# screen locking # screen locking
exec_always killall swayidle #exec_always killall swayidle
exec_always swayidle -w \ #exec_always swayidle -w \
timeout 545 'notify-send "sleep:" "blanking in 15s"' \ # timeout 545 'notify-send "sleep:" "blanking in 15s"' \
timeout 550 'notify-send "sleep:" "blanking in 10s"' \ # timeout 550 'notify-send "sleep:" "blanking in 10s"' \
timeout 555 'notify-send "sleep:" "blanking in 5s"' \ # timeout 555 'notify-send "sleep:" "blanking in 5s"' \
timeout 600 'swaylock -f -c 000000 --daemonize -i /home/andy/Documents/media/wallpapers/kestrel5.jpg -l --ring-color 1108ee08 --inside-color 1108ee02 --indicator-x-position 1343 --indicator-y-position 680 --indicator-radius 220 --indicator-thickness 20 --ring-clear-color 1100ff10 --inside-clear-color 1f41ff70 --ring-wrong-color ff000010 --inside-clear-color ff212f70 --key-hl-color 1111f160' \ # timeout 600 'swaylock -f -c 000000 --daemonize -i /home/andy/Documents/media/wallpapers/kestrel5.jpg -l --ring-color 1108ee08 --inside-color 1108ee02 --indicator-x-position 1343 --indicator-y-position 680 --indicator-radius 220 --indicator-thickness 20 --ring-clear-color 1100ff10 --inside-clear-color 1f41ff70 --ring-wrong-color ff000010 --inside-clear-color ff212f70 --key-hl-color 1111f160' \
timeout 660 'swaymsg "output * dpms off"' \ # timeout 660 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ # resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000 --daemonize -i /home/andy/Documents/media/wallpapers/kestrel5.jpg -l --ring-color 1108ee08 --inside-color 1108ee02 --indicator-x-position 1343 --indicator-y-position 680 --indicator-radius 220 --indicator-thickness 20 --ring-clear-color 1100ff10 --inside-clear-color 1f41ff70 --ring-wrong-color ff000010 --inside-clear-color ff212f70 --key-hl-color 1111f160' # before-sleep 'swaylock -f -c 000000 --daemonize -i /home/andy/Documents/media/wallpapers/kestrel5.jpg -l --ring-color 1108ee08 --inside-color 1108ee02 --indicator-x-position 1343 --indicator-y-position 680 --indicator-radius 220 --indicator-thickness 20 --ring-clear-color 1100ff10 --inside-clear-color 1f41ff70 --ring-wrong-color ff000010 --inside-clear-color ff212f70 --key-hl-color 1111f160'
#
#exec swayidle -w before-sleep 'swaylock -f -c 000000' #exec swayidle -w before-sleep 'swaylock -f -c 000000'
@ -400,10 +349,12 @@ bar {
#swaybar_command i3status-rs #swaybar_command i3status-rs
font pango: FontAwesome, Noto Sans Mono 10 font pango: FontAwesome 15px, Noto Sans Mono 12px
status_command i3status-rs status_command i3status-rs
height 15
#status_command i3blocks #status_command i3blocks
#status_command while date +'%a %b %d : %Y-%m-%d : %l:%M:%S %p'; do sleep 1;done #status_command while date +'%a %b %d : %Y-%m-%d : %l:%M:%S %p'; do sleep 1;done
@ -419,4 +370,8 @@ bar {
} }
} }
input type:touchpad {
tap enabled
}
include /etc/sway/config.d/* include /etc/sway/config.d/*

View file

@ -3,22 +3,21 @@
# based on https://gist.github.com/singulared/7c6d53c1b84fbb7cf22d07c5c7d3e945?permalink_comment_id=3179677#gistcomment-3179677 # based on https://gist.github.com/singulared/7c6d53c1b84fbb7cf22d07c5c7d3e945?permalink_comment_id=3179677#gistcomment-3179677
swayidle \ swayidle \
timeout 14 'swaymsg "output * dpms off" ; ssh sp3 DISPLAY=:0 xset dpms force off' \ timeout 14 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on" ; ssh sp3 "export DISPLAY=:0 && xset dpms 0 0 0 && xset -dpms && xset s off && xset s noblank"' & resume 'swaymsg "output * dpms on"' &
IMAGE=/tmp/i3lock.png IMAGE=/tmp/i3lock.png
LOCK=~/stow/bin/assets/stop.png LOCK=~/stow/bin/assets/stop.png
LOCKARGS=" --ring-color 1108ee08 \ LOCKARGS=" --ring-color 1108ee08 \
--inside-color 1108ee02 \ --inside-color 1108ee02 \
--indicator-x-position 1343 \
--indicator-y-position 680 \
--indicator-radius 220 \ --indicator-radius 220 \
--indicator-thickness 20 \ --indicator-thickness 20 \
--ring-clear-color 1100ff10 \ --ring-clear-color 1100ff10 \
--inside-clear-color 1f41ff70 \ --inside-clear-color 1f41ff70 \
--ring-wrong-color ff000010 \ --ring-wrong-color ff000010 \
--inside-clear-color ff212f70 \ --inside-clear-color ff212f70 \
--key-hl-color 1111f160 " --key-hl-color 1111f160 \
--fingerprint"
for OUTPUT in `swaymsg -t get_outputs | jq -r '.[] | select(.active == true) | .name'` for OUTPUT in `swaymsg -t get_outputs | jq -r '.[] | select(.active == true) | .name'`
do do

30
.config/wluma/config.toml Normal file
View file

@ -0,0 +1,30 @@
[als.iio]
path = "/sys/bus/iio/devices"
thresholds = { 0 = "night", 20 = "dark", 80 = "dim", 250 = "normal", 500 = "bright", 800 = "outdoors" }
# [als.webcam]
# video = 0
# thresholds = { 0 = "night", 15 = "dark", 30 = "dim", 45 = "normal", 60 = "bright", 75 = "outdoors" }
# [als.time]
# thresholds = { 0 = "night", 7 = "dark", 9 = "dim", 11 = "normal", 13 = "bright", 16 = "normal", 18 = "dark", 20 = "night" }
# [als.none]
[[output.backlight]]
name = "eDP-1"
path = "/sys/class/backlight/amdgpu_bl1"
capturer = "wlroots"
# [[output.ddcutil]]
# name = "Dell Inc. DELL P2415Q"
# capturer = "none"
#[[keyboard]]
#name = "keyboard-dell"
#path = "/sys/bus/platform/devices/dell-laptop/leds/dell::kbd_backlight"
# [[keyboard]]
# name = "keyboard-thinkpad"
# path = "/sys/bus/platform/devices/thinkpad_acpi/leds/tpacpi::kbd_backlight"

View file

@ -1 +0,0 @@
. "$HOME/.cargo/env"

5
.zshrc
View file

@ -25,6 +25,8 @@ export PATH=$PATH:$HOME/.local/bin
export PATH=$PATH:$HOME/.nix-profile/bin export PATH=$PATH:$HOME/.nix-profile/bin
export PATH=$PATH:$HOME/.cargo/bin
# from mac # from mac
PS1='%(?.%F{green}%?%f.%F{red}%?%f) %2~ %# ' PS1='%(?.%F{green}%?%f.%F{red}%?%f) %2~ %# '
RPROMPT='%D{%l%M.%S}' RPROMPT='%D{%l%M.%S}'
@ -85,3 +87,6 @@ function did() {
local rx=$1; shift local rx=$1; shift
grog tag -fnt todo -T done --rx $rx -a done $* grog tag -fnt todo -T done --rx $rx -a done $*
} }
export WLR_DRM_NO_MODIFIERS=1
export QT_QPA_PLATFORM=wayland

1
cat Normal file
View file

@ -0,0 +1 @@
188 /sys/class/backlight/amdgpu_bl1/brightness

2
synced
View file

@ -8,5 +8,5 @@
.config/helix/config.toml .config/helix/config.toml
.config/helix/languages.toml .config/helix/languages.toml
.zshrc .zshrc
.zshenv
.vitetris .vitetris
.config/wluma/config.toml