diff --git a/.bashrc b/.bashrc index 4bd2c49..4817314 100755 --- a/.bashrc +++ b/.bashrc @@ -189,3 +189,5 @@ PS1="${CYAN}[\u@\h ${YELLOW}\w${GREEN}\$(parse_git_branch)${CYAN}]${WHITE}${RESE ####################################################### # Set SSH_AUTH_SOCK to use Gnome Keyring's SSH agent export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh" + +todo ls diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 794a105..55e846f 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -12,7 +12,7 @@ c.fonts.tabs.selected = "13pt default_family" c.fonts.tabs.unselected = "13pt default_family" c.zoom.default = "130%" c.content.javascript.enabled = False -c.downloads.location.directory = "~/downloads" +c.downloads.location.directory = "~/dls" c.editor.command = ["alacritty", "-e", "nvim", "{}"] c.editor.encoding = "utf-8" c.auto_save.session = True diff --git a/.config/sway/config b/.config/sway/config index ea85185..5f73589 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -202,7 +202,7 @@ exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=ssh exec /usr/bin/syncthing # Notifications -exec_always pgrep -x dunst > /dev/null || dunst +exec_always sh -c 'pgrep -x dunst > /dev/null || dunst' # Wlsunset (Night Light) exec_always pgrep -x wlsunset > /dev/null || wlsunset -l 47.6 -L -122.3 -t 3500 -T 6000 diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs index e84f211..7eb2e63 100644 --- a/.config/user-dirs.dirs +++ b/.config/user-dirs.dirs @@ -6,10 +6,10 @@ # absolute path. No other format is supported. # XDG_DESKTOP_DIR="$HOME/desktop" -XDG_DOWNLOAD_DIR="$HOME/downloads" +XDG_DOWNLOAD_DIR="$HOME/dls" XDG_TEMPLATES_DIR="$HOME/" XDG_PUBLICSHARE_DIR="$HOME/" -XDG_DOCUMENTS_DIR="$HOME/documents" +XDG_DOCUMENTS_DIR="$HOME/docs" XDG_MUSIC_DIR="$HOME/music" -XDG_PICTURES_DIR="$HOME/pictures" +XDG_PICTURES_DIR="$HOME/pics" XDG_VIDEOS_DIR="$HOME/" diff --git a/.gitignore b/.gitignore index 8af5140..fb8ebe9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .config/qutebrowser/quickmarks +.config/qutebrowser/qsettings/ +.config/qutebrowser/autoconfig.yml .config/borgmatic/config.yaml .config/beets/beets-library.db .config/beets/state.pickle diff --git a/.local/bin/bookmark_insert b/.local/bin/bookmark_insert index b292b07..69c3035 100755 --- a/.local/bin/bookmark_insert +++ b/.local/bin/bookmark_insert @@ -1,5 +1,6 @@ #!/bin/sh +clipboard_text=$(wl-paste) bookmarks_file="$HOME/.local/share/bookmarks/bookmarks" if [ ! -f "$bookmarks_file" ]; then @@ -8,10 +9,6 @@ if [ ! -f "$bookmarks_file" ]; then exit 1 fi -# Try clipboard first, fall back to primary -clipboard_text=$(wl-paste --no-newline 2>/dev/null) -[ -z "$clipboard_text" ] && clipboard_text=$(wl-paste -p --no-newline 2>/dev/null) - # Trim leading/trailing whitespace clipboard_text=$(echo "$clipboard_text" | xargs) @@ -25,8 +22,10 @@ if [ -n "$clipboard_text" ]; then else echo "$clipboard_text" >> "$bookmarks_file" notify-send "Bookmark saved" "$clipboard_text" + + # Run git update script sh "$HOME/.local/bin/bookmark_update" fi else - notify-send "No text to save" "Clipboard and primary selection are empty." + notify-send "No text selected" "Please highlight some text to save as a bookmark." fi