Updated config

This commit is contained in:
Eduard Urbach 2024-03-07 13:09:05 +01:00
parent eca02857ec
commit 7d5a2940ef
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
17 changed files with 100 additions and 85 deletions

View File

@ -0,0 +1,4 @@
XDG_CACHE_HOME=$HOME/.cache
XDG_CONFIG_HOME=$HOME/.config
XDG_DATA_HOME=$HOME/.local/share
XDG_STATE_HOME=$HOME/.local/state

View File

@ -0,0 +1,9 @@
CARGO_HOME=$XDG_DATA_HOME/cargo
CUDA_CACHE_PATH=$XDG_CACHE_HOME/nv
DOTNET_CLI_HOME=$XDG_DATA_HOME/dotnet
GOPATH=$XDG_DATA_HOME/go
GTK2_RC_FILES=$XDG_CONFIG_HOME/gtk-2.0/gtkrc
HISTFILE=$XDG_STATE_HOME/bash/history
NUGET_PACKAGES=$XDG_CACHE_HOME/nuget
RUSTUP_HOME=$XDG_DATA_HOME/rustup
W3M_DIR=$XDG_DATA_HOME/w3m

View File

@ -0,0 +1,2 @@
LANG=en_US.UTF-8
SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh

View File

@ -0,0 +1,3 @@
BROWSER=firefox
EDITOR=nvim
TERMINAL=alacritty

View File

@ -3,9 +3,7 @@ if status is-interactive
set -x LS_COLORS di=0:ln=0:so=0:pi=0:ex=0:bd=0:cd=0:su=0:sg=0:tw=0:ow=0 set -x LS_COLORS di=0:ln=0:so=0:pi=0:ex=0:bd=0:cd=0:su=0:sg=0:tw=0:ow=0
end end
set -x GOPATH $HOME/.go
set -x EDITOR nvim
set -x LANG en_US.UTF-8 set -x LANG en_US.UTF-8
fish_add_path $GOPATH/bin fish_add_path $GOPATH/bin
fish_add_path $HOME/.bin fish_add_path $HOME/.local/bin

View File

@ -42,4 +42,4 @@ SETUVAR fish_pager_color_selected_completion:\x1d
SETUVAR fish_pager_color_selected_description:\x1d SETUVAR fish_pager_color_selected_description:\x1d
SETUVAR fish_pager_color_selected_prefix:\x1d SETUVAR fish_pager_color_selected_prefix:\x1d
SETUVAR fish_prompt_pwd_dir_length:0 SETUVAR fish_prompt_pwd_dir_length:0
SETUVAR fish_user_paths:/home/eduard/\x2ego/bin\x1e/home/eduard/\x2ebin SETUVAR fish_user_paths:/home/eduard/\x2elocal/share/go/bin\x1e/home/eduard/\x2elocal/bin

View File

@ -1,4 +1,3 @@
exec-once = $statusbar
exec-once = waypaper --restore
exec-once = dunst exec-once = dunst
exec-once = waypaper --restore
exec-once = wl-paste --watch cliphist store exec-once = wl-paste --watch cliphist store

View File

