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
|
||||
|
||||
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
||||
command_exists() {
|
||||
command -v "$@" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
pkill swaync
|
||||
|
||||
# Paths and configuration
|
||||
|
@ -28,7 +33,7 @@ initialize_modules() {
|
|||
"
|
||||
|
||||
for module in $modules; do
|
||||
if command -v "$module" >/dev/null 2>&1; then
|
||||
if command_exists "$module"; then
|
||||
log_notify "low" "$module" "Initializing..."
|
||||
case $module in
|
||||
waybar | flameshot)
|
||||
|
@ -118,12 +123,24 @@ initialize_xdg_portals() {
|
|||
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() {
|
||||
sleep 0.5
|
||||
initialize_xdg_portals
|
||||
initialize_modules
|
||||
initialize_polkit
|
||||
envS
|
||||
}
|
||||
|
||||
main
|
||||
|
|
|
@ -36,6 +36,8 @@ env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
|||
# ──────────────────────────────────────< windowrules >─────────────────────────────────────
|
||||
windowrule = workspace special:windoof, title:^(.*[Ll]ooking [Gg]lass.*)
|
||||
|
||||
$terminal = ghostty
|
||||
|
||||
# ╭────────────╮
|
||||
# │ workspaces │
|
||||
# ╰────────────╯
|
||||
|
@ -48,7 +50,7 @@ workspace = 6, monitor:DP-2
|
|||
workspace = 7, monitor:HDMI-A-1
|
||||
workspace = 8, 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
|
||||
|
||||
# ╭───────────────╮
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue