This commit is contained in:
Stephan Raabe 2024-05-30 14:05:19 +02:00
parent 6304aea7d5
commit 6e0bacd4f6
17 changed files with 126 additions and 49 deletions

View File

@ -1 +1 @@
2.9.1RC2 2.9.1RC3

View File

@ -16,6 +16,8 @@ For auto-activation at a dedicated time please set the filter to off and follow
- Image conversions with imagemagick can be enabled for wallpapers. Right click on wallpaper module in waybar. You can add more effects in ~/dotfiles/hypr/effects/wallpaper - Image conversions with imagemagick can be enabled for wallpapers. Right click on wallpaper module in waybar. You can add more effects in ~/dotfiles/hypr/effects/wallpaper
- ChatGPT Window opens on the left screen side in floating mode - ChatGPT Window opens on the left screen side in floating mode
- New default wallpaper - New default wallpaper
- Added hypridle inhibitor waybar module to toggle screen locking with hyprlock
- Tooltips added to all waybar modules
Version 2.9 Version 2.9
https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.9 https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.9

View File

@ -1,4 +1,4 @@
# ML4W Dotfiles 2.9.1 RC2 # ML4W Dotfiles 2.9.1 RC3
An advanced configuration of Hyprland and Qtile for Arch Linux based distributions. This package includes an installation script to install and setup the required components. An advanced configuration of Hyprland and Qtile for Arch Linux based distributions. This package includes an installation script to install and setup the required components.

View File

@ -1,10 +1,25 @@
#!/bin/bash #!/bin/bash
# _ _ _ _ _
# | | | |_ _ _ __ _ __(_) __| | | ___
# | |_| | | | | '_ \| '__| |/ _` | |/ _ \
# | _ | |_| | |_) | | | | (_| | | __/
# |_| |_|\__, | .__/|_| |_|\__,_|_|\___|
# |___/|_|
#
SERVICE="hypridle" SERVICE="hypridle"
if [[ "$1" == "status" ]]; then if [[ "$1" == "status" ]]; then
sleep 1
if pgrep -x "$SERVICE" >/dev/null ;then if pgrep -x "$SERVICE" >/dev/null ;then
echo ":: $SERVICE is running" echo '{"text": "RUNNING", "class": "active", "tooltip": "Screen locking active"}'
else else
echo ":: $SERVICE is not running" echo '{"text": "NOT RUNNING", "class": "notactive", "tooltip": "Screen locking deactivated"}'
fi
fi
if [[ "$1" == "toggle" ]]; then
if pgrep -x "$SERVICE" >/dev/null ;then
killall hypridle
else
hypridle &
fi fi
fi fi

View File

@ -58,7 +58,7 @@ if [ "$updates" -gt $threshhold_red ]; then
fi fi
if [ "$updates" -gt $threshhold_green ]; then if [ "$updates" -gt $threshhold_green ]; then
printf '{"text": "%s", "alt": "%s", "tooltip": "%s Updates", "class": "%s"}' "$updates" "$updates" "$updates" "$css_class" printf '{"text": "%s", "alt": "%s", "tooltip": "Click to update your system", "class": "%s"}' "$updates" "$updates" "$updates" "$css_class"
else else
printf '{"text": "0", "alt": "0", "tooltip": "0 Updates", "class": "green"}' printf '{"text": "0", "alt": "0", "tooltip": "No updates available", "class": "green"}'
fi fi

View File

@ -61,14 +61,14 @@
"on-click": "sleep 0.1 && ~/dotfiles/eww/ml4w-sidebar/launch.sh", "on-click": "sleep 0.1 && ~/dotfiles/eww/ml4w-sidebar/launch.sh",
"on-click-right": "sleep 0.1 && ~/dotfiles/apps/ML4W_Welcome-x86_64.AppImage", "on-click-right": "sleep 0.1 && ~/dotfiles/apps/ML4W_Welcome-x86_64.AppImage",
"format": " ", "format": " ",
"tooltip": false "tooltip-format": "Open Sidebar"
}, },
// ML4W Welcome App // ML4W Welcome App
"custom/ml4w-hyprland-settings": { "custom/ml4w-hyprland-settings": {
"on-click": "~/dotfiles/apps/ML4W_Hyprland_Settings-x86_64.AppImage", "on-click": "~/dotfiles/apps/ML4W_Hyprland_Settings-x86_64.AppImage",
"format": " ", "format": " ",
"tooltip": false "tooltip-format": "ML4W Hyprland Settings"
}, },
// Empty // Empty
@ -91,20 +91,18 @@
"on-click": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh", "on-click": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh",
"on-click-right": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh d", "on-click-right": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh d",
"on-click-middle": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh w", "on-click-middle": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh w",
"tooltip": false "tooltip-format": "Clipboard Manager"
}, },
// Updates Count // Updates Count
"custom/updates": { "custom/updates": {
"format": " {}", "format": " {}",
"tooltip-format": "{}",
"escape": true, "escape": true,
"return-type": "json", "return-type": "json",
"exec": "~/dotfiles/scripts/updates.sh", "exec": "~/dotfiles/scripts/updates.sh",
"restart-interval": 60, "restart-interval": 60,
"on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/scripts/installupdates.sh", "on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/scripts/installupdates.sh",
"on-click-right": "~/dotfiles/.settings/software.sh", "on-click-right": "~/dotfiles/.settings/software.sh"
"tooltip": false
}, },
// Wallpaper // Wallpaper
@ -112,21 +110,21 @@
"format": "", "format": "",
"on-click": "~/dotfiles/hypr/scripts/wallpaper.sh select", "on-click": "~/dotfiles/hypr/scripts/wallpaper.sh select",
"on-click-right": "~/dotfiles/hypr/scripts/wallpaper-effects.sh", "on-click-right": "~/dotfiles/hypr/scripts/wallpaper-effects.sh",
"tooltip": false "tooltip-format": "Left: Select a wallpaper\nRight: Select wallpaper effect"
}, },
// Waybar Themes // Waybar Themes
"custom/waybarthemes": { "custom/waybarthemes": {
"format": "", "format": "",
"on-click": "~/dotfiles/waybar/themeswitcher.sh", "on-click": "~/dotfiles/waybar/themeswitcher.sh",
"tooltip": false "tooltip-format": "Select a waybar theme"
}, },
// Settings // Settings
"custom/settings": { "custom/settings": {
"format": "", "format": "",
"on-click": "~/dotfiles/apps/ML4W_Dotfiles_Settings-x86_64.AppImage", "on-click": "~/dotfiles/apps/ML4W_Dotfiles_Settings-x86_64.AppImage",
"tooltip": false "tooltip-format": "ML4W Dotfiles Settings"
}, },
// Keybindings // Keybindings
@ -140,21 +138,21 @@
"custom/filemanager": { "custom/filemanager": {
"format": "", "format": "",
"on-click": "~/dotfiles/.settings/filemanager.sh", "on-click": "~/dotfiles/.settings/filemanager.sh",
"tooltip": false "tooltip-format": "Open the filemanager"
}, },
// Browser Launcher // Browser Launcher
"custom/browser": { "custom/browser": {
"format": "", "format": "",
"on-click": "~/dotfiles/.settings/browser.sh", "on-click": "~/dotfiles/.settings/browser.sh",
"tooltip": false "tooltip-format": "Open the browser"
}, },
// ChatGPT Launcher // ChatGPT Launcher
"custom/chatgpt": { "custom/chatgpt": {
"format": " ", "format": " ",
"on-click": "chromium --app=https://chat.openai.com", "on-click": "chromium --app=https://chat.openai.com",
"tooltip": false "tooltip-format": "Open ChatGPT"
}, },
// Calculator // Calculator
@ -178,7 +176,7 @@
// END APPS LABEL // END APPS LABEL
"on-click": "sleep 0.2;rofi -show drun -replace", "on-click": "sleep 0.2;rofi -show drun -replace",
"on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh", "on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh",
"tooltip": false "tooltip-format": "Left: Open the application launcher\nRight: Show all keybindings"
}, },
// Rofi Application Launcher // Rofi Application Launcher
@ -186,22 +184,34 @@
"format": "", "format": "",
"on-click": "rofi -show drun -replace", "on-click": "rofi -show drun -replace",
"on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh", "on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh",
"tooltip": false "tooltip-format": "Left: Open the application launcher\nRight: Show all keybindings"
}, },
// Power Menu // Power Menu
"custom/exit": { "custom/exit": {
"format": "", "format": "",
"on-click": "wlogout", "on-click": "wlogout",
"tooltip": false "tooltip-format": "Power Menu"
}, },
// Hyprshade // Hyprshade
"custom/hyprshade": { "custom/hyprshade": {
"format": "", "format": "",
"tooltip-format": "Toggle Screen Shader",
"on-click": "sleep 0.5; ~/dotfiles/hypr/scripts/hyprshade.sh", "on-click": "sleep 0.5; ~/dotfiles/hypr/scripts/hyprshade.sh",
"on-click-right": "sleep 0.5; ~/dotfiles/hypr/scripts/hyprshade.sh rofi", "on-click-right": "sleep 0.5; ~/dotfiles/hypr/scripts/hyprshade.sh rofi"
"tooltip": false },
// Hypridle inhibitor
"custom/hypridle": {
"format": "",
"return-type": "json",
"escape": true,
"exec-on-event": true,
"interval": 60,
"exec": "~/dotfiles/hypr/scripts/hypridle.sh status",
"on-click": "~/dotfiles/hypr/scripts/hypridle.sh toggle",
"on-click-right": "hyprlock"
}, },
// Keyboard State // Keyboard State
@ -378,16 +388,5 @@
"format": "{user}", "format": "{user}",
"interval": 60, "interval": 60,
"icon": false, "icon": false,
},
// Idle Inhibator
"idle_inhibitor": {
"format": "{icon}",
"tooltip": true,
"format-icons":{
"activated": "",
"deactivated": ""
},
"on-click-right": "hyprlock"
} }
} }