@ -1,24 +1,11 @@
# Firefox # Firefox
env = MOZ_ENABLE_WAYLAND,1 env = MOZ_ENABLE_WAYLAND,1
# Nvidia
env = LIBVA_DRIVER_NAME,nvidia
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
# Programs
env = EDITOR,$editor
env = TERMINAL,$terminal
# Qt # Qt
env = QT_QPA_PLATFORM,wayland env = QT_QPA_PLATFORM,wayland
env = QT_QPA_PLATFORMTHEME,qt6ct env = QT_QPA_PLATFORMTHEME,qt6ct
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
# SSH
env = SSH_AUTH_SOCK,$XDG_RUNTIME_DIR/gcr/ssh
# Wayland # Wayland
env = XDG_SESSION_TYPE,wayland env = XDG_SESSION_TYPE,wayland
env = GDK_BACKEND,wayland env = GDK_BACKEND,wayland
@ -27,26 +14,5 @@ env = GDK_BACKEND,wayland
env = WLR_NO_HARDWARE_CURSORS,1 env = WLR_NO_HARDWARE_CURSORS,1
env = WLR_RENDERER,vulkan env = WLR_RENDERER,vulkan
# https://github.com/hyprwm/Hyprland/issues/2591
$XDG_DATA_HOME=$HOME/.local/share
$XDG_CONFIG_HOME=$HOME/.config
$XDG_STATE_HOME=$HOME/.local/state
$XDG_CACHE_HOME=$HOME/.cache
env = XDG_DATA_HOME,$XDG_DATA_HOME
env = XDG_CONFIG_HOME,$XDG_CONFIG_HOME
env = XDG_STATE_HOME,$XDG_STATE_HOME
env = XDG_CACHE_HOME,$XDG_CACHE_HOME
# Config directories
env = HISTFILE,$XDG_STATE_HOME/bash/history
env = CARGO_HOME,$XDG_DATA_HOME/cargo
env = CUDA_CACHE_PATH,$XDG_CACHE_HOME/nv
env = DOTNET_CLI_HOME,$XDG_DATA_HOME/dotnet
env = GTK2_RC_FILES,$XDG_CONFIG_HOME/gtk-2.0/gtkrc
env = NUGET_PACKAGES,$XDG_CACHE_HOME/nuget
env = RUSTUP_HOME,$XDG_DATA_HOME/rustup
env = W3M_DIR,$XDG_DATA_HOME/w3m
# X11 # X11
env = XCURSOR_SIZE,24 env = XCURSOR_SIZE,24

View File

