From 0418fee519c1ec6529f05d539654c261cee55ad9 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Fri, 17 Mar 2023 17:00:32 +0100 Subject: [PATCH] various minor changes --- .config/X11/xsession.d/80auto-start | 2 +- .config/lf/shortcutrc | 4 ++-- .config/shell/aliasrc | 1 + .config/shell/bm-dirs | 4 ++-- .config/shell/shortcutrc | 4 ++-- .config/shell/zshnameddirrc | 4 ++-- .local/bin/dmenupass | 2 +- .local/bin/statusbar/sb-clock | 35 ++++++++++++++--------------- TODO | 6 +++++ 9 files changed, 34 insertions(+), 28 deletions(-) diff --git a/.config/X11/xsession.d/80auto-start b/.config/X11/xsession.d/80auto-start index a3fee64f3..e794a2a75 100644 --- a/.config/X11/xsession.d/80auto-start +++ b/.config/X11/xsession.d/80auto-start @@ -4,7 +4,7 @@ start() { pidof -s $1 || $@ >/dev/null 2>&1 & } -xwallpaper --zoom "${XDG_DATA_HOME:-$HOME/.local/share/}/bg" +xwallpaper --zoom "${XDG_DATA_HOME:-$HOME/.local/share}/bg" start playerctld daemon start picom start unclutter -noevents diff --git a/.config/lf/shortcutrc b/.config/lf/shortcutrc index c6983a8fe..a8994653b 100644 --- a/.config/lf/shortcutrc +++ b/.config/lf/shortcutrc @@ -2,8 +2,8 @@ map gh cd "/home/luca" map gch cd "/home/luca/.cache" map gcf cd "/home/luca/.config" map gdt cd "/home/luca/.local/share" -map grr cd "/home/luca/.local/src" -map ggi cd "/home/luca/.local/src/git" +map gsr cd "/home/luca/.local/src" +map git cd "/home/luca/.local/src/git" map gsc cd "/home/luca/.local/bin" map gmn cd "/mnt" map gdl cd "/home/luca/Downloads" diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 59e92f648..154735886 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -50,6 +50,7 @@ alias \ wikiup='rclone sync ~/Documents/vimwiki cloud:files/luca/Notes' \ cam="mpv --untimed --no-cache --no-osc --no-input-default-bindings --profile=low-latency --input-conf=/dev/null --title=webcam $(ls /dev/video[0,2,4,6,8] | tail -n 1)" \ ahv="export ANSIBLE_VAULT_PASSWORD_FILE=~/.ansible/secrets/ansible-homelab && ansible-vault" \ + xgetkeys="xev | sed -ne '/^KeyPress/,/^$/p'" xpick=" xprop | awk ' /^WM_CLASS/{sub(/.* =/, \"instance:\"); sub(/,/, \"\nclass:\"); print} /^WM_NAME/{sub(/.* =/, \"title:\"); print}'" diff --git a/.config/shell/bm-dirs b/.config/shell/bm-dirs index 84682f739..49c4d8711 100644 --- a/.config/shell/bm-dirs +++ b/.config/shell/bm-dirs @@ -3,8 +3,8 @@ h $HOME ch ${XDG_CACHE_HOME:-$HOME/.cache} cf ${XDG_CONFIG_HOME:-$HOME/.config} dt ${XDG_DATA_HOME:-$HOME/.local/share} -rr $HOME/.local/src -gi $HOME/.local/src/git +sr $HOME/.local/src +it $HOME/.local/src/git sc $HOME/.local/bin mn /mnt dl ${XDG_DOWNLOAD_DIR:-$HOME/Downloads} diff --git a/.config/shell/shortcutrc b/.config/shell/shortcutrc index 964a1bbaa..2c2ad4498 100644 --- a/.config/shell/shortcutrc +++ b/.config/shell/shortcutrc @@ -3,8 +3,8 @@ alias h="cd /home/luca && tput cuu1;tput el" \ ch="cd /home/luca/.cache && tput cuu1;tput el" \ cf="cd /home/luca/.config && tput cuu1;tput el" \ dt="cd /home/luca/.local/share && tput cuu1;tput el" \ -rr="cd /home/luca/.local/src && tput cuu1;tput el" \ -gi="cd /home/luca/.local/src/git && tput cuu1;tput el" \ +sr="cd /home/luca/.local/src && tput cuu1;tput el" \ +it="cd /home/luca/.local/src/git && tput cuu1;tput el" \ sc="cd /home/luca/.local/bin && tput cuu1;tput el" \ mn="cd /mnt && tput cuu1;tput el" \ dl="cd /home/luca/Downloads && tput cuu1;tput el" \ diff --git a/.config/shell/zshnameddirrc b/.config/shell/zshnameddirrc index 259eb369c..bf2cf9816 100644 --- a/.config/shell/zshnameddirrc +++ b/.config/shell/zshnameddirrc @@ -2,8 +2,8 @@ hash -d h=/home/luca hash -d ch=/home/luca/.cache hash -d cf=/home/luca/.config hash -d dt=/home/luca/.local/share -hash -d rr=/home/luca/.local/src -hash -d gi=/home/luca/.local/src/git +hash -d sr=/home/luca/.local/src +hash -d it=/home/luca/.local/src/git hash -d sc=/home/luca/.local/bin hash -d mn=/mnt hash -d dl=/home/luca/Downloads diff --git a/.local/bin/dmenupass b/.local/bin/dmenupass index 2c14e6f0a..b8e2f1b8d 100755 --- a/.local/bin/dmenupass +++ b/.local/bin/dmenupass @@ -3,4 +3,4 @@ # This script is the SUDO_ASKPASS variable, meaning that it will be used as a # password prompt if needed. -dmenu -fn Monospace-18 -P -p "$1" <&- && echo +dmenu -P -p "$1" <&- && echo diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock index a6065e3c2..dee4f48b3 100755 --- a/.local/bin/statusbar/sb-clock +++ b/.local/bin/statusbar/sb-clock @@ -1,19 +1,18 @@ #!/bin/sh -# clock=$(date '+%I') -# case "$clock" in -# "00") icon="" ;; -# "01") icon="" ;; -# "02") icon="" ;; -# "03") icon="" ;; -# "04") icon="" ;; -# "05") icon="" ;; -# "06") icon="" ;; -# "07") icon="" ;; -# "08") icon="" ;; -# "09") icon="" ;; -# "10") icon="" ;; -# "11") icon="" ;; -# "12") icon="" ;; -# esac -# printf "%s \033[11m%s\033[10m %s\n" "$(date "+%H:%M")" "$icon" "$(date "+%d.%m.%Y")" -date "+%H:%M " +clock=$(date '+%I') +case "$clock" in + "00") icon="" ;; + "01") icon="" ;; + "02") icon="" ;; + "03") icon="" ;; + "04") icon="" ;; + "05") icon="" ;; + "06") icon="" ;; + "07") icon="" ;; + "08") icon="" ;; + "09") icon="" ;; + "10") icon="" ;; + "11") icon="" ;; + "12") icon="" ;; +esac +printf "%s \033[11m%s\033[10m %s\n" "$(date "+%H:%M")" "$icon" "$(date "+%d.%m.%Y")" diff --git a/TODO b/TODO index 5f4efa204..7a36f194d 100644 --- a/TODO +++ b/TODO @@ -1,2 +1,8 @@ TODO: Rework lf icons for audio and video files TODO: Move NVIM config to submodule + TODO: Opaque fullscreen windows + TODO: https://sw.kovidgoyal.net/kitty/kittens/panel/ + TODO: Create a better bitwarden integration + TODO: Create a brightness indicator for dunst + TODO: Fix the pyenv indicator for kitty + TODO: Look into nix and their home manager