View File

@ -45,9 +45,9 @@
"battery", "battery",
"network", "network",
"group/hardware", "group/hardware",
"group/settings",
"custom/cliphist", "custom/cliphist",
"idle_inhibitor", "custom/hypridle",
"custom/hyprshade",
"tray", "tray",
"custom/exit", "custom/exit",
"custom/ml4w-welcome", "custom/ml4w-welcome",

View File

@ -46,7 +46,7 @@
"network", "network",
"group/hardware", "group/hardware",
"custom/cliphist", "custom/cliphist",
"idle_inhibitor", "custom/hypridle",
"custom/hyprshade", "custom/hyprshade",
"tray", "tray",
"custom/exit", "custom/exit",

View File

@ -164,6 +164,7 @@ window#waybar.empty #window {
#custom-wallpaper, #custom-wallpaper,
#custom-system, #custom-system,
#custom-hyprshade, #custom-hyprshade,
#custom-hypridle,
#custom-waybarthemes { #custom-waybarthemes {
margin-right: 23px; margin-right: 23px;
font-size: 20px; font-size: 20px;
@ -173,10 +174,21 @@ window#waybar.empty #window {
} }
#custom-hyprshade { #custom-hyprshade {
margin-left:4px;
margin-right:12px; margin-right:12px;
} }
#custom-hypridle {
margin-right:18px;
}
#custom-hypridle.active {
color: @iconcolor;
}
#custom-hypridle.notactive {
color: #dc2f2f;
}
#custom-system { #custom-system {
margin-right:15px; margin-right:15px;
} }

View File

@ -46,7 +46,8 @@
"network", "network",
"group/hardware", "group/hardware",
"custom/cliphist", "custom/cliphist",
"idle_inhibitor", "custom/hypridle",
"custom/hyprshade",
"tray", "tray",
"custom/exit", "custom/exit",
"custom/ml4w-welcome", "custom/ml4w-welcome",

View File

@ -44,7 +44,7 @@
"network", "network",
"group/hardware", "group/hardware",
"custom/cliphist", "custom/cliphist",
"idle_inhibitor", "custom/hypridle",
"custom/hyprshade", "custom/hyprshade",
"custom/exit", "custom/exit",
"clock", "clock",

View File

@ -135,6 +135,7 @@ window#waybar.empty #window {
#custom-wallpaper, #custom-wallpaper,
#custom-system, #custom-system,
#custom-hyprshade, #custom-hyprshade,
#custom-hypridle,
#custom-waybarthemes { #custom-waybarthemes {
margin-right: 23px; margin-right: 23px;
font-size: 14px; font-size: 14px;
@ -143,10 +144,21 @@ window#waybar.empty #window {
} }
#custom-hyprshade { #custom-hyprshade {
margin-left:4px;
margin-right:12px; margin-right:12px;
} }
#custom-hypridle {
margin-right:16px;
}
#custom-hypridle.active {
color: @iconcolor;
}
#custom-hypridle.notactive {
color: #dc2f2f;
}
#custom-settings { #custom-settings {
margin-right: 15px; margin-right: 15px;
} }

