diff --git a/.bin/ansible-vault-pass.sh b/.bin/ansible-vault-manager similarity index 59% rename from .bin/ansible-vault-pass.sh rename to .bin/ansible-vault-manager index 995d833..cc619ba 100755 --- a/.bin/ansible-vault-pass.sh +++ b/.bin/ansible-vault-manager @@ -25,5 +25,22 @@ if ! pass "ansible/$project" >/dev/null 2>&1; then exit 1 fi -pass "ansible/$project" +pass_content=$(pass "ansible/$project") +pass_path=$project_dir/$(echo "$pass_content" | grep "path:" | cut -d' ' -f2-) +case "$1" in + edit) + pass edit "ansible/$project" + exit 0 + ;; + deploy) + pass show "ansible/$project.file" > "$pass_path" + exit 0 + ;; + save) + pass insert -m "ansible/$project.file" < "$pass_path" + exit 0 + ;; +esac + +echo "$pass_content" | head -n 1 diff --git a/.config/aliasrc b/.config/aliasrc index 470d3b9..b3c2e47 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -73,7 +73,7 @@ alias xdebug='XDEBUG_CONFIG="remote_host=127.0.0.1 remote_port=9003"' test -x "$(command -v bat)" && alias cat='bat -pp' -test -x "$(command -v eza)" && alias ls='eza -lhF --git --icons --color=always --color-scale --time-style=long-iso --group-directories-first' +test -x "$(command -v eza)" && alias ls='eza -lhF --git --icons --color=always --color-scale --color-scale-mode=fixed --time-style=long-iso --group-directories-first' test -x "$(command -v moar)" && alias less='moar' diff --git a/.config/env.d/20-ansible b/.config/env.d/20-ansible index db56a03..e13f370 100755 --- a/.config/env.d/20-ansible +++ b/.config/env.d/20-ansible @@ -1,4 +1,4 @@ #!/usr/bin/env sh -export ANSIBLE_VAULT_PASSWORD_FILE="$HOME/.bin/ansible-vault-pass.sh" +export ANSIBLE_VAULT_PASSWORD_FILE="$HOME/.bin/ansible-vault-manager" export ANSIBLE_PYTHON_INTERPRETER='auto_silent' diff --git a/.config/hypr/binds.conf b/.config/hypr/binds.conf index 3eb6f06..0139335 100644 --- a/.config/hypr/binds.conf +++ b/.config/hypr/binds.conf @@ -9,6 +9,7 @@ bind = $main_mod, F, fullscreen, bind = $main_mod, D, exec, j4-dmenu-desktop --dmenu="$DMENU" bind = $main_mod, Pause, exec, menu-shutdown +bind = $main_mod, T, exec, ts-control bind = $main_mod, Print, exec, screenshot bind = $main_mod CTRL, Print, exec, screenshot --no-upload diff --git a/.config/hypr/dracula.conf b/.config/hypr/dracula.conf index 34cc907..077d580 100644 --- a/.config/hypr/dracula.conf +++ b/.config/hypr/dracula.conf @@ -1,18 +1,32 @@ # dracula/hyprland general { - col.active_border = rgb(bd93f9) + col.active_border = rgb(44475a) rgb(bd93f9) 90deg col.inactive_border = rgba(44475aaa) - col.group_border = rgba(282a36dd) - col.group_border_active = rgb(bd93f9) + # non-gradient alternative + #col.active_border = rgb(bd93f9) + #col.inactive_border = rgba(44475aaa) + #col.group_border = rgba(282a36dd) + #col.group_border_active = rgb(bd93f9) + # darker alternative + #col.active_border = rgb(44475a) # or rgb(6272a4) + #col.inactive_border = rgb(282a36) + #col.group_border = rgb(282a36) + #col.group_border_active = rgb(44475a) # or rgb(6272a4) } decoration { col.shadow = rgba(1E202966) # suggested shadow setting - drop_shadow = yes - shadow_range = 60 - shadow_offset = 1 2 - shadow_render_power = 3 - shadow_scale = 0.97 + #drop_shadow = yes + #shadow_range = 60 + #shadow_offset = 1 2 + #shadow_render_power = 3 + #shadow_scale = 0.97 +} +group { + groupbar { + col.active = rgb(bd93f9) rgb(44475a) 90deg + col.inactive = rgba(282a36dd) + } } #windowrulev2 = bordercolor rgb(ff5555),xwayland:1 # check if window is xwayland diff --git a/.config/qutebrowser/common.py b/.config/qutebrowser/common.py index aba2edb..6447b96 100644 --- a/.config/qutebrowser/common.py +++ b/.config/qutebrowser/common.py @@ -30,6 +30,8 @@ def init(c): c.url.searchengines = { 'DEFAULT': 'https://duckduckgo.com/?q={}', + 'ddg': 'https://duckduckgo.com/?q={}', + 'kagi': 'https://kagi.com/search?q={}' } c.url.start_pages = ['rss.serguzim.me', 'open.spotify.com'] diff --git a/.config/waybar/config b/.config/waybar/config index 77088b0..d96ef05 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -23,9 +23,6 @@ "on-click": "activate", "all-outputs": true, "sort-by-number": true, - "persistent_workspaces": { - "*": 10 - } }, "hyprland/window": { "max-length": 128 diff --git a/.config/waybar/custom/weather b/.config/waybar/custom/weather index e27f165..7ca71e7 100755 --- a/.config/waybar/custom/weather +++ b/.config/waybar/custom/weather @@ -2,6 +2,7 @@ #!nix-shell -i python -p python3 python3Packages.requests import json +import os import requests from datetime import datetime @@ -58,8 +59,9 @@ WEATHER_CODES = { data = {} - -weather = requests.get("https://wttr.in/?format=j1").json() +place = os.environ.get('WTTR_PLACE', 'Berlin') +url = "https://wttr.in/" + place + "?format=j1" +weather = requests.get(url).json() def format_time(time):