From efb61ce158ee12f93651fcc3dc2352a1d0be06d2 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Thu, 9 May 2024 12:27:34 +0700 Subject: [PATCH] all configurations --- hypr/decoration.conf | 4 ++-- hypr/environment.conf | 1 + hypr/hyprland.conf | 9 +++++++++ hypr/keyboard.conf | 3 +++ hypr/startup.conf | 2 ++ hypr/windowrules.conf | 2 ++ waybar/config | 20 +++++++++++++++++++- waybar/scripts/get-weather.sh | 18 ++++++++++++++++++ waybar/style.css | 10 +++++++++- 9 files changed, 65 insertions(+), 4 deletions(-) create mode 100755 waybar/scripts/get-weather.sh diff --git a/hypr/decoration.conf b/hypr/decoration.conf index c7133ef..f927a50 100644 --- a/hypr/decoration.conf +++ b/hypr/decoration.conf @@ -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) diff --git a/hypr/environment.conf b/hypr/environment.conf index f943bbf..5812aaa 100644 --- a/hypr/environment.conf +++ b/hypr/environment.conf @@ -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 diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 71801aa..a06c8c1 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -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 #} diff --git a/hypr/keyboard.conf b/hypr/keyboard.conf index 8d34462..7d6da62 100644 --- a/hypr/keyboard.conf +++ b/hypr/keyboard.conf @@ -12,6 +12,9 @@ input { natural_scroll = false } + repeat_rate = 50 + repeat_delay = 500 + sensitivity = 0 # -1.0 - 1.0, 0 means no modification. } # -------------------------------------------------- diff --git a/hypr/startup.conf b/hypr/startup.conf index dc9bc39..0767e81 100644 --- a/hypr/startup.conf +++ b/hypr/startup.conf @@ -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 diff --git a/hypr/windowrules.conf b/hypr/windowrules.conf index 4127a38..6775813 100644 --- a/hypr/windowrules.conf +++ b/hypr/windowrules.conf @@ -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 diff --git a/waybar/config b/waybar/config index 4373619..c6a78d0 100644 --- a/waybar/config +++ b/waybar/config @@ -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" + }, } diff --git a/waybar/scripts/get-weather.sh b/waybar/scripts/get-weather.sh new file mode 100755 index 0000000..f78645f --- /dev/null +++ b/waybar/scripts/get-weather.sh @@ -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\"}" diff --git a/waybar/style.css b/waybar/style.css index 707a0f3..149d4de 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -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; +} +