View File

@ -46,7 +46,7 @@
"network", "network",
"group/hardware", "group/hardware",
"custom/cliphist", "custom/cliphist",
"idle_inhibitor", "custom/hypridle",
"custom/hyprshade", "custom/hyprshade",
"tray", "tray",
"custom/exit", "custom/exit",

View File

@ -165,6 +165,7 @@ window#waybar.empty #window {
#custom-wallpaper, #custom-wallpaper,
#custom-system, #custom-system,
#custom-hyprshade, #custom-hyprshade,
#custom-hypridle,
#custom-waybarthemes { #custom-waybarthemes {
margin-right: 23px; margin-right: 23px;
font-size: 20px; font-size: 20px;
@ -174,10 +175,21 @@ window#waybar.empty #window {
} }
#custom-hyprshade { #custom-hyprshade {
margin-left:4px;
margin-right:12px; margin-right:12px;
} }
#custom-hypridle {
margin-right:18px;
}
#custom-hypridle.active {
color: @iconcolor;
}
#custom-hypridle.notactive {
color: #dc2f2f;
}
#custom-system { #custom-system {
margin-right:15px; margin-right:15px;
} }

View File

@ -54,7 +54,7 @@
"network", "network",
"group/hardware", "group/hardware",
"custom/cliphist", "custom/cliphist",
"idle_inhibitor", "custom/hypridle",
"custom/hyprshade", "custom/hyprshade",
"tray", "tray",
"custom/exit", "custom/exit",

View File

@ -73,9 +73,21 @@
"tooltip": false "tooltip": false
}, },
// Hypridle inhibitor
"custom/hypridle": {
"format": "",
"return-type": "json",
"escape": true,
"exec-on-event": true,
"interval": 60,
"exec": "~/dotfiles/hypr/scripts/hypridle.sh status",
"on-click": "~/dotfiles/hypr/scripts/hypridle.sh toggle",
"on-click-right": "hyprlock"
},
// Updates Count // Updates Count
"custom/updates": { "custom/updates": {
"format": " {}", "format": " {}",
"tooltip-format": "{}", "tooltip-format": "{}",
"escape": true, "escape": true,
"return-type": "json", "return-type": "json",
@ -95,7 +107,7 @@
"custom/wallpaper": { "custom/wallpaper": {
"format": "", "format": "",
"on-click": "~/dotfiles/hypr/scripts/wallpaper.sh select", "on-click": "~/dotfiles/hypr/scripts/wallpaper.sh select",
"on-click-right": "~/dotfiles/hypr/scripts/wallpaper.sh", "on-click-right": "~/dotfiles/hypr/scripts/wallpaper-effects.sh",
"tooltip": false "tooltip": false
}, },
@ -291,7 +303,7 @@
// Pulseaudio // Pulseaudio
"pulseaudio": { "pulseaudio": {
// "scroll-step": 1, // %, can be a float // "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
"format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}", "format-muted": " {format_source}",

View File

@ -165,6 +165,7 @@ window#waybar.empty #window {
#custom-wallpaper, #custom-wallpaper,
#custom-system, #custom-system,
#custom-hyprshade, #custom-hyprshade,
#custom-hypridle,
#custom-waybarthemes { #custom-waybarthemes {
margin-right: 23px; margin-right: 23px;
font-size: 20px; font-size: 20px;
@ -173,10 +174,21 @@ window#waybar.empty #window {
} }
#custom-hyprshade { #custom-hyprshade {
margin-left:4px;
margin-right:12px; margin-right:12px;
} }
#custom-hypridle {
margin-right:16px;
}
#custom-hypridle.active {
color: @iconcolor;
}
#custom-hypridle.notactive {
color: #dc2f2f;
}
#custom-waybarthemes,#custom-system { #custom-waybarthemes,#custom-system {
margin-right:15px; margin-right:15px;
} }