all configurations

This commit is contained in:
wt
2024-05-09 12:27:34 +07:00
parent 11bb8fabfa
commit efb61ce158
9 changed files with 65 additions and 4 deletions
+2 -2
View File
@@ -2,14 +2,14 @@ decoration {
rounding = 10
blur {
enabled = true
enabled = false
size = 3
passes = 1
vibrancy = 0.1696
}
drop_shadow = true
drop_shadow = false
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
+1
View File
@@ -1,6 +1,7 @@
#------------- default env vars -----------------------------------------------
env = XCURSOR_SIZE,24
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
env = QT_SCALE_FACTOR,1
env = GTK_THEME,Adwaita-dark
env = HYPRCURSOR_THEME,Bibata-Modern-Ice
env = HYPRCURSOR_SIZE,24
+9
View File
@@ -22,6 +22,7 @@ general {
layout = dwindle
allow_tearing = false
#apply_sens_to_raw = 0
}
source=~/dotfiles/hypr/decoration.conf
@@ -45,6 +46,14 @@ misc {
force_default_wallpaper = -1 # Set to 0 to disable the anime mascot wallpapers
}
debug {
damage_tracking = 2
}
xwayland {
force_zero_scaling = true
}
#device:epic-mouse-v1 {
# sensitivity = -0.5
#}
+3
View File
@@ -12,6 +12,9 @@ input {
natural_scroll = false
}
repeat_rate = 50
repeat_delay = 500
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
# --------------------------------------------------
+2
View File
@@ -8,6 +8,8 @@ exec-once = lxpolkit
exec-once = gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
exec-once = gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark'
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = mako
exec-once = nm-applet --indicator
exec-once = eww daemon
+2
View File
@@ -1,10 +1,12 @@
#------------------- windowrules --------------------------------------------------
windowrulev2 = float, title: Properties
windowrulev2 = float, class: ^(thunar)$, title: ^(File Operation Progress)$
windowrulev2 = float, class: ^(thunar)$, title: ^(Confirm to replace files)$
windowrulev2 = float, class: ^(pavucontrol)$, title: ^(Volume Control)$
windowrule = float, ^(nm-connection-editor)$
windowrule = float, ^(GParted)$
windowrule = opacity 0.90, sublime
windowrule = workspace 2, firefox
windowrule = opacity 0.90, firefox
windowrule = opacity 0.80, thunar
windowrule = opacity 0.8, foot
+19 -1
View File
@@ -2,7 +2,7 @@
"layer": "top",
"height": 30,
"spacing": 4,
"modules-left": ["custom/launcher", "cpu", "memory", "temperature", "disk", "custom/weather", "hyprland/window"],
"modules-left": ["custom/launcher", "cpu", "memory", "temperature", "disk", "custom/weather", "custom/updates", "hyprland/window"],
"modules-center": ["hyprland/workspaces"],
"modules-right": ["custom/spotify", "pulseaudio", "network", "backlight", "keyboard-state", "hyprland/language", "battery", "battery#bat2", "clock", "tray", "custom/power"],
"hyprland/workspaces": {
@@ -113,5 +113,23 @@
"exec": "~/dotfiles/waybar/scripts/waybar-wttr.py",
"return-type": "json"
},
"custom/pacman": {
"format": "{} ",
"interval": 3600, // every hour
"exec": "checkupdates | wc -l", // # of updates
"exec-if": "exit 0", // always run; consider advanced run conditions
"on-click": "termite -e 'sudo pacman -Syu'; pkill -SIGRTMIN+8 waybar", // update system
"signal": 8
},
"custom/updates": {
"format": "{} {icon}",
"return-type": "json",
"format-icons": {
"has-updates": "󱍷",
"updated": "󰂪"
},
"exec-if": "which waybar-module-pacman-updates",
"exec": "waybar-module-pacman-updates --interval-seconds 5 --network-interval-seconds 300"
},
}
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
for i in {1..5}
do
text=$(curl -s "https://wttr.in/$1?format=1")
if [[ $? == 0 ]]
then
text=$(echo "$text" | sed -E "s/\s+/ /g")
tooltip=$(curl -s "https://wttr.in/$1?format=4")
if [[ $? == 0 ]]
then
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
exit
fi
fi
sleep 2
done
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"
+9 -1
View File
@@ -97,7 +97,10 @@ button {
#custom-launcher,
#mpd,
#language,
#keyboard-state {
#keyboard-state,
#custom-updatees,
#custom-weather
{
padding: 0 10px;
color: #ffffff;
/*background-color: #64727D;*/
@@ -334,3 +337,8 @@ label:focus {
margin: 0 1px;
background-color: black;
}
#custom-updates {
padding: 2px 12px;
}