From f81e18604712cd32c9bddc9909c93dc6559c8310 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 30 May 2023 10:11:15 -0500 Subject: redo waybar toggle command --- hypr/hyprland.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 623a5db..65bef38 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -279,7 +279,7 @@ bind = $mainMod $secdMod, P, exec, passmenu #{{{ Misc bindings bind = $mainMod, Return, exec, foot bind = $mainMod $secdMod, F, exec, foot lf -bind = $mainMod, W, exec, waytoggle +bind = $mainMod, W, exec, t waybar bind = $mainMod, Q, exec, loginctl lock-session bind = $mainMod SHIFT, G, exec, get-app-id #bind = $mainMod CONTROL, R, exec, startx -- /usr/bin/Xephyr -screen 1920x1080 :1 -- cgit v1.2.3 From abcf5e59d33a259f22dab4f69147f59b3c489fe0 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 30 May 2023 10:11:38 -0500 Subject: not using X, so redo autostart.sh --- autostart.sh | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/autostart.sh b/autostart.sh index dbf7bed..5d40639 100755 --- a/autostart.sh +++ b/autostart.sh @@ -19,30 +19,13 @@ killandrun () { if [ -n "${WAYLAND_DISPLAY}${DISPLAY}" ]; then notify-sound.sh off & - if [ -n "$WAYLAND_DISPLAY" ]; then - runifnot swayidle - killandrun hyprpaper - #launch_waybar.sh "$(crcparse WC)" - runifnot waybar -c ~/.config/waybar/config-"$(basename "$(crcparse WC)")" - gsettings set $gnome-schema gtk-theme 'Plata-Noir-Compact' - gsettings set $gnome-schema icon-theme 'Mint-Y-Dark-Blue' - gsettings set $gnome-schema cursor-theme 'Adwaita' - if [ "$(crcparse WC | xargs basename)" = "Hyprland" ]; then - xrdb ~/.Xresources - fi - else - #runifnot picom - runifnot caffeine - runifnot xss-lock slockd - runifnot sxhkd - if "$(type xmonad >/dev/null 2>&1)"; then - if ["$(crcparse WM)" = "$(which xmonad)" ]; then - runifnot stalonetray - fi - fi - xwallpaper --zoom ~/background.jpg - setxkbmap -option "caps:escape" - fi + runifnot swayidle + killandrun hyprpaper + runifnot waybar + gsettings set $gnome-schema gtk-theme 'Plata-Noir-Compact' + gsettings set $gnome-schema icon-theme 'Mint-Y-Dark-Blue' + gsettings set $gnome-schema cursor-theme 'Adwaita' + xrdb ~/.Xresources runifnot portmaster-start --data=/opt/safing/portmaster notifier fi -- cgit v1.2.3 From 729641d43cf722b884003036112968013e83a084 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 30 May 2023 22:54:35 -0500 Subject: resize alacritty for legibility --- alacritty/alacritty.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml index 1831a2b..25af5d4 100644 --- a/alacritty/alacritty.yml +++ b/alacritty/alacritty.yml @@ -154,7 +154,7 @@ font: style: Bold Italic # Point size - size: 8.0 + size: 12.0 # Offset is the extra space around each character. `offset.y` can be thought # of as modifying the line spacing, and `offset.x` as modifying the letter -- cgit v1.2.3 From cb7735c35a2cfd5d7e3e5795510070372cfed6c5 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 30 May 2023 22:54:15 -0500 Subject: Use lfrun for image preview with lf-sixel --- hypr/hyprland.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 65bef38..5b4bd85 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -278,7 +278,7 @@ bind = $mainMod $secdMod, P, exec, passmenu #{{{ Misc bindings bind = $mainMod, Return, exec, foot -bind = $mainMod $secdMod, F, exec, foot lf +bind = $mainMod $secdMod, F, exec, foot lfrun bind = $mainMod, W, exec, t waybar bind = $mainMod, Q, exec, loginctl lock-session bind = $mainMod SHIFT, G, exec, get-app-id -- cgit v1.2.3 From 53c5aa9864e7539fd713286057f2d3866f0f57a1 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 30 May 2023 22:57:58 -0500 Subject: fix to ignore args --- doas.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/doas.conf b/doas.conf index c0328d2..37e3ed4 100644 --- a/doas.conf +++ b/doas.conf @@ -11,6 +11,7 @@ permit nopass :wheel cmd zzz permit nopass :wheel cmd pacman permit nopass :wheel cmd cryptsetup permit setenv { EDITOR } :wheel cmd visudo args +permit setenv { EDITOR } :wheel cmd vimv permit nopass keepenv zachir as zachir permit nopass keepenv root -- cgit v1.2.3 From 2c238405f61eb69d7d0d5f77f1594e060e786808 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 23 May 2023 14:21:33 -0500 Subject: Add temperature sensor for cas --- waybar/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waybar/config b/waybar/config index 32c0a11..401bbcd 100644 --- a/waybar/config +++ b/waybar/config @@ -72,8 +72,8 @@ }, "temperature": { // "thermal-zone": 2, - // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", - "critical-threshold": 80, + "hwmon-path": "/sys/class/hwmon/hwmon8/temp1_input", + "critical-threshold": 100, // "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C", "format-icons": ["", "", ""] -- cgit v1.2.3 From bd2986a632e60e1b6bdce7eefe49d1a787c01af7 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 30 May 2023 22:53:32 -0500 Subject: Use dmount to mount with user permissions --- hypr/hyprland.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 5b4bd85..cf7a604 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -269,7 +269,7 @@ bind = $mainMod $secdMod, W, exec, lwc bind = $mainMod $secdMod, E, exec, mbc bind = $mainMod $secdMod, R, exec, ffc bind = $mainMod $secdMod, 1, exec, bm -bind = $mainMod $secdMod, comma, exec, dmount +bind = $mainMod $secdMod, comma, exec, dmount -p bind = $mainMod $secdMod, period, exec, dmenuumount bind = $mainMod $secdMod CONTROL, U, exec, dmenuunicode bind = $mainMod $secdMod, U, exec, mprisctl -- cgit v1.2.3 From f55dbdaba78fd0c3f65d5a7171cfc41308c2a16d Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 6 Jun 2023 10:19:33 -0500 Subject: Update doas.conf --- doas.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doas.conf b/doas.conf index 37e3ed4..9baed26 100644 --- a/doas.conf +++ b/doas.conf @@ -10,8 +10,9 @@ permit nopass :wheel cmd modprobe permit nopass :wheel cmd zzz permit nopass :wheel cmd pacman permit nopass :wheel cmd cryptsetup +permit nopass :wheel cmd systemctl permit setenv { EDITOR } :wheel cmd visudo args -permit setenv { EDITOR } :wheel cmd vimv +permit setenv { EDITOR } :wheel cmd vimv args permit nopass keepenv zachir as zachir permit nopass keepenv root -- cgit v1.2.3 From 2ef85c07fc15a7106093c5464a1f69482ac47d12 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 30 May 2023 22:57:58 -0500 Subject: fix to ignore args --- doas.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doas.conf b/doas.conf index 9baed26..90ab328 100644 --- a/doas.conf +++ b/doas.conf @@ -12,7 +12,7 @@ permit nopass :wheel cmd pacman permit nopass :wheel cmd cryptsetup permit nopass :wheel cmd systemctl permit setenv { EDITOR } :wheel cmd visudo args -permit setenv { EDITOR } :wheel cmd vimv args +permit setenv { EDITOR } :wheel cmd vimv permit nopass keepenv zachir as zachir permit nopass keepenv root -- cgit v1.2.3 From 4fd767688766ea669072e218c2d4f90d7069177d Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 6 Jun 2023 10:13:18 -0500 Subject: update Makefile for removed files --- Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 009bad1..b1ba142 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,15 @@ VIM := $(shell command -v vim 2>/dev/null) NVIM := $(shell command -v nvim 2>/dev/null) +XCONFS := X11/Xresources ZCONFS := zsh/.zshenv DCONFS := doas.conf all: -install: install-xconfigs install-zshconfigs vimplug-vim vimplug-nvim +install: install-xconfigs install-zshconfigs vimplug-vim vimplug-nvim doas-conf install-xconfigs: $(XCONFS) @echo "Installing Xorg conf files..." - @echo "xinitrc..." - @ln -sf `pwd`/X11/xinitrc ~/.xinitrc - @echo "xprofile..." - @ln -sf `pwd`/X11/xprofile ~/.xprofile @echo "Xresources..." @ln -sf `pwd`/X11/Xresources ~/.Xresources @echo "Done." @@ -44,6 +41,5 @@ endif doas-conf: $(DCONFS) @echo "Installing doas config files..." @echo "doas.conf..." - @$(foreach conf,$(DCONFS),\ - $(sudo cp $(conf) /etc/$(conf))) + @sudo cp -n doas.conf /etc/doas.conf @echo "Done." -- cgit v1.2.3 From 4d3413b8241d7c3151cd028506c49534ca287d30 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 6 Jun 2023 10:14:28 -0500 Subject: resize st font --- X11/Xresources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X11/Xresources b/X11/Xresources index dc73fff..e5b0aea 100644 --- a/X11/Xresources +++ b/X11/Xresources @@ -30,7 +30,7 @@ st.termname: st-256color st.shell: /usr/bin/tmux ! The following options options can be reloaded via USR1 signal. -st.font: mononoki Nerd Font Mono:pixelsize=10:antialias=true:autohint=true; +st.font: mononoki Nerd Font Mono:pixelsize=9:antialias=true:autohint=true; st.font2: Symbola:pixelsize=12:antialias=true:autohint=true; st.borderpx: 3 ! st alpha -- cgit v1.2.3 From 8ebf039d3a708f439d7347a5b1090a30dc1906f0 Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 9 Jun 2023 12:42:32 -0500 Subject: use sixel image preview lf --- lf/preview | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lf/preview b/lf/preview index e24c381..6140cf7 100755 --- a/lf/preview +++ b/lf/preview @@ -1,12 +1,8 @@ #!/bin/sh image() { - if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then - printf '{"action": "add", "identifier": "PREVIEW", "x": "%s", "y": "%s", "width": "%s", "height": "%s", "scaler": "contain", "path": "%s"}\n' "$4" "$5" "$(($2-1))" "$(($3-1))" "$1" > "$FIFO_UEBERZUG" - exit 1 - else - chafa "$1" -s "$4x" - fi + geometry="$(($2-2))x$3" + chafa "$1" -f sixel -s "$geometry" --animate false | fold -w 65535 } batorcat() { -- cgit v1.2.3 From 7d313bf6525d0dc8540de891aa0836b362e4a52c Mon Sep 17 00:00:00 2001 From: zachir Date: Sun, 11 Jun 2023 15:22:56 -0500 Subject: run bemenu case insensitive --- hypr/hyprland.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index cf7a604..9bbb25e 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -263,7 +263,7 @@ submap = reset #{{{ Menu bindings bind = $mainMod, R, exec, exec j4-dmenu-desktop --dmenu="bemenu -i -l 10 -p \"Run:\"" -bind = $mainMod, D, exec, exec bemenu-run -l 15 -p "Run:" +bind = $mainMod, D, exec, exec bemenu-run -i -l 15 -p "Run:" bind = $mainMod $secdMod, Q, exec, qbc bind = $mainMod $secdMod, W, exec, lwc bind = $mainMod $secdMod, E, exec, mbc -- cgit v1.2.3 From c43084fe9903160c49a3140ba40bee3e53f3c168 Mon Sep 17 00:00:00 2001 From: zachir Date: Sun, 11 Jun 2023 15:23:33 -0500 Subject: Only add portmaster-start env if command exists --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index d397cf3..d11c091 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -96,4 +96,4 @@ bindkey -- '^[[B' down-line-or-beg [[ -n "${key[Delete]}" ]] && bindkey -- "${key[Delete]}" delete-char #eval "$(starship init zsh)" -eval "$(portmaster-start --data=/opt/safing/portmaster completion zsh)" +type portmaster-start 2>&1 >/dev/null && eval "$(portmaster-start --data=/opt/safing/portmaster completion zsh)" -- cgit v1.2.3