This commit is contained in:
Stephan Raabe 2024-05-15 17:42:32 +02:00
parent e1e9431555
commit 27646d04c5
6 changed files with 38 additions and 0 deletions

View File

@ -16,4 +16,5 @@ packagesYay=(
"wlogout"
"nwg-look"
"eww"
"hyprshade"
);

View File

@ -1,5 +1,12 @@
#!/bin/bash
# Remove blueman
if [[ $(_isInstalledPacman "blueman") == 0 ]]; then
sudo pacman --noconfirm -Rns blueman
echo ":: blueman removed"
echo
fi
# Remove Rofi Calc
if [[ $(_isInstalledPacman "rofi-calc") == 0 ]]; then
sudo pacman --noconfirm -Rns rofi-calc

6
.settings/hyprshade.sh Normal file
View File

@ -0,0 +1,6 @@
# Define the hyprshade filter
# - blue-light-filter
# - vibrance
# - off
# get available filters with hyprshade ls
hyprshade_filter="blue-light-filter"

View File

@ -6,6 +6,8 @@ https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.9
- Directory for wallpapers can be customized with new .settings/wallpaper-folder.sh
- Added hyprpicker and Keybinding SUPER+CTRL+P
- Replaced blueman with overskride to manage bluetooth devices
- Screen shading possible with hyprshade. SUPER+SHIFT+S to toggle the hyprshade. The filter can be defined in ~/dotfiles/.settings/hyprshade.sh
For auto-activation at a dedicated time please set the filter to off and follow the instructions here https://github.com/loqusion/hyprshade
Version 2.9
https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.9

View File

@ -45,6 +45,7 @@ bind = $mainMod, V, exec, ~/dotfiles/scripts/cliphist.sh
bind = $mainMod CTRL, T, exec, ~/dotfiles/waybar/themeswitcher.sh
bind = $mainMod CTRL, S, exec, ~/dotfiles/apps/ML4W_Dotfiles_Settings-x86_64.AppImage
bind = $mainMod CTRL, P, exec, hyprpicker -a
bind = $mainMod SHIFT, S, exec, ~/dotfiles/hypr/scripts/hyprshade.sh
# Workspaces
bind = $mainMod, 1, workspace, 1

21
hypr/scripts/hyprshade.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
hyprshade_filter="blue-light-filter"
if [ -f ~/dotfiles/.settings/hyprshade.sh ] ;then
source ~/dotfiles/.settings/hyprshade.sh
fi
if [ "$hyprshade_filter" != "off" ] ;then
if [ -z $(hyprshade current) ] ;then
echo ":: hyprshade is not running"
hyprshade on $hyprshade_filter
echo ":: hyprshade started with $(hyprshade current)"
else
echo ":: Current hyprshade $(hyprshade current)"
echo ":: Switching hyprshade off"
hyprshade off
fi
else
if [ -z $(hyprshade current) ] ;then
hyprshade off
fi
echo ":: hyprshade turned off"
fi