@ -1,6 +1,6 @@
general { general {
gaps_in = 4 gaps_in = 4
gaps_out = 6 gaps_out = 8
border_size = 0 border_size = 0
@ -30,7 +30,7 @@ input {
} }
decoration { decoration {
rounding = 10 rounding = 6
blur { blur {
enabled = true enabled = true
@ -41,13 +41,13 @@ decoration {
xray = false xray = false
} }
drop_shadow = yes drop_shadow = no
shadow_range = 4 shadow_range = 4
shadow_render_power = 3 shadow_render_power = 3
col.shadow = rgba(1a1a1aee) col.shadow = rgba(1a1a1aee)
#active_opacity = 1.0 active_opacity = 0.9
#inactive_opacity = 0.75 inactive_opacity = 0.9
} }
dwindle { dwindle {

View File

@ -8,16 +8,18 @@ bind = $leader, E, exec, $files
bind = $leader, D, exec, $terminal -e $editor bind = $leader, D, exec, $terminal -e $editor
bind = $leader, L, exec, $lockscreen bind = $leader, L, exec, $lockscreen
bind = $leader, Space, exec, $menu bind = $leader, Space, exec, $menu
bind = $leader, F12, exec, $logout
bind = , Print, exec, $screenshot bind = , Print, exec, $screenshot
# Session management
bind = $leader, F11, exit,
bind = $leader, F12, exec, $logout
# Window management # Window management
bind = $leader, C, killactive, bind = $leader, C, killactive,
bind = $leader, F, fullscreen, bind = $leader, F, fullscreen,
bind = $leader, V, togglefloating, bind = $leader, V, togglefloating,
bind = $leader, P, pseudo, bind = $leader, P, pseudo,
bind = $leader, J, togglesplit, bind = $leader, J, togglesplit,
bind = $leader, M, exit,
# Move focus with leader + arrow keys # Move focus with leader + arrow keys
bind = $leader, left, movefocus, l bind = $leader, left, movefocus, l

View File

@ -1,23 +1,20 @@
{ {
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" }, "Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
"LuaSnip": { "branch": "master", "commit": "8ae1dedd988eb56441b7858bd1e8554dfadaa46d" },
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
"flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" }, "flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
"friendly-snippets": { "branch": "main", "commit": "dcd4a586439a1c81357d5b9d26319ae218cc9479" },
"gitsigns.nvim": { "branch": "main", "commit": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" }, "gitsigns.nvim": { "branch": "main", "commit": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" },
"lazy.nvim": { "branch": "main", "commit": "aedcd79811d491b60d0a6577a9c1701063c2a609" }, "lazy.nvim": { "branch": "main", "commit": "aedcd79811d491b60d0a6577a9c1701063c2a609" },
"mini.completion": { "branch": "main", "commit": "0cf6c4e257b5e8189ac6b3ffa2064a319c4eb8a8" },
"mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" }, "mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" },
"monokai.nvim": { "branch": "master", "commit": "b8bd44d5796503173627d7a1fc51f77ec3a08a63" }, "monokai.nvim": { "branch": "master", "commit": "b8bd44d5796503173627d7a1fc51f77ec3a08a63" },
"noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" }, "noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" },
"nui.nvim": { "branch": "main", "commit": "fbb139c6f14896b434d0229099e1acd863ae6bec" }, "nui.nvim": { "branch": "main", "commit": "756c59f46057cd2d43619cd3a6d4e01b2aa60295" },
"nvim-autopairs": { "branch": "master", "commit": "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" }, "nvim-autopairs": { "branch": "master", "commit": "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" },
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" }, "nvim-lspconfig": { "branch": "master", "commit": "e5e600232188ed9fb960f5df6bb06084ae8bf3ec" },
"nvim-lspconfig": { "branch": "master", "commit": "7f5cf1121f772850a30bdaf83fb448e88846aa58" },
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" }, "nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
"nvim-tree.lua": { "branch": "master", "commit": "efafd73efa9bc8c26282aed563ba0f01c7465b06" }, "nvim-tree.lua": { "branch": "master", "commit": "efafd73efa9bc8c26282aed563ba0f01c7465b06" },
"nvim-treesitter": { "branch": "master", "commit": "212b7a504cf56f85d1acc5be237261b42d7560c5" }, "nvim-treesitter": { "branch": "master", "commit": "9775d5d7c724f81acdd441e7e9edefc4514e990b" },
"nvim-web-devicons": { "branch": "master", "commit": "4adea17610d140a99c313e3f79a9dc01825d59ae" }, "nvim-web-devicons": { "branch": "master", "commit": "4adea17610d140a99c313e3f79a9dc01825d59ae" },
"plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" }, "plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
"telescope-project.nvim": { "branch": "master", "commit": "1aaf16580a614601a7f7077d9639aeb457dc5559" }, "telescope-project.nvim": { "branch": "master", "commit": "1aaf16580a614601a7f7077d9639aeb457dc5559" },
"telescope.nvim": { "branch": "master", "commit": "dc1ea28cc2a02cd1cebb9d80e967807d668f78f8" } "telescope.nvim": { "branch": "master", "commit": "dc1ea28cc2a02cd1cebb9d80e967807d668f78f8" }
} }

View File

@ -1,5 +1,6 @@
return { return {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
event = "VeryLazy",
dependencies = { dependencies = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"nvim-telescope/telescope-project.nvim", "nvim-telescope/telescope-project.nvim",
@ -42,6 +43,7 @@ return {
}) })
require("telescope").load_extension("project") require("telescope").load_extension("project")
require("telescope").load_extension("notify")
-- require("telescope").load_extension("ui-select") -- require("telescope").load_extension("ui-select")
end, end,
} }

View File

