theme switcher gui
This commit is contained in:
@@ -11,4 +11,4 @@ $network-tray = nm-applet
|
|||||||
$bluetooth-tray = blueman-applet
|
$bluetooth-tray = blueman-applet
|
||||||
$clipboardManager = cliphist
|
$clipboardManager = cliphist
|
||||||
$clipboardManagerOptions = list | $appMenu -dmenu | cliphist decode | wl-copy
|
$clipboardManagerOptions = list | $appMenu -dmenu | cliphist decode | wl-copy
|
||||||
|
$themeSwitcher = ~/.config/scripts/rofiSelectWallpaper.sh
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ bind = $mainMod, B, exec, $browser
|
|||||||
bind = $mainMod, A, exec, pidof $appMenu || $appMenu $appMenuOptions
|
bind = $mainMod, A, exec, pidof $appMenu || $appMenu $appMenuOptions
|
||||||
bind = $mainMod, W, exec, pidof $appMenu || $appMenu $windowMenuOptions
|
bind = $mainMod, W, exec, pidof $appMenu || $appMenu $windowMenuOptions
|
||||||
|
|
||||||
|
bind = $mainMod CTRL, T, exec, $themeSwitcher
|
||||||
|
|
||||||
bind = $mainMod, BackSpace, exec, pidof $logoutMenu || $logoutMenu $logoutMenuOptions
|
bind = $mainMod, BackSpace, exec, pidof $logoutMenu || $logoutMenu $logoutMenuOptions
|
||||||
|
|
||||||
bind=$mainMod CTRL,C,exec,pidof $clipboardManager || $clipboardManager $clipboardManagerOptions
|
bind=$mainMod CTRL,C,exec,pidof $clipboardManager || $clipboardManager $clipboardManagerOptions
|
||||||
@@ -67,10 +69,10 @@ bind = $mainMod CTRL, underscore, movetoworkspacesilent, 8
|
|||||||
bind = $mainMod CTRL, ccedilla, movetoworkspacesilent, 9
|
bind = $mainMod CTRL, ccedilla, movetoworkspacesilent, 9
|
||||||
bind = $mainMod CTRL, S, movetoworkspacesilent, special
|
bind = $mainMod CTRL, S, movetoworkspacesilent, special
|
||||||
|
|
||||||
bind = , Print, exec, eval hyprshot -m output -m $($HOME/.config/hypr/getActiveMonitor.sh) --clipboard-only
|
bind = , Print, exec, eval hyprshot -m output -m $($HOME/.config/scripts/getActiveMonitor.sh) --clipboard-only
|
||||||
bind = SHIFT, Print, exec, hyprshot --mode=window --clipboard-only
|
bind = SHIFT, Print, exec, hyprshot --mode=window --clipboard-only
|
||||||
bind = CTRL, Print, exec, hyprshot --mode=region --clipboard-only
|
bind = CTRL, Print, exec, hyprshot --mode=region --clipboard-only
|
||||||
bind = $mainMod, Print, exec, eval hyprshot -m output -m $($HOME/.config/hypr/getActiveMonitor.sh)
|
bind = $mainMod, Print, exec, eval hyprshot -m output -m $($HOME/.config/scripts/getActiveMonitor.sh)
|
||||||
bind = $mainMod SHIFT, Print, exec, hyprshot --mode=window
|
bind = $mainMod SHIFT, Print, exec, hyprshot --mode=window
|
||||||
bind = $mainMod CTRL, Print, exec, hyprshot --mode=region
|
bind = $mainMod CTRL, Print, exec, hyprshot --mode=region
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
exec-once = swww img ~/.config/assets/wallpaper/purple-wallpaper.jpg --transition-duration 1 --transition-type grow --transition-fps 60 --transition-pos 0.5,0.9
|
exec-once = swww img ~/.config/assets/wallpaper/purple-wallpaper.jpg --transition-duration 1 --transition-type grow --transition-fps 60 --transition-pos 0.5,0.9
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
swww img --transition-duration 1 --transition-type grow --transition-fps 60 --transition-pos 0.5,0.9 $1
|
|
||||||
if [ -z $2 ]; then
|
|
||||||
matugen image $1 -m dark
|
|
||||||
else
|
|
||||||
matugen image $1 -m $2
|
|
||||||
fi
|
|
||||||
sed -i "s_\~.*--transition-duration_$1 --transition-duration_" ~/.config/hypr/lastWallpaper.conf
|
|
||||||
sed -i "s_/\w*/\w*_\~_" ~/.config/hypr/lastWallpaper.conf
|
|
||||||
4
.config/scripts/rofiSelectWallpaper.sh
Executable file
4
.config/scripts/rofiSelectWallpaper.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
availablewallpaper=$(ls ~/.config/assets/wallpaper/)
|
||||||
|
availablewallpaper=$(sed "s_ _\n_g" <<<$availablewallpaper)
|
||||||
|
chosenwallpaper=$(echo $availablewallpaper | sed "s_ _\n_g" | rofi -dmenu)
|
||||||
|
~/.config/scripts/set-wallpaper.sh ~/.config/assets/wallpaper/$chosenwallpaper
|
||||||
10
.config/scripts/set-wallpaper.sh
Executable file
10
.config/scripts/set-wallpaper.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
swww img --transition-duration 1 --transition-type grow --transition-fps 60 --transition-pos 0.5,0.9 $1
|
||||||
|
if [ -z $2 ]; then
|
||||||
|
matugen image $1 -m dark
|
||||||
|
else
|
||||||
|
matugen image $1 -m $2
|
||||||
|
fi
|
||||||
|
wallpapername=$(sed "s_-wallpaper\.\w*__" <<<$(sed "s_.*wallpaper/__" <<<"$1"))
|
||||||
|
wallpaperextension=$(sed "s_.*-wallpaper\.__" <<<"$1")
|
||||||
|
wallpaper=$wallpapername-wallpaper.$wallpaperextension
|
||||||
|
sed -i "s_wallpaper/[^ ]*\.\w*_wallpaper/${wallpaper}_" ~/.config/hypr/lastWallpaper.conf
|
||||||
Reference in New Issue
Block a user