Added wait for system tray on start
- Close applications before shutdown/logout/reboot - Fixed battery check script - Always display hidden files in ranger TODO: - Wait for logout/shutdown/reboot until all applications are closed (timeout)
This commit is contained in:
@@ -3,8 +3,6 @@ eww open bar1
|
|||||||
eww open bar2
|
eww open bar2
|
||||||
eww open bar3
|
eww open bar3
|
||||||
|
|
||||||
indicator-mic-cam & disown
|
|
||||||
|
|
||||||
## Waybar auto update (requires inotifytools)
|
## Waybar auto update (requires inotifytools)
|
||||||
# CONFIG_FILES="$HOME/.config/waybar/config $HOME/.config/waybar/style.css"
|
# CONFIG_FILES="$HOME/.config/waybar/config $HOME/.config/waybar/style.css"
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -8,10 +8,12 @@ if [ -z $bat ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
per=$(upower -i $bat | grep percentage | awk '{print $2}')
|
upower=$(upower -i $bat)
|
||||||
|
state=$(echo "$upower" | grep state | awk '{print $2}')
|
||||||
|
per=$(echo "$upower" | grep percentage | awk '{print $2}')
|
||||||
per="${per%\%}"
|
per="${per%\%}"
|
||||||
|
|
||||||
if "$per" -lt 15 #&& ! is_charging
|
if [ "$per" -lt 15 ] && [ "$state" != "charging" ]; then
|
||||||
eww open battery_warning
|
eww open battery_warning
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
5
.config/hypr/scripts/close_apps.sh
Executable file
5
.config/hypr/scripts/close_apps.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
HYPRCMDS=$(hyprctl -j clients | jq -j '.[] | "dispatch closewindow address:\(.address); "')
|
||||||
|
|
||||||
|
hyprctl --batch "$HYPRCMDS" >> /tmp/hypr/cexit.log 2>&1
|
||||||
13
.config/hypr/scripts/wait_for_tray.sh
Executable file
13
.config/hypr/scripts/wait_for_tray.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
program_name="eww"
|
||||||
|
|
||||||
|
check_program_running() {
|
||||||
|
pgrep -x "$program_name" > /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
while ! check_program_running; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
sleep 1
|
||||||
@@ -1,13 +1,16 @@
|
|||||||
|
exec-once = ~/.config/hypr/scripts/bar.sh #Has to be first -> Systray
|
||||||
|
|
||||||
## Programms
|
## Programms
|
||||||
exec-once = discord
|
exec-once = ~/.config/hypr/scripts/wait_for_tray.sh && discord
|
||||||
exec-once = youtube-music
|
exec-once = ~/.config/hypr/scripts/wait_for_tray.sh && nextcloud
|
||||||
|
exec-once = ~/.config/hypr/scripts/wait_for_tray.sh && youtube-music
|
||||||
|
|
||||||
exec-once = swaync
|
exec-once = swaync
|
||||||
exec = hyprshade auto
|
|
||||||
exec-once = nm-applet
|
exec-once = nm-applet
|
||||||
exec-once = blueman-applet
|
exec-once = blueman-applet
|
||||||
|
exec-once = hyprshade auto
|
||||||
exec-once = playerctld daemon
|
exec-once = playerctld daemon
|
||||||
exec-once = ~/.config/hypr/scripts/bar.sh
|
exec-once = indicator-mic-cam
|
||||||
exec-once = ~/.config/hypr/scripts/idle.sh
|
exec-once = ~/.config/hypr/scripts/idle.sh
|
||||||
exec-once = ~/.config/hypr/scripts/battery_check.sh
|
exec-once = ~/.config/hypr/scripts/battery_check.sh
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ set column_ratios 1,3,4
|
|||||||
set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$
|
set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$
|
||||||
|
|
||||||
# Show hidden files? You can toggle this by typing 'zh'
|
# Show hidden files? You can toggle this by typing 'zh'
|
||||||
set show_hidden false
|
set show_hidden true
|
||||||
|
|
||||||
# Ask for a confirmation when running the "delete" command?
|
# Ask for a confirmation when running the "delete" command?
|
||||||
# Valid values are "always", "never", "multiple" (default)
|
# Valid values are "always", "never", "multiple" (default)
|
||||||
@@ -71,7 +71,7 @@ set vcs_backend_svn disabled
|
|||||||
set vcs_msg_length 50
|
set vcs_msg_length 50
|
||||||
|
|
||||||
# Use one of the supported image preview protocols
|
# Use one of the supported image preview protocols
|
||||||
set preview_images false
|
set preview_images true
|
||||||
|
|
||||||
# Set the preview image method. Supported methods:
|
# Set the preview image method. Supported methods:
|
||||||
#
|
#
|
||||||
@@ -114,7 +114,7 @@ set preview_images false
|
|||||||
# Preview images in full color with the external command "ueberzug".
|
# Preview images in full color with the external command "ueberzug".
|
||||||
# Images are shown by using a child window.
|
# Images are shown by using a child window.
|
||||||
# Only for users who run X11 in GNU/Linux.
|
# Only for users who run X11 in GNU/Linux.
|
||||||
set preview_images_method w3m
|
set preview_images_method kitty
|
||||||
|
|
||||||
# Delay in seconds before displaying an image with the w3m method.
|
# Delay in seconds before displaying an image with the w3m method.
|
||||||
# Increase it in case of experiencing display corruption.
|
# Increase it in case of experiencing display corruption.
|
||||||
|
|||||||
@@ -6,19 +6,19 @@
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
"label" : "reboot",
|
"label" : "reboot",
|
||||||
"action" : "systemctl reboot",
|
"action" : "~/.config/hypr/scripts/close_apps.sh && systemctl reboot",
|
||||||
"text" : "Reboot",
|
"text" : "Reboot",
|
||||||
"keybind" : "r"
|
"keybind" : "r"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"label" : "shutdown",
|
"label" : "shutdown",
|
||||||
"action" : "systemctl poweroff",
|
"action" : "~/.config/hypr/scripts/close_apps.sh && systemctl poweroff",
|
||||||
"text" : "Shutdown",
|
"text" : "Shutdown",
|
||||||
"keybind" : "s"
|
"keybind" : "s"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"label" : "logout",
|
"label" : "logout",
|
||||||
"action" : "hyprctl dispatch exit 0",
|
"action" : "~/.config/hypr/scripts/close_apps.sh && hyprctl dispatch exit ",
|
||||||
"text" : "Logout",
|
"text" : "Logout",
|
||||||
"keybind" : "e"
|
"keybind" : "e"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
|
obsidian
|
||||||
|
nextcloud-client
|
||||||
brave-bin
|
brave-bin
|
||||||
discord
|
discord
|
||||||
youtube-music
|
youtube-music
|
||||||
mpv
|
mpv
|
||||||
waypaper-git
|
|
||||||
galculator
|
galculator
|
||||||
pavucontrol
|
pavucontrol
|
||||||
vscodium
|
vscodium
|
||||||
|
waypaper-git
|
||||||
|
yt-dlp
|
||||||
#thunar
|
#thunar
|
||||||
#dolphin
|
#dolphin
|
||||||
#qt5-imageformats
|
#qt5-imageformats
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ cliphist
|
|||||||
wl-clipboard
|
wl-clipboard
|
||||||
polkit-kde-agent
|
polkit-kde-agent
|
||||||
xdg-desktop-portal-hyprland
|
xdg-desktop-portal-hyprland
|
||||||
|
gnome-keyring
|
||||||
|
|
||||||
# Pipewire
|
# Pipewire
|
||||||
pipewire
|
pipewire
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ RebootCommand=/usr/bin/systemctl reboot
|
|||||||
Current=catppuccin-macchiato
|
Current=catppuccin-macchiato
|
||||||
|
|
||||||
# Cursor size used in the greeter
|
# Cursor size used in the greeter
|
||||||
CursorSize=
|
CursorSize=24
|
||||||
|
|
||||||
# Cursor theme used in the greeter
|
# Cursor theme used in the greeter
|
||||||
CursorTheme=
|
CursorTheme=Breeze
|
||||||
|
|
||||||
# Number of users to use as threshold
|
# Number of users to use as threshold
|
||||||
# above which avatars are disabled
|
# above which avatars are disabled
|
||||||
@@ -58,7 +58,7 @@ EnableAvatars=true
|
|||||||
FacesDir=/usr/share/sddm/faces
|
FacesDir=/usr/share/sddm/faces
|
||||||
|
|
||||||
# Font used in the greeter
|
# Font used in the greeter
|
||||||
Font=
|
Font=FiraCode Nerd Font Regular 12
|
||||||
|
|
||||||
# Theme directory path
|
# Theme directory path
|
||||||
ThemeDir=/usr/share/sddm/themes
|
ThemeDir=/usr/share/sddm/themes
|
||||||
|
|||||||
Reference in New Issue
Block a user