summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xautostart.sh1
-rw-r--r--firejail/brave.profile2
-rw-r--r--firejail/qutebrowser.profile2
-rw-r--r--hypr/hypridle.conf4
-rw-r--r--hypr/hyprland.conf37
-rw-r--r--lf/lfrc27
-rw-r--r--niri/config.kdl6
-rwxr-xr-xnsxiv/exec/key-handler2
-rw-r--r--pypr/config.toml (renamed from hypr/pyprland.toml)0
-rw-r--r--sh/functions1
-rw-r--r--waybar/config5
-rw-r--r--wireplumber/wireplumber.conf.d/alsa-vm.conf17
13 files changed, 86 insertions, 19 deletions
diff --git a/.gitignore b/.gitignore
index e422b30..0d0aa13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -121,6 +121,7 @@ kritarc
ksh/history
kwalletrc
lab/
+Ladybird/
lbry/
LBRY/
LBRY-GTK/
diff --git a/autostart.sh b/autostart.sh
index 42eb092..7124a5e 100755
--- a/autostart.sh
+++ b/autostart.sh
@@ -18,6 +18,7 @@ killandrun () {
}
if [ -n "${WAYLAND_DISPLAY}${DISPLAY}" ]; then
+ dinit &
notify-sound.sh off &
runifnot swayidle
killandrun hyprpaper
diff --git a/firejail/brave.profile b/firejail/brave.profile
new file mode 100644
index 0000000..735c05b
--- /dev/null
+++ b/firejail/brave.profile
@@ -0,0 +1,2 @@
+whitelist ~/.local/share/brave_profiles
+include /etc/firejail/brave.profile
diff --git a/firejail/qutebrowser.profile b/firejail/qutebrowser.profile
new file mode 100644
index 0000000..608aff7
--- /dev/null
+++ b/firejail/qutebrowser.profile
@@ -0,0 +1,2 @@
+whitelist ~/.local/share/qutebrowser-profiles
+include /etc/firejail/qutebrowser.profile
diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf
index 3a58aea..5494a33 100644
--- a/hypr/hypridle.conf
+++ b/hypr/hypridle.conf
@@ -13,8 +13,8 @@ listener {
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
listener {
timeout = 150 # 2.5min.
- on-timeout = brightnessctl -d led::kbd_backlight set 0 # turn off keyboard backlight.
- on-resume = brightnessctl -rd led::kbd_backlight # turn on keyboard backlight.
+ on-timeout = brightnessctl -d tpacpi::kbd_backlight set 0 # turn off keyboard backlight.
+ on-resume = brightnessctl -rd tpacpi::kbd_backlight # turn on keyboard backlight.
}
listener {
diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf
index e2c8f64..3da9c12 100644
--- a/hypr/hyprland.conf
+++ b/hypr/hyprland.conf
@@ -2,7 +2,7 @@
#{{{ Monitor config
#monitor = DP-2, 1920x1080@75, 0x0, 1
#monitor = HDMI-A-1, 1920x1080@75, 1920x0, 1
-#monitor = eDP-1, 1920x1080@60, 0x0, 1
+monitor = eDP-1, 1920x1080@60, 0x0, 1
monitor = , preferred, auto, 1
#}}}
@@ -17,9 +17,9 @@ monitor = , preferred, auto, 1
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
exec-once = hyprpm reload -n
-exec-once = xdph
-exec-once = hyprpaper
-#exec-once = hypridle
+#exec-once = dinit
+#exec-once = xdph
+exec-once = dinitctl start hyprpaper.user
exec-once = waybar
exec-once = pypr
#exec-once = hyprscratch init
@@ -29,9 +29,9 @@ exec-once = import-gsettings icon-theme 'Papirus-Dark'
exec-once = import-gsettings cursor-theme 'BreezeX-Black'
exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
exec-once = xrdb -load "$XDG_CONFIG_HOME"/X11/xresources
-exec-once = com.github.wwmm.easyeffects
-exec-once = systemctl --user start dunst
-exec-once = systemctl --user start hypridle
+#exec-once = com.github.wwmm.easyeffects
+exec-once = dunst
+exec-once = hypridle
exec-once = xwayland-satellite :1
exec-once = bl-save
#exec-once = mpd
@@ -201,7 +201,7 @@ plugin {
}
hyprscrolling {
- fullscreen_on_one_column = true
+ fullscreen_on_one_column = false
column_width = 0.5
explicit_column_widths = 0.25, 0.333, 0.5, 0.667, 0.75, 1.0
focus_fit_method = 1
@@ -216,9 +216,26 @@ plugin {
# Example windowrule v2
# windowrule = float, class:^(kitty)$, title:^(kitty)$
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
-windowrulev2 = workspace special:easyeffects silent, match: class ^(com\.github\.wwmm\.easyeffects)$
+windowrule = fullscreen on, match:class ^(Xephyr)$
+windowrule = float on, match:title ^(LibreWolf - Choose User Profile)$
+windowrule = float on, match:class ^(xdg-desktop-portal-gtk)
+windowrule = float on, match:title ^(UNDERTALE)$
+windowrule = float on, match:class ^(Tk)$
+windowrule = float on, match:class ^(lxqt-policykit-agent)$
+windowrule = stay_focused on, match:title ^()$, match:class ^(steam)$
+windowrule = min_size 1 1, match:title ^()$, match:class ^(steam)$
+windowrule = stay_focused on, match:title ^(menu)$, match:class ^(yabridge-host.exe.so)$
+windowrule = min_size 1 1, match:title ^(menu)$, match:class ^(yabridge-host.exe.so)$
+windowrule = float on, match:class ^(yabridge-host.exe.so)$, match:title ^(menu)$
+windowrule = float on, match:float 0, match:title ^(menu*)
+windowrule = workspace 2, match:title ^(REAPER .*initializing.*)$
+windowrule = tile on, match:class ^(REAPER)$, match:title ^(.*REAPER v[0-9.]* - Licensed for personal/small business use)$
+windowrule = tile on, match:class ^(WebApp-Qobuz[0-9]*)$
+windowrule = float on, match:title ^(menu)$
+windowrule = move cursor -50% -50%, match:class ^(yabridge-host.exe.so)$, match:title ^(menu)$
+windowrule = workspace special:easyeffects silent, match:class ^(com\.github\.wwmm\.easyeffects)$
# Fix brave xray menus
-windowrulev2 = xray 0, match:class ^(\s*), match:title ^(\s*)$
+windowrule = xray 0, match:class ^(\s*), match:title ^(\s*)$
# Center floating XWayland windows
windowrule = center on, match:xwayland on, match:class negative:^(steam|REAPER)$
# Make Steam Big Picture Mode fullscreen
diff --git a/lf/lfrc b/lf/lfrc
index bc18f79..c70480e 100644
--- a/lf/lfrc
+++ b/lf/lfrc
@@ -2,7 +2,7 @@ set ratios 1:2:3
set previewer ~/.config/lf/previewer
set cleaner ~/.config/lf/cleaner
# Basic Settings
-set sixel true
+#set sixel true
set preview true
set drawbox false
set icons true
@@ -30,6 +30,30 @@ cmd open ${{
esac
}}
+# Override paste command
+cmd paste ${{
+ while read -r line; do
+ set -- "$@" "$line"
+ done < ~/.local/share/lf/files
+ mode="$1"
+ shift
+ case "$mode" in
+ copy)
+ echo "lf-paste in ${PWD}: rsync -av --backup -- $@ ." >> ~/.cache/lf.log
+ rsync -av --backup --progress -- "$@" . |
+ stdbuf -i0 -o0 -e0 tr '\r' '\n' |
+ while IFS= read -r line; do
+ lf -remote "send $id echo $line"
+ done
+ ;;
+ move)
+ echo "lf-paste in ${PWD}: mv -n -- $@ ." >> ~/.cache/lf.log
+ mv -n -- "$@" .;;
+ esac
+ rm ~/.local/share/lf/files
+ lf -remote "send clear"
+}}
+
cmd execute ${{ exec "$f" }}
cmd vimv ${{ exec vimv }}
@@ -391,3 +415,4 @@ map gyb cd "~/.cache/yay"
map gyc cd "~/.config/yay"
map gzs cd "~/.config/zsh"
map gzx cd "~/Documents/zachir.xyz"
+map gdr cd "~/Documents/work"
diff --git a/niri/config.kdl b/niri/config.kdl
index 8fa7330..4ef45bd 100644
--- a/niri/config.kdl
+++ b/niri/config.kdl
@@ -71,7 +71,7 @@ input {
// Find more information on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs
// Remember to uncomment the node by removing "/-"!
-/-output "eDP-1" {
+output "eDP-1" {
// Uncomment this line to disable this output.
//off
@@ -272,8 +272,8 @@ layout {
// This line starts waybar, a commonly used bar for Wayland compositors.
spawn-at-startup "waybar"
-spawn-at-startup "hyprpaper"
-spawn-at-startup "hypridle"
+spawn-at-startup "dinitctl start hyprpaper"
+spawn-at-startup "dinitctl start hypridle"
spawn-at-startup "dunst"
spawn-at-startup "xwayland-satellite"
diff --git a/nsxiv/exec/key-handler b/nsxiv/exec/key-handler
index 53099e4..e653dd6 100755
--- a/nsxiv/exec/key-handler
+++ b/nsxiv/exec/key-handler
@@ -10,7 +10,7 @@ while read file; do
magick "$file" ~/Pictures/background.png
;;
esac
- t -r hyprpaper
+ dinitctl restart hyprpaper
;;
esac
done
diff --git a/hypr/pyprland.toml b/pypr/config.toml
index 3110ba5..3110ba5 100644
--- a/hypr/pyprland.toml
+++ b/pypr/config.toml
diff --git a/sh/functions b/sh/functions
index e7270bc..7d4cb32 100644
--- a/sh/functions
+++ b/sh/functions
@@ -191,6 +191,7 @@ zx - $XDG_DOCUMENTS_DIR/zachir.xyz
"yc") cd "$XDG_CONFIG_HOME/yay" ;;
"zs") cd "$XDG_CONFIG_HOME/zsh" ;;
"zx") cd "$XDG_DOCUMENTS_DIR/zachir.xyz" ;;
+"dr") cd "$XDG_DOCUMENTS_DIR/work" ;;
# STOPPATHS
*) echo "\"$1\" is not a known location" ;;
esac
diff --git a/waybar/config b/waybar/config
index da85cd3..6f89f64 100644
--- a/waybar/config
+++ b/waybar/config
@@ -12,7 +12,7 @@
"modules-left":[ "hyprland/workspaces", "custom/launcher", "hyprland/window"],
"modules-center":[],
- "modules-right":[ "tray", "mpd", "idle_inhibitor", "wireplumber", "cpu", "memory", "temperature#cpu", "temperature#gpu", "backlight", "network", "clock", "custom/power"],
+ "modules-right":[ "tray", "mpd", "idle_inhibitor", "wireplumber", "cpu", "memory", "battery", "temperature#cpu", "temperature#gpu", "backlight", "network", "clock", "custom/power"],
// Modules configuration
@@ -162,7 +162,8 @@
"format": "{used}G "
},
"battery": {
- "bat": "BAT0",
+ //"bat": "BAT0",
+ "weighted-average": "true",
"interval": 60,
"state": {
"warning": 30,
diff --git a/wireplumber/wireplumber.conf.d/alsa-vm.conf b/wireplumber/wireplumber.conf.d/alsa-vm.conf
new file mode 100644
index 0000000..22ca815
--- /dev/null
+++ b/wireplumber/wireplumber.conf.d/alsa-vm.conf
@@ -0,0 +1,17 @@
+# ALSA node property overrides for HDMI output
+
+monitor.alsa.rules = [
+ # Generic PCI cards on any VM type
+ {
+ matches = [
+ { node.name = "~alsa_output.*" }
+ ]
+ actions = {
+ update-props = {
+ audio.format = "S16LE"
+ audio.channels = 2
+ audio.position = "FR,FL"
+ }
+ }
+ }
+]