wip
This commit is contained in:
parent
7fc4a62301
commit
e99c6ebc55
2 changed files with 101 additions and 82 deletions
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
||||||
|
command_exists() {
|
||||||
|
command -v "$@" >/dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
pkill swaync
|
pkill swaync
|
||||||
|
|
||||||
# Paths and configuration
|
# Paths and configuration
|
||||||
|
@ -28,7 +33,7 @@ initialize_modules() {
|
||||||
"
|
"
|
||||||
|
|
||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if command -v "$module" >/dev/null 2>&1; then
|
if command_exists "$module"; then
|
||||||
log_notify "low" "$module" "Initializing..."
|
log_notify "low" "$module" "Initializing..."
|
||||||
case $module in
|
case $module in
|
||||||
waybar | flameshot)
|
waybar | flameshot)
|
||||||
|
@ -118,12 +123,24 @@ initialize_xdg_portals() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
envS() {
|
||||||
|
terminals="ghostty wezterm kitty"
|
||||||
|
for envTerminal in "$terminals"; do
|
||||||
|
if command_exists $envTerminal; then
|
||||||
|
export HYPR_TERMINAL="$envTerminal"
|
||||||
|
log_notify "normal" "Terminal" "..is set to $envTerminal"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# Main initialization function
|
# Main initialization function
|
||||||
main() {
|
main() {
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
initialize_xdg_portals
|
initialize_xdg_portals
|
||||||
initialize_modules
|
initialize_modules
|
||||||
initialize_polkit
|
initialize_polkit
|
||||||
|
envS
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -36,6 +36,8 @@ env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||||
# ──────────────────────────────────────< windowrules >─────────────────────────────────────
|
# ──────────────────────────────────────< windowrules >─────────────────────────────────────
|
||||||
windowrule = workspace special:windoof, title:^(.*[Ll]ooking [Gg]lass.*)
|
windowrule = workspace special:windoof, title:^(.*[Ll]ooking [Gg]lass.*)
|
||||||
|
|
||||||
|
$terminal = ghostty
|
||||||
|
|
||||||
# ╭────────────╮
|
# ╭────────────╮
|
||||||
# │ workspaces │
|
# │ workspaces │
|
||||||
# ╰────────────╯
|
# ╰────────────╯
|
||||||
|
@ -48,7 +50,7 @@ workspace = 6, monitor:DP-2
|
||||||
workspace = 7, monitor:HDMI-A-1
|
workspace = 7, monitor:HDMI-A-1
|
||||||
workspace = 8, monitor:HDMI-A-1
|
workspace = 8, monitor:HDMI-A-1
|
||||||
workspace = 9, monitor:HDMI-A-1
|
workspace = 9, monitor:HDMI-A-1
|
||||||
workspace = special:magic, monitor:DP-2, on-created-empty:ghostty
|
workspace = special:magic, monitor:DP-2, on-created-empty:$terminal
|
||||||
# workspace = 0, monitor:HDMI-1
|
# workspace = 0, monitor:HDMI-1
|
||||||
|
|
||||||
# ╭───────────────╮
|
# ╭───────────────╮
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue