Sync with latest
This commit is contained in:
parent
d384f0c9fa
commit
6d26cd94fc
27 changed files with 4033 additions and 39 deletions
|
@ -6,10 +6,9 @@
|
|||
"margin-top": 2,
|
||||
"margin-bottom": 0,
|
||||
"modules-left": ["hyprland/workspaces", "cpu", "memory", "network#speed"],
|
||||
"modules-center": [
|
||||
"clock"
|
||||
],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": [
|
||||
"custom/cava",
|
||||
"temperature#gpu",
|
||||
"custom/transparency",
|
||||
"custom/wallpaper",
|
||||
|
@ -26,6 +25,30 @@
|
|||
"format": "{temperatureC}°C ",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/cava": {
|
||||
// "cava_config": "$XDG_CONFIG_HOME/.config/cava/config",
|
||||
"framerate": 30,
|
||||
"autosens": 1,
|
||||
// "sensitivity": 100,
|
||||
"bars": 14,
|
||||
"lower_cutoff_freq": 50,
|
||||
"higher_cutoff_freq": 10000,
|
||||
"method": "pulse",
|
||||
"exec": "~/.config/waybar/scripts/cava.sh",
|
||||
"interval": 0.05,
|
||||
"source": "auto",
|
||||
"stereo": true,
|
||||
"reverse": false,
|
||||
"bar_delimiter": 0,
|
||||
"monstercat": false,
|
||||
"waves": false,
|
||||
"noise_reduction": 0.77,
|
||||
"input_delay": 2,
|
||||
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
|
||||
"actions": {
|
||||
"on-click-right": "mode"
|
||||
}
|
||||
},
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"scroll-step": 5,
|
||||
|
|
10
waybar/scripts/cava.sh
Executable file
10
waybar/scripts/cava.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
is_cava_ServerExist=`ps -ef|grep -m 1 cava|grep -v "grep"|wc -l`
|
||||
if [ "$is_cava_ServerExist" = "0" ]; then
|
||||
echo "cava_server not found" > /dev/null 2>&1
|
||||
# exit;
|
||||
elif [ "$is_cava_ServerExist" = "1" ]; then
|
||||
killall cava
|
||||
fi
|
||||
|
||||
cava -p ~/.config/cava/config | sed -u 's/;//g;s/0/▁/g;s/1/▂/g;s/2/▃/g;s/3/▄/g;s/4/▅/g;s/5/▆/g;s/6/▇/g;s/7/█/g;'
|
|
@ -5,7 +5,7 @@ if [ $(pgrep -c hyprpaper) -ne 0 ]; then
|
|||
killall hyprpaper
|
||||
fi
|
||||
|
||||
TARGET="$HOME/Downloads/Wallpaper"
|
||||
TARGET="$HOME/Pictures/Wallpaper"
|
||||
WALLPAPER=$(find "$TARGET" -type f -regex '.*\.\(jpg\|jpeg\|png\|webp\)' | shuf -n 1)
|
||||
|
||||
CONFIG_PATH="$HOME/.config/hypr/hyprpaper.conf"
|
||||
|
|
24
waybar/scripts/swwpaper.sh
Normal file
24
waybar/scripts/swwpaper.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Check if swww is running and kill it
|
||||
if pgrep -x "swww" > /dev/null; then
|
||||
killall swww
|
||||
fi
|
||||
|
||||
TARGET="$HOME/Pictures/Wallpaper"
|
||||
|
||||
WALLPAPER=$(find "$TARGET" -type f -iregex '.*\.\(jpg\|jpeg\|png\|webp\)' | shuf -n 1)
|
||||
|
||||
if [ -z "$WALLPAPER" ]; then
|
||||
echo "Error: No wallpapers found in $TARGET."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! pgrep -x "swww" > /dev/null; then
|
||||
swww init
|
||||
sleep 1
|
||||
fi
|
||||
|
||||
swww img $WALLPAPER --transition-type outer --transition-fps=144 --transition-duration=1
|
||||
|
||||
echo "Wallpaper set to: $WALLPAPER"
|
|
@ -13,13 +13,13 @@
|
|||
background-color: transparent;
|
||||
}
|
||||
|
||||
#custom-weather {
|
||||
margin-left: 2px;
|
||||
margin-right: 2px;
|
||||
padding: 0px 8px;
|
||||
background: @raisin-black;
|
||||
color: @beige;
|
||||
border-radius: 6px;
|
||||
#custom-cava {
|
||||
color: #8fbc8f;
|
||||
border-left: 0px;
|
||||
border-right: 0px;
|
||||
padding-bottom: 6px;
|
||||
font-family: 'bargraph';
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
|
@ -63,10 +63,6 @@ menu,
|
|||
border-radius: 6px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
border: 1px solid @beige;
|
||||
}
|
||||
|
||||
.modules-right,
|
||||
.modules-center,
|
||||
.modules-left {
|
||||
|
@ -140,7 +136,7 @@ tooltip {
|
|||
font-size: 20px;
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
padding: 0px 8px;
|
||||
margin-right: 2px;
|
||||
margin-right: 1px;
|
||||
color: #f38ba8;
|
||||
background: @raisin-black;
|
||||
border-radius: 0 6px 6px 0;
|
||||
|
@ -149,7 +145,7 @@ tooltip {
|
|||
#pulseaudio,
|
||||
#backlight {
|
||||
padding: 0 8px;
|
||||
margin: 0 2px;
|
||||
margin: 0 1px;
|
||||
color: @beige;
|
||||
border-radius: 6px 6px;
|
||||
}
|
||||
|
@ -158,6 +154,7 @@ tooltip {
|
|||
#network {
|
||||
color: #cba6f7;
|
||||
border-radius: 6px;
|
||||
margin: 0 1px;
|
||||
}
|
||||
|
||||
#network.speed {
|
||||
|
@ -187,38 +184,39 @@ tooltip {
|
|||
color: @mint;
|
||||
min-width: 30px;
|
||||
padding-left: 5px;
|
||||
margin: 0 2px;
|
||||
margin-left: 1px;
|
||||
/* margin: 0 1px; */
|
||||
padding-right: 5px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
color: #eff1f5; /* Text */
|
||||
background: #40a02b; /* Green */
|
||||
color: #33ae18; /* Text */
|
||||
background: @raisin-black;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#battery.good:not(.charging) {
|
||||
color: #f9e2af; /* Peach */
|
||||
/* background: #1e1e2e; Base */
|
||||
color: #f8d589;
|
||||
background: @raisin-black;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#battery.warning:not(.charging) {
|
||||
color: #eff1f5; /* Text */
|
||||
background: #df8e1d; /* Yellow */
|
||||
color: #e0a858; /* Text */
|
||||
background: @raisin-black;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#battery.low:not(.charging) {
|
||||
color: #eff1f5; /* Text */
|
||||
background: #d20f39; /* Red */
|
||||
color: #d20f39; /* Text */
|
||||
background: @raisin-black;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
color: #eff1f5; /* Text */
|
||||
background: #d20f39; /* Red */
|
||||
color: #d20f39; /* Text */
|
||||
background: @raisin-black;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.75s;
|
||||
animation-timing-function: linear;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue