From d21f6db257ed793ce9fa427c7f0d43936c8d5d15 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 2 Mar 2024 00:32:40 +0100 Subject: [PATCH] Updated config --- .config/alacritty/alacritty.toml | 2 +- .config/hypr/environment.conf | 22 +++++++--- .config/hypr/general.conf | 2 +- .config/hypr/hyprland.conf | 2 +- .config/hypr/hyprlock.conf | 43 +++++++++++++++++++ .config/hypr/keys.conf | 3 +- .config/hypr/programs.conf | 6 +-- .config/hypr/rules.conf | 1 + .config/nvim/lazy-lock.json | 5 +-- .../{plugins => disabled}/multi-cursor.lua | 0 .config/nvim/lua/plugins/notify.lua | 1 + .config/nvim/lua/plugins/telescope.lua | 2 + .config/nvim/lua/plugins/tree.lua | 6 +-- .config/vscode/settings.json | 1 + .config/waybar/config | 8 ++-- .config/waybar/style.css | 6 +-- 16 files changed, 81 insertions(+), 29 deletions(-) create mode 100644 .config/hypr/hyprlock.conf rename .config/nvim/lua/{plugins => disabled}/multi-cursor.lua (100%) diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index b654d98..8fc7512 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -43,6 +43,6 @@ action = "ToggleFullscreen" key = "F11" [window] -opacity = 1 +opacity = 0.9 #decorations = "none" #startup_mode = "Maximized" diff --git a/.config/hypr/environment.conf b/.config/hypr/environment.conf index c157b71..b78dc08 100644 --- a/.config/hypr/environment.conf +++ b/.config/hypr/environment.conf @@ -1,13 +1,25 @@ # Some default env vars. env = XCURSOR_SIZE,24 +env = TERMINAL,$terminal + +# Firefox +env = MOZ_ENABLE_WAYLAND,1 + +# Nvidia +env = LIBVA_DRIVER_NAME,nvidia +env = GBM_BACKEND,nvidia-drm +env = __GLX_VENDOR_LIBRARY_NAME,nvidia +env = WLR_NO_HARDWARE_CURSORS,1 + +# Qt +env = QT_QPA_PLATFORM,wayland env = QT_QPA_PLATFORMTHEME,qt6ct +env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 # SSH env = SSH_AUTH_SOCK,$XDG_RUNTIME_DIR/gcr/ssh -# Nvidia -env = LIBVA_DRIVER_NAME,nvidia +# Wayland env = XDG_SESSION_TYPE,wayland -env = GBM_BACKEND,nvidia-drm -env = __GLX_VENDOR_LIBRARY_NAME,nvidia -env = WLR_NO_HARDWARE_CURSORS,1 +env = GDK_BACKEND,wayland +env = SDL_VIDEODRIVER,wayland diff --git a/.config/hypr/general.conf b/.config/hypr/general.conf index b3f4c83..bb1c46a 100644 --- a/.config/hypr/general.conf +++ b/.config/hypr/general.conf @@ -27,7 +27,7 @@ input { } decoration { - rounding = 10 + rounding = 8 blur { enabled = true diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 4e5d03b..283158b 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,6 +1,6 @@ source = monitor.conf -source = environment.conf source = programs.conf +source = environment.conf source = autostart.conf source = general.conf source = rules.conf diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf new file mode 100644 index 0000000..88e2f85 --- /dev/null +++ b/.config/hypr/hyprlock.conf @@ -0,0 +1,43 @@ +background { + monitor = + path = $HOME/pictures/wallpapers/lockscreen.png + color = rgba(25, 20, 20, 1.0) + + blur_passes = 4 + blur_size = 2 + noise = 0.0117 + contrast = 0.8916 + brightness = 0.8172 + vibrancy = 0.1696 + vibrancy_darkness = 0.0 +} + +input-field { + monitor = + size = 200, 50 + outline_thickness = 1 + dots_size = 0.2 # 0.2 - 0.8 + dots_spacing = 0.15 # 0.0 - 1.0 + dots_center = true + outer_color = rgb(000000) + inner_color = rgb(200, 200, 200) + font_color = rgb(10, 10, 10) + fade_on_empty = true + placeholder_text = Input Password... + hide_input = false + position = 0, -20 + halign = center + valign = center +} + +label { + monitor = + text = Enter your password to unlock + color = rgba(200, 200, 200, 1.0) + font_size = 24 + font_family = Ubuntu Nerd Font + + position = 0, 200 + halign = center + valign = center +} diff --git a/.config/hypr/keys.conf b/.config/hypr/keys.conf index ee6c449..a77c53a 100644 --- a/.config/hypr/keys.conf +++ b/.config/hypr/keys.conf @@ -5,7 +5,8 @@ $movews = CTRL ALT bind = $leader, T, exec, $terminal bind = $leader, B, exec, $browser bind = $leader, E, exec, $files -bind = $leader, R, exec, $menu +bind = $leader, Super_L, exec, $menu +bind = $leader, L, exec, hyprlock # Screenshot bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copy diff --git a/.config/hypr/programs.conf b/.config/hypr/programs.conf index 65e9c8c..4a1fc2d 100644 --- a/.config/hypr/programs.conf +++ b/.config/hypr/programs.conf @@ -1,6 +1,6 @@ -$terminal = alacritty $browser = firefox -$files = nautilus -$menu = fuzzel $editor = code $email = geary +$files = nautilus +$menu = ~/.bin/toggle-fuzzel +$terminal = alacritty diff --git a/.config/hypr/rules.conf b/.config/hypr/rules.conf index af370c0..bb410ba 100644 --- a/.config/hypr/rules.conf +++ b/.config/hypr/rules.conf @@ -1 +1,2 @@ +windowrulev2 = tile, class:.* windowrulev2 = suppressevent maximize, class:.* diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index e84e5bf..16f144c 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -4,17 +4,16 @@ "gitsigns.nvim": { "branch": "main", "commit": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" }, "lazy.nvim": { "branch": "main", "commit": "aedcd79811d491b60d0a6577a9c1701063c2a609" }, "mini.completion": { "branch": "main", "commit": "0cf6c4e257b5e8189ac6b3ffa2064a319c4eb8a8" }, - "multiple-cursors.nvim": { "branch": "main", "commit": "9cd1b9204a3862332eaa96d08ef125de5b44bef8" }, "neodev.nvim": { "branch": "main", "commit": "84e0290f5600e8b89c0dfcafc864f45496a53400" }, "noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" }, "nui.nvim": { "branch": "main", "commit": "c3c7fd618dcb5a89e443a2e1033e7d11fdb0596b" }, "nvim-lspconfig": { "branch": "master", "commit": "9553725789be682ecd945a527ec552e489ea8534" }, "nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" }, "nvim-tree.lua": { "branch": "master", "commit": "d52fdeb0a300ac42b9cfa65ae0600a299f8e8677" }, - "nvim-treesitter": { "branch": "master", "commit": "62b0bb4f24ad09f535efe44cc9d088f90dcd2498" }, + "nvim-treesitter": { "branch": "master", "commit": "c2a265156d5799adbd9f9e7d5385735fa5d21776" }, "nvim-web-devicons": { "branch": "master", "commit": "0bb67ef952ea3eb7b1bac9c011281471d99a27bc" }, "onedark.nvim": { "branch": "master", "commit": "1230aaf2a427b2c5b73aba6e4a9a5881d3e69429" }, "plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" }, "telescope-project.nvim": { "branch": "master", "commit": "1aaf16580a614601a7f7077d9639aeb457dc5559" }, - "telescope.nvim": { "branch": "master", "commit": "5f5fc3aa75e9fc824d4fbbb5de31f172b43f620d" } + "telescope.nvim": { "branch": "master", "commit": "aa83606299c5beeaf80e656efbf07bde258db7be" } } \ No newline at end of file diff --git a/.config/nvim/lua/plugins/multi-cursor.lua b/.config/nvim/lua/disabled/multi-cursor.lua similarity index 100% rename from .config/nvim/lua/plugins/multi-cursor.lua rename to .config/nvim/lua/disabled/multi-cursor.lua diff --git a/.config/nvim/lua/plugins/notify.lua b/.config/nvim/lua/plugins/notify.lua index 0be5d6b..d80c307 100644 --- a/.config/nvim/lua/plugins/notify.lua +++ b/.config/nvim/lua/plugins/notify.lua @@ -3,6 +3,7 @@ return { event = "VeryLazy", opts = { background_colour = "#000000", + timeout = 0, }, config = true, } diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index 8b02e19..8df02c8 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua @@ -18,6 +18,8 @@ return { [""] = require("telescope.actions").close, }, }, + prompt_prefix = " ", + selection_caret = " ", }, extensions = { project = { diff --git a/.config/nvim/lua/plugins/tree.lua b/.config/nvim/lua/plugins/tree.lua index 35102b7..b97f63d 100644 --- a/.config/nvim/lua/plugins/tree.lua +++ b/.config/nvim/lua/plugins/tree.lua @@ -23,10 +23,6 @@ local function on_attach(bufnr) api.node.open.edit() api.tree.focus() - -- local node = api.tree.get_node_under_cursor() - -- if node.nodes ~= nil then - -- api.node.open.edit() - -- end end, 10) end, opts("Open folder/file")) end @@ -70,7 +66,7 @@ return { update_root = false, }, view = { - width = 35, + width = 30, }, }, config = true, diff --git a/.config/vscode/settings.json b/.config/vscode/settings.json index c7f2c79..10d07cd 100644 --- a/.config/vscode/settings.json +++ b/.config/vscode/settings.json @@ -14,6 +14,7 @@ "editor.scrollbar.verticalScrollbarSize": 0, "editor.scrollBeyondLastLine": false, "editor.showFoldingControls": "never", + "explorer.compactFolders": false, "explorer.confirmDelete": false, "explorer.openEditors.visible": 1, "files.insertFinalNewline": false, diff --git a/.config/waybar/config b/.config/waybar/config index b476733..80d8f06 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -1,8 +1,8 @@ { "layer": "top", "modules-left": ["custom/launcher","hyprland/workspaces"], - "modules-center": [], - "modules-right": ["mpris","wireplumber","cpu","memory","network","disk","clock"], + "modules-center": ["clock"], + "modules-right": ["mpris","wireplumber","cpu","memory","network","disk"], "clock": { "interval": 60, "format": "{:%a %H:%M}", @@ -10,12 +10,12 @@ }, "cpu": { "interval": 2, - "format": " {}%", + "format": " {usage}%", "max-length": 10 }, "memory": { "interval": 2, - "format": "󰍜 {}%", + "format": "󰍜 {used} GiB", "max-length": 10 }, "network": { diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 949aa18..620a194 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -1,9 +1,8 @@ * { border: none; - border-radius: 10; + border-radius: 8px; font-family: "Ubuntu Nerd Font"; font-size: 16px; - min-height: 10px; } window#waybar { @@ -18,7 +17,6 @@ window#waybar.hidden { margin-top: 6px; padding-left: 10px; padding-right: 10px; - border-radius: 10px; transition: none; color: transparent; background: transparent; @@ -37,7 +35,6 @@ window#waybar.hidden { padding-left: 10px; padding-right: 10px; margin-bottom: 0px; - border-radius: 10px; transition: none; } @@ -87,7 +84,6 @@ window#waybar.hidden { margin-left: 8px; padding-left: 10px; padding-right: 5px; - border-radius: 10px; transition: none; color: #89DCEB; background: transparent;