@ -1,9 +1,12 @@
-- ToggleWord -- ToggleWord
vim.api.nvim_create_user_command("ToggleWord", function() vim.api.nvim_create_user_command("ToggleWord", function()
local inverse = { local inverse = {
["horizontal"] = "vertical",
["on"] = "off",
["true"] = "false", ["true"] = "false",
["True"] = "False", ["True"] = "False",
["TRUE"] = "FALSE", ["TRUE"] = "FALSE",
["yes"] = "no",
["Yes"] = "No", ["Yes"] = "No",
["YES"] = "NO", ["YES"] = "NO",
["1"] = "0", ["1"] = "0",
@ -15,7 +18,7 @@ vim.api.nvim_create_user_command("ToggleWord", function()
['""'] = "''", ['""'] = "''",
["+"] = "-", ["+"] = "-",
["==="] = "!==", ["==="] = "!==",
["=="] = "!=" ["=="] = "!=",
} }
vim.tbl_add_reverse_lookup(inverse) vim.tbl_add_reverse_lookup(inverse)

View File

@ -1,21 +1,25 @@
{ {
"layer": "top", "layer": "top",
"position": "bottom", "position": "top",
"modules-left": [ "modules-left": [
"hyprland/workspaces", "hyprland/workspaces",
"hyprland/window",
], ],
"modules-center": [], "modules-center": [],
"modules-right": [ "modules-right": [
"custom/updates", "custom/updates",
"wireplumber",
"clock",
],
"group/hardware": {
"orientation": "horizontal",
"modules": [
"cpu", "cpu",
"custom/gpu", "custom/gpu",
"memory", "memory",
"disk", "disk",
"network#up", "network#up",
"network#down", "network#down",
"wireplumber",
"clock",
], ],
},
"include": "~/.config/waybar/modules.jsonc", "include": "~/.config/waybar/modules.jsonc",
} }

View File

@ -1,21 +1,21 @@
{ {
"clock": { "clock": {
"interval": 60, "interval": 60,
"format": "<span color='#ffffff7f'></span> {:%H : %M}", "format": "<span color='#0000007f'> </span> {:%H : %M}",
"tooltip-format": "{:%A, %Y-%m-%d}", "tooltip-format": "{:%A, %Y-%m-%d}",
"on-click": "gnome-clocks", "on-click": "gnome-clocks",
"on-click-right": "date -u +'%Y-%m-%dT%H:%M:%SZ' | wl-copy", "on-click-right": "date -u +'%Y-%m-%dT%H:%M:%SZ' | wl-copy",
}, },
"cpu": { "cpu": {
"interval": 2, "interval": 2,
"format": "<span color='#ffffff7f'>{icon}</span> {usage}%", "format": "<span color='#0000007f'>{icon}</span> {usage}%",
"format-icons": ["󰾆", "󰾅", "󰓅"], "format-icons": ["󰾆", "󰾅", "󰓅"],
"max-length": 10, "max-length": 10,
"on-click": "$TERMINAL -e btop", "on-click": "$TERMINAL -e btop",
}, },
"custom/updates": { "custom/updates": {
"interval": 300, "interval": 300,
"format": "<span color='#ffffff7f'>󰏖 </span> {}", "format": "<span color='#0000007f'>󰏖 </span> {}",
"exec": "~/.bin/updates", "exec": "~/.bin/updates",
"return-type": "json", "return-type": "json",
"on-click": "$TERMINAL -e yay", "on-click": "$TERMINAL -e yay",
@ -23,41 +23,41 @@
"custom/gpu": { "custom/gpu": {
"interval": 2, "interval": 2,
"exec": "nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits", "exec": "nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits",
"format": "<span color='#ffffff7f'> </span> {}%", "format": "<span color='#0000007f'> </span> {}%",
"return-type": "", "return-type": "",
"on-click": "$TERMINAL -e nvtop", "on-click": "$TERMINAL -e nvtop",
"max-length": 10, "max-length": 10,
}, },
"memory": { "memory": {
"interval": 2, "interval": 2,
"format": "<span color='#ffffff7f'> </span>{used} GiB", "format": "<span color='#0000007f'> </span>{used} GiB",
"max-length": 10, "max-length": 10,
"on-click": "$TERMINAL -e btop", "on-click": "$TERMINAL -e btop",
}, },
"network#up": { "network#up": {
"interval": 2, "interval": 2,
"format": "<span color='#ffffff7f'> </span>{bandwidthUpBits}", "format": "<span color='#0000007f'> </span>{bandwidthUpBits}",
"tooltip-format": " {ifname} upload", "tooltip-format": " {ifname} upload",
"max-length": 10, "max-length": 10,
"on-click": "$TERMINAL -e nethogs", "on-click": "$TERMINAL -e nethogs",
}, },
"network#down": { "network#down": {
"interval": 2, "interval": 2,
"format": "<span color='#ffffff7f'> </span>{bandwidthDownBits}", "format": "<span color='#0000007f'> </span>{bandwidthDownBits}",
"tooltip-format": " {ifname} download", "tooltip-format": " {ifname} download",
"max-length": 10, "max-length": 10,
"on-click": "$TERMINAL -e nethogs", "on-click": "$TERMINAL -e nethogs",
}, },
"disk": { "disk": {
"interval": 30, "interval": 30,
"format": "<span color='#ffffff7f'>󰋊 </span>{used}", "format": "<span color='#0000007f'>󰋊 </span>{used}",
"path": "/", "path": "/",
"max-length": 10, "max-length": 10,
"on-click": "$TERMINAL -e dua i", "on-click": "$TERMINAL -e dua i",
}, },
"mpris": { "mpris": {
"format": "<span color='#ffffff7f'>{player_icon}</span> {title}", "format": "<span color='#0000007f'>{player_icon}</span> {title}",
"format-paused": "<span color='#ffffff7f'>{status_icon}</span> {title}", "format-paused": "<span color='#0000007f'>{status_icon}</span> {title}",
"player-icons": { "player-icons": {
"default": "󰝚", "default": "󰝚",
"mpv": "󰝚" "mpv": "󰝚"
@ -68,7 +68,7 @@
"title-len": 30, "title-len": 30,
}, },
"wireplumber": { "wireplumber": {
"format": "<span color='#ffffff7f'>{icon}</span> {volume}%", "format": "<span color='#0000007f'>{icon}</span> {volume}%",
"format-muted": "", "format-muted": "",
"scroll-step": 5, "scroll-step": 5,
"format-icons": ["", "", ""], "format-icons": ["", "", ""],

View File

@ -1,13 +1,14 @@
* { * {
border: none; border: none;
font-family: "Ubuntu Nerd Font"; font-family: "Ubuntu Nerd Font";
font-size: 12px; font-size: 14px;
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
#waybar { #waybar {
background: transparent; background: rgba(255, 255, 255, 0.9);
color: rgba(38, 41, 44, 0.9);
} }
#waybar.hidden { #waybar.hidden {
@ -35,11 +36,34 @@
#custom-os, #custom-os,
#custom-gpu, #custom-gpu,
#custom-updates { #custom-updates {
background: rgb(38, 41, 44); /* background: rgb(38, 41, 44); */
border-radius: 10px; border-radius: 12px;
padding: 4px 8px; padding: 2px 10px;
margin: 0px 4px; margin: 4px;
margin-bottom: 4px; }
#cpu {
background: rgb(50.15%, 92.07%, 99.48%);
}
#custom-gpu {
background: rgb(67.06%, 91.37%, 70.2%);
}
#memory {
background: rgb(100%, 81.7%, 68.38%);
}
#disk {
background: rgb(100%, 80.74%, 81.04%);
}
#network {
background: rgb(92.54%, 81.78%, 100%);
}
#wireplumber {
/* background: rgb(90.34%, 85.77%, 59.65%); */
} }
#custom-updates.disabled { #custom-updates.disabled {
@ -47,8 +71,9 @@
} }
#workspaces button { #workspaces button {
color: rgba(38, 41, 44, 0.9);
padding: 0px 5px; padding: 0px 5px;
opacity: 0.8; opacity: 0.2;
background: transparent; background: transparent;
text-shadow: none; text-shadow: none;
border-radius: 0; border-radius: 0;
@ -59,7 +84,7 @@
} }
#workspaces button.active { #workspaces button.active {
opacity: 1.0; opacity: 0.9;
} }
#workspaces button.visible {} #workspaces button.visible {}

1
.gitignore vendored
View File

@ -9,6 +9,7 @@
/.config/* /.config/*
!/.config/alacritty !/.config/alacritty
!/.config/dunst !/.config/dunst
!/.config/environment.d
!/.config/fish !/.config/fish
!/.config/fuzzel !/.config/fuzzel
!/.config/htop !/.config/htop