From ff6d581fa5bba706f1d39ef892c844f1b09fda3b Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 20 Jan 2025 13:47:32 +0100 Subject: [PATCH] Updated config --- .config/btop/btop.conf | 2 +- .config/environment.d/30-general.conf | 2 +- .config/fish/alias.fish | 3 ++- .config/fish/functions/f.fish | 8 ++++++ .config/hypr/autostart.conf | 6 ++--- .config/hypr/environment.conf | 10 +++++++ .config/hypr/general.conf | 39 ++++++++++++++++++++------- .config/hypr/hyprland.conf | 2 +- .config/hypr/programs.conf | 2 +- .config/hypr/rules.conf | 10 ++++++- .config/vscode/settings.json | 1 + .config/waybar/style.css | 3 ++- .config/wlogout/style.css | 14 +++++----- .init | 4 +-- 14 files changed, 77 insertions(+), 29 deletions(-) create mode 100644 .config/fish/functions/f.fish diff --git a/.config/btop/btop.conf b/.config/btop/btop.conf index baff7f3..21567d5 100644 --- a/.config/btop/btop.conf +++ b/.config/btop/btop.conf @@ -1,4 +1,4 @@ -#? Config file for btop v. 1.3.2 +#? Config file for btop v. 1.4.0 #* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. #* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" diff --git a/.config/environment.d/30-general.conf b/.config/environment.d/30-general.conf index 34d8900..c0084ac 100644 --- a/.config/environment.d/30-general.conf +++ b/.config/environment.d/30-general.conf @@ -2,4 +2,4 @@ BROWSER=firefox EDITOR=nvim LANG=en_US.UTF-8 SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket -TERMINAL=alacritty \ No newline at end of file +TERMINAL=foot \ No newline at end of file diff --git a/.config/fish/alias.fish b/.config/fish/alias.fish index 69fe6bb..86cd229 100644 --- a/.config/fish/alias.fish +++ b/.config/fish/alias.fish @@ -56,6 +56,7 @@ alias po "pacman -Qo" alias pe "pacman -Qe" alias pc "sudo pacman -Sc" alias paur "pacman -Qm" +alias pfiles "pacman -Ql" alias porphan "pacman -Qtdq" # Systemctl @@ -80,7 +81,7 @@ alias bios "systemctl reboot --firmware-setup" alias cfg "config" alias cls "clear" alias debug "blinkenlights" -alias disasm "ndisasm -b 64 -e 176" +alias disasm "ndisasm -b 64 -e 4096" alias ff "fastfetch" alias hex "hexdump -C" alias log "journalctl" diff --git a/.config/fish/functions/f.fish b/.config/fish/functions/f.fish new file mode 100644 index 0000000..651a4af --- /dev/null +++ b/.config/fish/functions/f.fish @@ -0,0 +1,8 @@ +function f + set tmp (mktemp -t "yazi-cwd.XXXXXX") + yazi $argv --cwd-file="$tmp" + if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ] + builtin cd -- "$cwd" + end + rm -f -- "$tmp" +end \ No newline at end of file diff --git a/.config/hypr/autostart.conf b/.config/hypr/autostart.conf index e40ed7a..6b20e79 100644 --- a/.config/hypr/autostart.conf +++ b/.config/hypr/autostart.conf @@ -1,4 +1,4 @@ -exec-once = waypaper --restore -exec-once = wl-paste --watch cliphist store +exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 -exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP \ No newline at end of file +exec-once = waypaper --restore +exec-once = wl-paste --watch cliphist store \ No newline at end of file diff --git a/.config/hypr/environment.conf b/.config/hypr/environment.conf index 873cad1..920e55c 100644 --- a/.config/hypr/environment.conf +++ b/.config/hypr/environment.conf @@ -9,9 +9,19 @@ env = EGL_PLATFORM,wayland env = ELECTRON_OZONE_PLATFORM_HINT,wayland env = GDK_BACKEND,wayland env = MOZ_ENABLE_WAYLAND,1 +env = PROTON_ENABLE_WAYLAND,1 env = SDL_VIDEODRIVER,wayland,x11,windows +# Load shared objects immediately +env = LD_BIND_NOW,1 + +# OpenGL +env = __GL_GSYNC_ALLOWED,1 +env = __GL_SYNC_TO_VBLANK,0 +env = __GL_VRR_ALLOWED,1 + # Vulkan +env = DXVK_ASYNC,1 env = GSK_RENDERER,vulkan # X11 diff --git a/.config/hypr/general.conf b/.config/hypr/general.conf index 7cc15bd..39e4754 100644 --- a/.config/hypr/general.conf +++ b/.config/hypr/general.conf @@ -1,27 +1,35 @@ general { gaps_in = 5 gaps_out = 10 - border_size = 1 + border_size = 2 allow_tearing = true + col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg + col.inactive_border = rgba(595959aa) } decoration { rounding = 5 - drop_shadow = true - blur:enabled = false + shadow:enabled = false + active_opacity = 0.9 + inactive_opacity = 0.9 + + blur { + enabled = true + size = 3 + passes = 6 + } } animations { animation = border, 0 animation = borderangle, 0 animation = workspaces, 0 - animation = fade, 1, 1.5, default - animation = windows, 1, 1.5, default - animation = windowsOut, 1, 1.5, default, popin 80% + animation = fade, 1, 2, default + animation = windows, 1, 2, default + animation = windowsOut, 1, 2, default, popin 80% } dwindle { - no_gaps_when_only = 1 preserve_split = yes } @@ -31,11 +39,24 @@ input { } cursor { - no_hardware_cursors = true + use_cpu_buffer = true } misc { - vrr = 1 + vrr = true + vfr = true + animate_manual_resizes = false + render_ahead_of_time = false +} + +render { + explicit_sync = 1 + explicit_sync_kms = 1 + direct_scanout = true +} + +opengl { + nvidia_anti_flicker = true } debug { diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index de6e796..7b5c983 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -5,4 +5,4 @@ source = autostart.conf source = general.conf source = rules.conf source = keys.conf -source = typing.conf +source = typing.conf \ No newline at end of file diff --git a/.config/hypr/programs.conf b/.config/hypr/programs.conf index f57199f..46fb852 100644 --- a/.config/hypr/programs.conf +++ b/.config/hypr/programs.conf @@ -1,7 +1,6 @@ # Apps $browser = firefox $email = evolution -$files = nemo $logout = wlogout $lockscreen = swaylock $menu = fuzzel @@ -12,6 +11,7 @@ $wallpaper = waypaper # Terminal based $editor = $terminal -e nvim +$files = $terminal -e yazi $center = [float;size 960 540;center] $floating = $center $terminal $systeminfo = $center $terminal --hold -e fastfetch diff --git a/.config/hypr/rules.conf b/.config/hypr/rules.conf index 78f99c7..843db0a 100644 --- a/.config/hypr/rules.conf +++ b/.config/hypr/rules.conf @@ -10,4 +10,12 @@ layerrule = ignorealpha 0.1, launcher windowrulev2 = suppressevent maximize, class:.* # Open wallpaper selector in float mode -windowrulev2 = float, class:($wallpaper) \ No newline at end of file +windowrulev2 = float, class:($wallpaper) + +# No gaps when there is a single window +# workspace = w[tv1], gapsout:0, gapsin:0 +# workspace = f[1], gapsout:0, gapsin:0 +# windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1] +# windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1] +# windowrulev2 = bordersize 0, floating:0, onworkspace:f[1] +# windowrulev2 = rounding 0, floating:0, onworkspace:f[1] \ No newline at end of file diff --git a/.config/vscode/settings.json b/.config/vscode/settings.json index 32e8b89..e8af495 100644 --- a/.config/vscode/settings.json +++ b/.config/vscode/settings.json @@ -11,6 +11,7 @@ "editor.insertSpaces": false, "editor.lineNumbers": "off", "editor.renderFinalNewline": "off", + "editor.renderLineHighlight": "none", "editor.scrollbar.vertical": "hidden", "editor.scrollbar.verticalScrollbarSize": 0, "editor.scrollBeyondLastLine": false, diff --git a/.config/waybar/style.css b/.config/waybar/style.css index a287627..2a0caf0 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -11,7 +11,8 @@ /* ===== Waybar ===== */ #waybar { - background: rgb(38, 41, 44); + background: rgba(38, 41, 44, 0.5); + /* background: transparent; */ } #waybar.hidden { diff --git a/.config/wlogout/style.css b/.config/wlogout/style.css index c3aa664..5458d6b 100644 --- a/.config/wlogout/style.css +++ b/.config/wlogout/style.css @@ -1,27 +1,25 @@ * { background-image: none; + font-family: "Ubuntu Nerd Font"; + font-size: 20px; } window { - background-color: rgba(0, 0, 0, 0.5); + background-color: rgba(0, 0, 0, 0.9); } button { - /* color: #ffffff; */ - /* background-color: rgba(255, 255, 255, 0.5); */ + background-color: rgba(0, 0, 0, 0.5); border-width: 2px; border-style: solid; border-color: rgba(255, 255, 255, 0.5); - /* border-radius: 50%; */ background-repeat: no-repeat; background-position: center; - background-size: 25%; + background-size: 10%; margin: 25px; } button:focus, button:active, button:hover { - background-color: rgba(0, 0, 0, 0.75); - outline-style: none; border-color: rgb(255, 255, 255); } @@ -44,4 +42,4 @@ button:focus, button:active, button:hover { url("/usr/share/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png") ); -} +} \ No newline at end of file diff --git a/.init b/.init index dd00309..eb99731 100755 --- a/.init +++ b/.init @@ -7,5 +7,5 @@ if test -e $GENERATOR export ($GENERATOR) end -# Start hyprland -Hyprland +# Start compositor +Hyprland \ No newline at end of file