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
end
set -x GOPATH $HOME/.go
set -x EDITOR nvim
set -x LANG en_US.UTF-8
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_prefix:\x1d
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 = waypaper --restore
exec-once = wl-paste --watch cliphist store

View File

@ -1,24 +1,11 @@
# Firefox
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
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
# Wayland
env = XDG_SESSION_TYPE,wayland
env = GDK_BACKEND,wayland
@ -27,26 +14,5 @@ env = GDK_BACKEND,wayland
env = WLR_NO_HARDWARE_CURSORS,1
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
env = XCURSOR_SIZE,24

View File

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

View File

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

View File

@ -1,23 +1,20 @@
{
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
"LuaSnip": { "branch": "master", "commit": "8ae1dedd988eb56441b7858bd1e8554dfadaa46d" },
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
"flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
"friendly-snippets": { "branch": "main", "commit": "dcd4a586439a1c81357d5b9d26319ae218cc9479" },
"gitsigns.nvim": { "branch": "main", "commit": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" },
"lazy.nvim": { "branch": "main", "commit": "aedcd79811d491b60d0a6577a9c1701063c2a609" },
"mini.completion": { "branch": "main", "commit": "0cf6c4e257b5e8189ac6b3ffa2064a319c4eb8a8" },
"mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" },
"monokai.nvim": { "branch": "master", "commit": "b8bd44d5796503173627d7a1fc51f77ec3a08a63" },
"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-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
"nvim-lspconfig": { "branch": "master", "commit": "7f5cf1121f772850a30bdaf83fb448e88846aa58" },
"nvim-lspconfig": { "branch": "master", "commit": "e5e600232188ed9fb960f5df6bb06084ae8bf3ec" },
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
"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" },
"plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },
"plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
"telescope-project.nvim": { "branch": "master", "commit": "1aaf16580a614601a7f7077d9639aeb457dc5559" },
"telescope.nvim": { "branch": "master", "commit": "dc1ea28cc2a02cd1cebb9d80e967807d668f78f8" }
}

View File

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

View File

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

View File

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

View File

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

View File

@ -1,13 +1,14 @@
* {
border: none;
font-family: "Ubuntu Nerd Font";
font-size: 12px;
font-size: 14px;
padding: 0;
margin: 0;
}
#waybar {
background: transparent;
background: rgba(255, 255, 255, 0.9);
color: rgba(38, 41, 44, 0.9);
}
#waybar.hidden {
@ -35,11 +36,34 @@
#custom-os,
#custom-gpu,
#custom-updates {
background: rgb(38, 41, 44);
border-radius: 10px;
padding: 4px 8px;
margin: 0px 4px;
margin-bottom: 4px;
/* background: rgb(38, 41, 44); */
border-radius: 12px;
padding: 2px 10px;
margin: 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 {
@ -47,8 +71,9 @@
}
#workspaces button {
color: rgba(38, 41, 44, 0.9);
padding: 0px 5px;
opacity: 0.8;
opacity: 0.2;
background: transparent;
text-shadow: none;
border-radius: 0;
@ -59,7 +84,7 @@
}
#workspaces button.active {
opacity: 1.0;
opacity: 0.9;
}
#workspaces button.visible {}

1
.gitignore vendored
View File

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