From b05e5cd55220cb2f47161c529715ec5e67be9490 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:44:58 +0200 Subject: quote TD alias --- config/essentials/nvim/after/plugin/luasnip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index 43d985a..7ee274f 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -142,7 +142,7 @@ ls.add_snippets("java", { }) ls.add_snippets("sh", { - s("TD", t "THISDIR=$(dirname $(readlink -f \"$0\"))"), + s("TD", t "THISDIR=\"$(dirname \"$(readlink -f \"$0\")\")\""), parse("fn", "$1 ()\n{\n\t$2\n}$0", {}), -- Functions parse("rchar", -- cgit v1.2.3 From 4d4769747c968da74f57ed5105cea59903669aee Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:45:19 +0200 Subject: add keychain to xinitrc --- config/X/x11/xinitrc | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/config/X/x11/xinitrc b/config/X/x11/xinitrc index d261b3f..5f595b1 100755 --- a/config/X/x11/xinitrc +++ b/config/X/x11/xinitrc @@ -6,21 +6,10 @@ sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps -if [ -f $sysresources ]; then - xrdb -merge $sysresources -fi - -if [ -f $sysmodmap ]; then - xmodmap $sysmodmap -fi - -if [ -f "$userresources" ]; then - xrdb -merge "$userresources" -fi - -if [ -f "$usermodmap" ]; then - xmodmap "$usermodmap" -fi +[ -f $sysresources ] && xrdb -merge $sysresources +[ -f $sysmodmap ] && xmodmap $sysmodmap +[ -f "$userresources" ] && xrdb -merge "$userresources" +[ -f "$usermodmap" ] && xmodmap "$usermodmap" if [ -d /etc/X11/xinit/xinitrc.d ] ; then for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do @@ -37,5 +26,6 @@ xmodmap -e "keycode 135 = Super_L" xautolock -time 5 -locker slock & gammastep -m randr & slstatus & +eval "$(keychain --dir "$XDG_CONFIG_HOME/keychain" --eval --quiet --agents gpg,ssh)" unclutter --timeout 3 --jitter 50 -b exec startdwm -- cgit v1.2.3 From 1cfaa516353629a48029576a98bf221d4826ad9e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:45:32 +0200 Subject: changed port of httpd stream --- config/common/mpd/mpd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/common/mpd/mpd.conf b/config/common/mpd/mpd.conf index 7ea7137..dda6f45 100644 --- a/config/common/mpd/mpd.conf +++ b/config/common/mpd/mpd.conf @@ -14,7 +14,7 @@ audio_output { audio_output { type "httpd" name "My HTTP Stream" - port "8000" + port "7721" always_on "yes" # prevent MPD from disconnecting all listeners when playback is stopped. tags "yes" # httpd supports sending tags to listening streams. } -- cgit v1.2.3 From ff7417c9ce835265b889319a8e75ee2ae38eab1d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:46:03 +0200 Subject: added alias --- config/essentials/zsh/aliases.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index 07a17e2..1d742a9 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -135,6 +135,7 @@ alias fif='find . -type "f" | grep' alias fid='find . -type "d" | grep' alias sxt='sxiv -t' alias wgsh='wget --quiet --show-progress' +alias wgc='wgsh "$(clipo)"' alias ss4='ss -tln4p' alias mdbw='mariadb -h 0.0.0.0 -u padmin -pbulbizarre padmindb' alias mdbwa='mariadb -h 10.3.50.5 -u padmin -pbulbizarre padmindb' -- cgit v1.2.3 From 1460eae0d754818dffdaadb744571cbfce1a8378 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:46:22 +0200 Subject: use script instead of alias --- bin/common/cx | 2 ++ config/essentials/zsh/aliases.sh | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100755 bin/common/cx diff --git a/bin/common/cx b/bin/common/cx new file mode 100755 index 0000000..88fb817 --- /dev/null +++ b/bin/common/cx @@ -0,0 +1,2 @@ +#!/bin/sh +[ -x "$1" ] && chmod -x "$1" || chmod +x "$1" diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index 1d742a9..53c8da0 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -167,7 +167,6 @@ alias penv='python3 -m venv env' alias phttp='python3 -m http.server' alias pipreq='pip install -r requirements.txt' -alias cx='chmod +x' alias ch='chown ${USER}:${USER} -R' alias kll='killall' alias pi='ping archlinux.org -c4' -- cgit v1.2.3 From 55378ac493716f15fd68d73fb77fcade4a667d99 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:48:39 +0200 Subject: added saf --- bin/common/saf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 bin/common/saf diff --git a/bin/common/saf b/bin/common/saf new file mode 100755 index 0000000..0c6fbc4 --- /dev/null +++ b/bin/common/saf @@ -0,0 +1,24 @@ +#!/bin/sh + +# Simple Ass Fetch by futxlii + +red="$(printf '\033[31m')" +green="$(printf '\033[32m')" +blue="$(printf '\033[34m')" +reset="$(printf '\033[0m')" + +for file in /etc/os-release /usr/lib/os-release +do + [ -f "$file" ] && . "$file" && break +done + +KERNEL="$(uname -r)" +UPTIME="$(uptime -p)"; UPTIME="${UPTIME##up }" +SHELL="$(basename "$SHELL")" + +cat < Date: Sat, 29 Jul 2023 11:48:57 +0200 Subject: added toush --- bin/common/toush | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/common/toush diff --git a/bin/common/toush b/bin/common/toush new file mode 100755 index 0000000..dd675b9 --- /dev/null +++ b/bin/common/toush @@ -0,0 +1,14 @@ +#!/bin/sh +# fork of +# https://codeberg.org/futxlii/bin/toush :) + +shebang='#!/bin/sh' + +usage() { >&2 printf 'Usage: %s' "${0##*/}"; exit 1 ;} + +[ "$1" ] || usage +while [ "$1" ]; do + [ -f "$1" ] && usage + printf '%s\n\n' "$shebang" > "$1" && chmod +x "$1" + shift +done -- cgit v1.2.3 From eeb2fac3028837fae0db3d816acf6d8bd0050120 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:49:08 +0200 Subject: added sync-install.sh --- bin/common/sync-install.sh | 58 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100755 bin/common/sync-install.sh diff --git a/bin/common/sync-install.sh b/bin/common/sync-install.sh new file mode 100755 index 0000000..e26c74d --- /dev/null +++ b/bin/common/sync-install.sh @@ -0,0 +1,58 @@ +#!/bin/sh + +die () +{ + echo "$@" >&2 +} + +read_char () +{ + old_stty_cfg=$(stty -g) + stty raw -echo + dd ibs=1 count=1 2> /dev/null + stty $old_stty_cfg +} + +confirm () +{ + printf "$1 " + read_char | grep "[yY]" +} + +usage() +{ + >&2 printf 'Usage: %s \n' "${0##*/}" +} + +[ $# -lt 2 ] && usage && exit 1 +REMOTE="$1" +DEST="$2" +SCRIPT="${3:-sync.sh}" + +if ! ssh $REMOTE test -w $DEST 2> /dev/null +then + die "Not a valid remote or destination." + exit 1 +fi + +die "─────────────────────────────────────────────────────────────" +cat <&2 +#!/bin/sh + +THISDIR="\$(dirname "\$(readlink -f "\$0")")" +inotifywait -m -e create,modify,delete --format "%f" "\$THISDIR" | +while read FILE +do + rsync -aP "\$THISDIR/" "$REMOTE:$DEST" + sleep 1m +done +EOF +die "─────────────────────────────────────────────────────────────" +die "located at $(readlink -f "$SCRIPT")" + +if confirm "good?" +then + chmod +x "$SCRIPT" +else + rm -f "$SCRIPT" +fi -- cgit v1.2.3 From bc78ab4052dea77dba0884ec3ed52b35e7046b66 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:49:30 +0200 Subject: added alias and changed sort macro --- config/essentials/zsh/aliases.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index 53c8da0..7926c17 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -202,8 +202,7 @@ alias esl='$EDITOR ~/proj/suckless/slock/config.def.h' alias esls='$EDITOR ~/proj/suckless/slstatus/config.def.h' alias ehy='$EDITOR ~/.config/hypr/hyprland.conf' alias cfd='$EDITOR config.def.h' -# quick cd -# !sort -t "'" -k 2 +# /# quick cd jV}k:!sort -t "'" -k 2 alias cdl='cd $HOME/dl' alias cdoc='cd $HOME/docs' alias cda='cd $HOME/docs/android/projects' @@ -212,6 +211,7 @@ alias cdp='cd $HOME/pics' alias cdpa='cd $HOME/pics/ai-outputs/' alias cdpp='cd $HOME/proj/personal/' alias chom='cd $HOME/proj/personal/homepage' +alias lov='cd $HOME/proj/personal/lola' alias cdsw='cd $HOME/proj/personal/WheelAdvisor' alias cddm='cd $HOME/proj/suckless/dmenu' alias cdw='cd $HOME/proj/suckless/dwm' -- cgit v1.2.3 From 95c594f28214aed154d94d4b7fdcea0f89772882 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:50:33 +0200 Subject: changed newtab and searchengines --- config/extra/tridactyl/tridactylrc | 52 ++++++++++++++------------------------ 1 file changed, 19 insertions(+), 33 deletions(-) diff --git a/config/extra/tridactyl/tridactylrc b/config/extra/tridactyl/tridactylrc index 2b98c9d..8433ee5 100644 --- a/config/extra/tridactyl/tridactylrc +++ b/config/extra/tridactyl/tridactylrc @@ -1,44 +1,30 @@ -" General Settings -set newtab https://www.duckduckgo.com -set searchengine duckduckgo -set searchurls.wi https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s +set newtab http://localhost:28669 +set searchengine qwant + +" Searchurls +set searchurls.1x https://www.1377x.to/search/%s/1 +set searchurls.am https://www.amazon.com.be/s?k=%s +set searchurls.aur https://aur.archlinux.org/packages?O=0&K=%s +set searchurls.aw https://wiki.archlinux.org/title/%s +set searchurls.cnrtl http://www.cnrtl.fr/lexicographie/ +set searchurls.dhu https://hub.docker.com/search?q=%s set searchurls.g https://www.google.com/search?q=%s -set searchurls.y https://www.youtube.com/results?search_query=%s set searchurls.gm https://www.google.com/maps?q=%s -set searchurls.aw https://wiki.archlinux.org/title/%s -set searchurls.aur https://aur.archlinux.org/packages?O=0&K=%s -set searchurls.tw https://tweakers.net/zoeken/?keyword=%s +set searchurls.gwi https://wiki.gentoo.org/index.php?title=Special%3ASearch&profile=default&fulltext=Search&search= set searchurls.im https://www.imdb.com/find?q=%s -set searchurls.1x https://www.1377x.to/search/%s/1 -set searchurls.am https://www.amazon.com.be/s?k=%s -set searchurls.pyp https://pypi.org/search/?q=%s +set searchurls.lg https://libgen.gs/index.php?req=%s set searchurls.mc https://minecraft.fandom.com/wiki/%s set searchurls.mcf https://www.curseforge.com/minecraft/mc-mods/search?search=%s set searchurls.mcm https://modrinth.com/mods?q=%s -set searchurls.dhu https://hub.docker.com/search?q=%s -set searchurls.plu https://app.pluralsight.com/search/?q=%s -set searchurls.ru https://rutracker.org/forum/tracker.php?nm=%s -set searchurls.google https://www.google.com/search?q= -set searchurls.googlelucky https://www.google.com/search?btnI=I'm+Feeling+Lucky&q= -set searchurls.scholar https://scholar.google.com/scholar?q= -set searchurls.googleuk https://www.google.co.uk/search?q= -set searchurls.bing https://www.bing.com/search?q= -set searchurls.duckduckgo https://duckduckgo.com/?q= -set searchurls.yahoo https://search.yahoo.com/search?p= -set searchurls.twitter https://twitter.com/search?q= -set searchurls.wikipedia https://en.wikipedia.org/wiki/Special:Search/ -set searchurls.youtube https://www.youtube.com/results?search_query= -set searchurls.amazon https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords= -set searchurls.amazonuk https://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords= -set searchurls.startpage https://startpage.com/do/search?language=english&cat=web&query= -set searchurls.github https://github.com/search?utf8=✓&q= -set searchurls.searx https://searx.me/?category_general=on&q= -set searchurls.cnrtl http://www.cnrtl.fr/lexicographie/ -set searchurls.osm https://www.openstreetmap.org/search?query= set searchurls.mdn https://developer.mozilla.org/en-US/search?q= -set searchurls.gentoo_wiki https://wiki.gentoo.org/index.php?title=Special%3ASearch&profile=default&fulltext=Search&search= +set searchurls.osm https://www.openstreetmap.org/search?query= +set searchurls.plu https://app.pluralsight.com/search/?q=%s +set searchurls.pyp https://pypi.org/search/?q=%s set searchurls.qwant https://www.qwant.com/?q= - +set searchurls.ru https://rutracker.org/forum/tracker.php?nm=%s +set searchurls.tw https://tweakers.net/zoeken/?keyword=%s +set searchurls.wi https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s +set searchurls.y https://www.youtube.com/results?search_query=%s " Binds " vim macro: " Ibind gnp tabopen yy2pwwdtojRwinbblrwkro -- cgit v1.2.3 From d063a1ac14b89f4412ed9df9f67b8ed5fd0d834a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:50:50 +0200 Subject: added binds for window and tab opens, edited vim macro --- config/extra/tridactyl/tridactylrc | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/config/extra/tridactyl/tridactylrc b/config/extra/tridactyl/tridactylrc index 8433ee5..c48ffe1 100644 --- a/config/extra/tridactyl/tridactylrc +++ b/config/extra/tridactyl/tridactylrc @@ -26,23 +26,36 @@ set searchurls.tw https://tweakers.net/zoeken/?keyword=%s set searchurls.wi https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s set searchurls.y https://www.youtube.com/results?search_query=%s " Binds + " vim macro: -" Ibind gnp tabopen yy2pwwdtojRwinbblrwkro +" yy2pwlrnjrpwitabbkiwin2j0 bind J tabnext bind K tabprev -" chat gpt -bind gnc tabopen https://chat.openai.com/chat + bind goc open https://chat.openai.com/chat -bind gwc winopen https://chat.openai.com/chat -" awesome pixel tutorials -bind gnp tabopen https://github.com/Siilwyn/awesome-pixel-art#tutorials +bind gnc winopen https://chat.openai.com/chat +bind gpc tabopen https://chat.openai.com/chat bind gop open https://github.com/Siilwyn/awesome-pixel-art#tutorials -bind gwp winopen https://github.com/Siilwyn/awesome-pixel-art#tutorials -" transmission -bind godb open http://debuc.com/ -bind godt open http://debuc.com:9091 -bind gods open http://debuc.com:5030 +bind gnp winopen https://github.com/Siilwyn/awesome-pixel-art#tutorials +bind gpp tabopen https://github.com/Siilwyn/awesome-pixel-art#tutorials +bind godb open http://debuc.com:32095 +bind gndb winopen http://debuc.com:32095 +bind gpdb tabopen http://debuc.com:32095 +bind godc open http://debuc.com:8384 +bind gndc winopen http://debuc.com:8384 +bind gpdc tabopen http://debuc.com:8384 bind godj open http://debuc.com:8096 +bind gndj winopen http://debuc.com:8096 +bind gpdj tabopen http://debuc.com:8096 +bind gods open http://debuc.com:5030 +bind gnds winopen http://debuc.com:5030 +bind gpds tabopen http://debuc.com:5030 +bind godt open http://debuc.com:9091 +bind gndt winopen http://debuc.com:9091 +bind gpdt tabopen http://debuc.com:9091 +bind gody open http://debuc.com:9010 +bind gndy winopen http://debuc.com:9010 +bind gpdy tabopen http://debuc.com:9010 " For syntax highlighting see https://github.com/tridactyl/vim-tridactyl " vim: set filetype=tridactyl -- cgit v1.2.3 From f5b7a1a7cd4052b37dfd576d5ca5864a2b969e09 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 29 Jul 2023 11:51:18 +0200 Subject: added /usr/lib/os-release --- config/essentials/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 58974ba..d8675d4 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -25,7 +25,7 @@ zle -N add-surround surround zle -N change-surround surround compinit -if grep -qi "debian\|ubuntu" /etc/os-release 2>/dev/null +if grep -qi "debian\|ubuntu" /usr/lib/os-release /etc/os-release 2>/dev/null then sfiles=( /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh -- cgit v1.2.3 From 03d5f1e7cb38859477089b88737a40950ea28843 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 2 Aug 2023 10:42:52 +0200 Subject: added wireguard module to waybar --- config/hyprland/waybar/config.jsonc | 7 ++++++- config/hyprland/waybar/schemes/base16.css | 10 ++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index 816a851..aadc6d3 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -2,7 +2,7 @@ "layer": "top", "modules-left": ["battery", "clock", "wlr/workspaces", "mpd"], "modules-center": ["hyprland/window"], - "modules-right": ["network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"], + "modules-right": ["custom/wireguard", "network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"], "wlr/workspaces": { "on-click": "activate", }, @@ -44,6 +44,11 @@ "default":["", "", "", "", ""] }, }, + "custom/wireguard": { + "exec": "ip addr show dev wg0", + "format": "wg0", + "restart-interval": 3, + }, "network": { "format-wifi": " ", "tooltip-format-wifi": "{ifname} {essid}", diff --git a/config/hyprland/waybar/schemes/base16.css b/config/hyprland/waybar/schemes/base16.css index eced638..19bb703 100644 --- a/config/hyprland/waybar/schemes/base16.css +++ b/config/hyprland/waybar/schemes/base16.css @@ -39,7 +39,7 @@ window#waybar.PCSX2 #window { #mpd, #battery, #window, -#network, #pulseaudio, #temperature, #cpu, #custom-memory { +#custom-wireguard, #network, #pulseaudio, #temperature, #cpu, #custom-memory { margin-left: 8px; padding-left: 16px; padding-right: 16px; @@ -48,7 +48,7 @@ window#waybar.PCSX2 #window { #workspaces, #mpd, #battery, #clock, #window, -#network, #pulseaudio, #temperature, #cpu, #custom-memory, #tray { +#custom-wireguard, #network, #pulseaudio, #temperature, #cpu, #custom-memory, #tray { border: solid @background 2px; margin-top: 4px; margin-bottom: 2px; @@ -112,6 +112,12 @@ window#waybar.PCSX2 #window { background: @color4; } +#custom-wireguard { + color: @color5; + border-color: @color8; + background: @background; +} + #network { color: @background; background: @color5; -- cgit v1.2.3 From 49edb6606fd74d771b5df5cf28d049dfceec29de Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 2 Aug 2023 10:43:26 +0200 Subject: cleanup on locker script --- bin/guiscripts/locker | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bin/guiscripts/locker b/bin/guiscripts/locker index c35f6d4..b680484 100755 --- a/bin/guiscripts/locker +++ b/bin/guiscripts/locker @@ -3,10 +3,7 @@ which swaylock grim pixelate > /dev/null || exit 1 umask 077 -monitors="$(hyprctl monitors -j | - jq -r '.[].name' | - tr '\n' ' ' | - sed 's,.$,,')" +monitors="$(hyprctl monitors -j | jq -r '.[].name' | xargs)" for monitor in $monitors do @@ -14,9 +11,9 @@ do grim -l 0 -o "$monitor" "$file" pixelate "$file" "$file" # Create image command for swaylock - icmd="$icmd --image $monitor:$file" + img_opt="--image $monitor:$file $img_opt" files="$files $file" done -swaylock -f -u $icmd +swaylock -f -u $img_opt shred -uz -- $files -- cgit v1.2.3 From 29fb5f0b50e0339255e29dec00a6761f10f9c32b Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 2 Aug 2023 10:43:39 +0200 Subject: added variable keymap to sh --- config/essentials/nvim/ftplugin/sh.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/nvim/ftplugin/sh.lua b/config/essentials/nvim/ftplugin/sh.lua index 0da4c23..01b20d6 100644 --- a/config/essentials/nvim/ftplugin/sh.lua +++ b/config/essentials/nvim/ftplugin/sh.lua @@ -2,5 +2,5 @@ vim.keymap.set("n", "t", "s/\\(\\s*\\)\\(.*\\)/\\1echo \"\\2\" vim.keymap.set("n", "i", "s/\\(\\s*\\)\\(.*\\)/\\1echo \"\\2: $\\2\"") vim.keymap.set("i", "t", "s/\\(\\s*\\)\\(.*\\)/\\1echo \"\\2\"A") vim.keymap.set("i", "i", "s/\\(\\s*\\)\\(.*\\)/\\1echo \"\\2: $\\2\"A") -vim.keymap.set({"i", "n"}, "v", "A)\"I\"$(0") +vim.keymap.set({"i", "n"}, "v", "A)\"I\"$(I") vim.opt.formatoptions = "cqrnj" -- cgit v1.2.3 From ad799ff689fd57f0ab09ed2287241ba7607b0d00 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 2 Aug 2023 10:43:54 +0200 Subject: fixed missing dependency check --- config/essentials/nvim/lua/user/live-server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/nvim/lua/user/live-server.lua b/config/essentials/nvim/lua/user/live-server.lua index dac3c19..197809d 100644 --- a/config/essentials/nvim/lua/user/live-server.lua +++ b/config/essentials/nvim/lua/user/live-server.lua @@ -5,7 +5,7 @@ local live_servers = {} function M.start_live_server() if vim.fn.executable('lsof') == 0 then print("Error: 'lsof' command not found") - elseif vim.fn.executable('lsof') == 0 then + elseif vim.fn.executable('live-server') == 0 then print("Error: 'live-server' command not found") return end -- cgit v1.2.3 From e7cc98818fd10d4acb230df7a9f7a0c6afb74247 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 2 Aug 2023 10:44:32 +0200 Subject: added resize function --- config/essentials/zsh/functions.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index ada523d..671e6fb 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -278,3 +278,11 @@ muttmail () die -n 'Press [Enter to login]' read && mutt } + +resize () +{ + test $# -lt 2 && + printf "usage: %s [out]\n" "$0" >&2 && + return 1 + convert -resize $1^ -gravity center -crop $1+0+0 -- "$2" "${3:-$1}" +} -- cgit v1.2.3 From 6f87b71ad343d16a9fb68f672aa4d1904da4c29b Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 2 Aug 2023 10:44:52 +0200 Subject: added float rule for pinentry --- config/hyprland/hypr/hyprland.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/config/hyprland/hypr/hyprland.conf b/config/hyprland/hypr/hyprland.conf index 8aa437e..a8a99c2 100644 --- a/config/hyprland/hypr/hyprland.conf +++ b/config/hyprland/hypr/hyprland.conf @@ -82,6 +82,7 @@ gestures { } windowrulev2 = noanim, class:^(.*[Pp]inentry.*)$ +windowrulev2 = float, class:^(.*[Pp]inentry.*)$ windowrulev2 = noanim, class:dmenu layerrule = noanim, launcher -- cgit v1.2.3 From dbffb8df71390547166bd9901fa45a0e5c9139c1 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 2 Aug 2023 10:45:15 +0200 Subject: use bordered windows for suggestions --- config/essentials/nvim/lua/user/cmp/setup.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/essentials/nvim/lua/user/cmp/setup.lua b/config/essentials/nvim/lua/user/cmp/setup.lua index 99f984d..8f8291e 100644 --- a/config/essentials/nvim/lua/user/cmp/setup.lua +++ b/config/essentials/nvim/lua/user/cmp/setup.lua @@ -6,8 +6,8 @@ cmp.setup({ end, }, window = { - -- completion = cmp.config.window.bordered(), - -- documentation = cmp.config.window.bordered(), + completion = cmp.config.window.bordered(), + documentation = cmp.config.window.bordered(), }, mapping = cmp.mapping.preset.insert({ [''] = cmp.mapping.scroll_docs(-4), -- cgit v1.2.3 From 63c64f071ecd45cf66ab49d199a634cd8db27056 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 2 Aug 2023 10:48:25 +0200 Subject: added .bashrc --- config/home/.bashrc | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/home/.bashrc diff --git a/config/home/.bashrc b/config/home/.bashrc new file mode 100644 index 0000000..33dbba4 --- /dev/null +++ b/config/home/.bashrc @@ -0,0 +1,9 @@ +SHELL=/bin/bash +PATH=$HOME/bin:$PATH +color1="\[\033[35m\]" +color2="\[\033[36m\]" +bold="\[\033[1m\]" +reset="\[\033[0m\]" +PS1="${color1}${bold} [\\u${reset}@${color2}${bold}\\h]${reset} \\w " +HISTFILE= +. $HOME/.config/zsh/aliases.sh -- cgit v1.2.3 From e614a330978ce7e7f6d130cc7d199150e16a409d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 2 Aug 2023 15:19:10 +0200 Subject: added sshs alias --- config/essentials/zsh/aliases.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 84373a2..09215b2 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -113,7 +113,7 @@ alias mdbwa='mariadb -h 10.3.50.5 -u padmin -pbulbizarre padmindb' # ssh alias sha='ssh-add' -alias ssh-start='eval "$(ssh-agent)" && ssh-add' +alias sshs='eval "$(ssh-agent)" && ssh-add' alias vidlen='ffprobe -show_entries format=duration -v quiet -of csv="p=0" -i' alias whatsmyip='curl -s "ifconfig.co"' -- cgit v1.2.3 From 2b3599857f549019ce24b40a1644a690b084af49 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 4 Aug 2023 19:38:36 +0200 Subject: use $HOME and added waybar edit aliases --- config/essentials/zsh/aliases.sh | 64 +++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index 7926c17..5b1ae3f 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -172,9 +172,9 @@ alias kll='killall' alias pi='ping archlinux.org -c4' alias sba='source env/bin/activate || source bin/activate' alias smc='systemctl' -alias ssc='doas systemctl' +alias dsmc='doas systemctl' alias smcu='smc --user' -alias zsr='source ${ZDOTDIR:-$HOME}/.zshrc && rehash' +alias zsr='source ${ZDOTDIR:-~}/.zshrc && rehash' alias rh='rehash' alias wf='doas wipefs -a' alias dmci="doas make clean install" @@ -189,7 +189,7 @@ alias vblsr='vbm list runningvms' alias vb='vbm startvm' # quick config -alias ez='$EDITOR ${ZDOTDIR:-$HOME}/.zshrc' +alias ez='$EDITOR ${ZDOTDIR:-~}/.zshrc' alias eza='$EDITOR ${ZDOTDIR}/aliases.sh' alias ezf='$EDITOR ${ZDOTDIR}/functions.zsh' alias eto='$EDITOR ~/sync/TODO' @@ -201,34 +201,36 @@ alias est='$EDITOR ~/proj/suckless/st/config.def.h' alias esl='$EDITOR ~/proj/suckless/slock/config.def.h' alias esls='$EDITOR ~/proj/suckless/slstatus/config.def.h' alias ehy='$EDITOR ~/.config/hypr/hyprland.conf' +alias ewbj='$EDITOR ~/src/dotfiles/config/hyprland/waybar/config.jsonc' +alias ewbs='$EDITOR ~/src/dotfiles/config/hyprland/waybar/style.css' alias cfd='$EDITOR config.def.h' # /# quick cd jV}k:!sort -t "'" -k 2 -alias cdl='cd $HOME/dl' -alias cdoc='cd $HOME/docs' -alias cda='cd $HOME/docs/android/projects' -alias cdm='cd $HOME/music' -alias cdp='cd $HOME/pics' -alias cdpa='cd $HOME/pics/ai-outputs/' -alias cdpp='cd $HOME/proj/personal/' -alias chom='cd $HOME/proj/personal/homepage' -alias lov='cd $HOME/proj/personal/lola' -alias cdsw='cd $HOME/proj/personal/WheelAdvisor' -alias cddm='cd $HOME/proj/suckless/dmenu' -alias cdw='cd $HOME/proj/suckless/dwm' -alias cdslo='cd $HOME/proj/suckless/slock' -alias cdsl='cd $HOME/proj/suckless/slstatus' -alias cdst='cd $HOME/proj/suckless/st' -alias cdsta='cd $HOME/proj/suckless/stable-diffusion-webui' -alias cdsu='cd $HOME/proj/suckless/surf' -alias cds='cd $HOME/src/' -alias cdsb='cd $HOME/src/build' -alias cdsc='cd $HOME/src/comfyui/' -alias cdo='cd $HOME/src/dotfiles' -alias cdi='cd $HOME/src/installdrier' -alias cdia='cd $HOME/src/installdrier/arch' -alias cdib='cd $HOME/src/installdrier/deb' -alias czo='cd $HOME/zot/' -alias cdpw='cd ${PASSWORD_STORE_DIR:-$HOME/.password-store}' +alias cdl='cd ~/dl' +alias cdoc='cd ~/docs' +alias cda='cd ~/docs/android/projects' +alias cdm='cd ~/music' +alias cdp='cd ~/pics' +alias cdpa='cd ~/pics/ai-outputs/' +alias cdpp='cd ~/proj/personal/' +alias chom='cd ~/proj/personal/homepage' +alias lov='cd ~/proj/personal/lola' +alias cdsw='cd ~/proj/personal/WheelAdvisor' +alias cddm='cd ~/proj/suckless/dmenu' +alias cdw='cd ~/proj/suckless/dwm' +alias cdslo='cd ~/proj/suckless/slock' +alias cdsl='cd ~/proj/suckless/slstatus' +alias cdst='cd ~/proj/suckless/st' +alias cdsta='cd ~/proj/suckless/stable-diffusion-webui' +alias cdsu='cd ~/proj/suckless/surf' +alias cds='cd ~/src/' +alias cdsb='cd ~/src/build' +alias cdsc='cd ~/src/comfyui/' +alias cdo='cd ~/src/dotfiles' +alias cdi='cd ~/src/installdrier' +alias cdia='cd ~/src/installdrier/arch' +alias cdib='cd ~/src/installdrier/deb' +alias czo='cd ~/zot/' +alias cdpw='cd ${PASSWORD_STORE_DIR:-~/.password-store}' alias cdng='cd /etc/nginx' alias cdrs='cd /srv/' @@ -237,7 +239,7 @@ alias fzps='ps aux | tail +2 | fzf | tee /dev/stderr | awk '\''{print $2}'\'' | alias asf='alias | fzf' alias fzh="tac $HISTFILE | fzf | tee /dev/stderr | clipp" alias ffwin='hyprctl clients -j | jq '\''.[].pid'\'' | fzf --preview "hyprctl clients -j | jq '\''.[] | select(.pid == {}) | {class, title, workspace, xwayland}'\''"' -alias pff='find ${PASSWORD_STORE_DIR:=$HOME/src/password-store/} -name "*.gpg" | sed -e "s@$PASSWORD_STORE_DIR/@@" -e '\''s/\.gpg$//'\'' | fzf | xargs pass show -c' +alias pff='find ${PASSWORD_STORE_DIR:=~/src/password-store/} -name "*.gpg" | sed -e "s@$PASSWORD_STORE_DIR/@@" -e '\''s/\.gpg$//'\'' | fzf | xargs pass show -c' alias fzps='fzf --print0 | xargs -0I{}' alias dcb='docker build' @@ -253,7 +255,7 @@ alias dbinf='ssh db dlinfo' alias sshdb='ssh -t db tmux a' alias dbsmu='rsync -aPz db:/media/basilisk/music/ /media/kilimanjaro/music' -alias cfg='git --git-dir=$HOME/src/dotfiles/.git --work-tree=$HOME/src/dotfiles' +alias cfg='git --git-dir=~/src/dotfiles/.git --work-tree=~/src/dotfiles' # oh-my-zsh git aliases alias g='git' alias ga='git add' -- cgit v1.2.3 From c38509e3458df535231378ad6be6e5e356b35ae4 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 4 Aug 2023 22:34:35 +0200 Subject: redirect google to qwant --- config/extra/tridactyl/tridactylrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/extra/tridactyl/tridactylrc b/config/extra/tridactyl/tridactylrc index c48ffe1..2de07b4 100644 --- a/config/extra/tridactyl/tridactylrc +++ b/config/extra/tridactyl/tridactylrc @@ -8,7 +8,8 @@ set searchurls.aur https://aur.archlinux.org/packages?O=0&K=%s set searchurls.aw https://wiki.archlinux.org/title/%s set searchurls.cnrtl http://www.cnrtl.fr/lexicographie/ set searchurls.dhu https://hub.docker.com/search?q=%s -set searchurls.g https://www.google.com/search?q=%s +set searchurls.g https://www.qwant.com/?q=%s +set searchurls.google https://www.qwant.com/?q=%s set searchurls.gm https://www.google.com/maps?q=%s set searchurls.gwi https://wiki.gentoo.org/index.php?title=Special%3ASearch&profile=default&fulltext=Search&search= set searchurls.im https://www.imdb.com/find?q=%s -- cgit v1.2.3 From 4c7c339845481b7c2e9b630525fd83da988adbb0 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 4 Aug 2023 22:35:01 +0200 Subject: use hyprland/workspaces --- config/hyprland/waybar/config.jsonc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index aadc6d3..d2bad38 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -1,10 +1,21 @@ { "layer": "top", - "modules-left": ["battery", "clock", "wlr/workspaces", "mpd"], + "modules-left": ["battery", "clock", "hyprland/workspaces", "mpd"], "modules-center": ["hyprland/window"], "modules-right": ["custom/wireguard", "network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"], - "wlr/workspaces": { - "on-click": "activate", + "hyprland/workspaces": { + "format": "{icon}", + "format-icons": { + "1": "I", + "2": "II", + "3": "III", + "4": "IV", + "5": "V", + "6": "VI", + "7": "VII", + "8": "VIII", + "9": "IX", + }, }, "mpd": { "tooltip": false, -- cgit v1.2.3 From 5990d6ceb18e6afdfd8b6f13ab8dce5d94302d97 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 4 Aug 2023 22:35:17 +0200 Subject: change text-shadow --- config/hyprland/waybar/schemes/base16.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hyprland/waybar/schemes/base16.css b/config/hyprland/waybar/schemes/base16.css index 19bb703..589cc12 100644 --- a/config/hyprland/waybar/schemes/base16.css +++ b/config/hyprland/waybar/schemes/base16.css @@ -75,7 +75,7 @@ window#waybar.PCSX2 #window { } #workspaces button.active { - text-shadow: 1px 0px 1px @background; + text-shadow: 0px 1px 0px @color1; } #workspaces button:hover { -- cgit v1.2.3 From bdeda6f2ab14c58ffa83711415bc93474b2f77cb Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 4 Aug 2023 22:35:28 +0200 Subject: [nvim] added + keybind --- config/essentials/nvim/lua/user/remap.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/essentials/nvim/lua/user/remap.lua b/config/essentials/nvim/lua/user/remap.lua index 0fe4164..7c6d87f 100644 --- a/config/essentials/nvim/lua/user/remap.lua +++ b/config/essentials/nvim/lua/user/remap.lua @@ -34,6 +34,8 @@ vim.keymap.set("c", "", "", { noremap = true }) vim.keymap.set("v", "J", "m '>+1gv=gv", { noremap = true }) vim.keymap.set("v", "K", "m '<-2gv=gv", { noremap = true }) +vim.keymap.set("n", "+", "tabe .", { noremap = true }) + -- clipboard vim.keymap.set("n", "y", "\"+y", { noremap = true }) -- cgit v1.2.3 From e850f3a1702b4d8b9d0cfec5c07d710b5201ed29 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 4 Aug 2023 22:36:30 +0200 Subject: edited toush to fit needs --- bin/common/toush | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/bin/common/toush b/bin/common/toush index dd675b9..eb2d7cf 100755 --- a/bin/common/toush +++ b/bin/common/toush @@ -1,14 +1,10 @@ #!/bin/sh -# fork of -# https://codeberg.org/futxlii/bin/toush :) +# idea from https://codeberg.org/futxlii/bin/toush :) shebang='#!/bin/sh' -usage() { >&2 printf 'Usage: %s' "${0##*/}"; exit 1 ;} +[ -f "$1" ] && exit 1 -[ "$1" ] || usage -while [ "$1" ]; do - [ -f "$1" ] && usage - printf '%s\n\n' "$shebang" > "$1" && chmod +x "$1" - shift -done +printf '%s\n\n' "$shebang" > "$1" && + chmod +x "$1" && $EDITOR "$1" +grep -qv "$shebang\|^$" "$1" || rm "$1" -- cgit v1.2.3