summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-20 03:41:29 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-20 03:41:29 -0500
commitd49c79933e7b85a24238f6f373261de1d71d7072 (patch)
tree677bebe3b68c1c31125be064ba1a746f44c7a52f /.config
parent06185bde8c8beadecab629eaff51835244ff748a (diff)
Wallpapers from lf + fix shortcutgen
Diffstat (limited to '.config')
-rwxr-xr-x.config/lf/lfrc24
-rw-r--r--.config/shortcutrc55
2 files changed, 34 insertions, 45 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 20d396e..93c9029 100755
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -121,7 +121,7 @@ map J $lf -remote "send $id cd $(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//'
map D delete
map <c-n> push :mkdir<space>
map <c-r> reload
-map <c-s> set hidden!
+map . set hidden!
map <enter> shell
map x $$f
map X !$f
@@ -141,26 +141,8 @@ map <c-y> up
map V push :!nvim<space>
map W $setsid -f $TERMINAL >/dev/null 2>&1
-
map Y $printf "%s" "$fx" | xclip -selection clipboard
+map E $dropbox-cli exclude add "%s" | notify-send "Dropbox" "Excluded %s from syncing."
# Source Bookmarks
-# source "~/.config/lf/shortcutrc"
-
-# TODO: Automate this
-map gcf cd ~/.config
-map gbx cd ~/Dropbox
-map gom cd ~/Dropbox/org
-map gdl cd ~/Downloads
-map gwp cd ~/Pictures/wallpapers
-map gdb cd ~/Dropbox
-map gvi cd ~/.config/nvim
-map gvdi cd ~/Workspace/vdi
-map gws cd ~/Workspace
-map gwb cd ~/Workspace/website
-map gsc cd ~/.local/bin
-map gcp cd ~/.local/src
-map gsx cd ~/.config/sxhkd
-map gimg cd ~/Dropbox/A/Personnal/Photos/unsorted
-map gsf cd ~/Dropbox/A/scholar/sherbrooke/24-01
-map gcmp cd ~/.local/src
+source "~/.config/lf/shortcuts"
diff --git a/.config/shortcutrc b/.config/shortcutrc
index 141bde4..4dec5e6 100644
--- a/.config/shortcutrc
+++ b/.config/shortcutrc
@@ -1,30 +1,37 @@
# _____ _ _ _
-# / ____| | | | | |
+# / ____| | | | | \
# | (___ | |__ ___ _ __| |_ ___ _ _| |_ _ __ ___
-# \___ \| '_ \ / _ \| '__| __/ __| | | | __| '__/ __|
+# \___ \| '_ \ / _ \| '__| __/ __| | | | __| '__/ __\
# ____) | | | | (_) | | | || (__| |_| | |_| | | (__
-# |_____/|_| |_|\___/|_| \__\___|\__,_|\__|_| \___|
+# |_____/|_| |_|\___/|_| \__\___|\__,_|\__|_| \___\
#
-
-
-
# #---Universal Shortcut Configuration File---# #
-# First column should have the directory's Label
-# Second column should contain the shortcut itself
-# (without the modifier)
-# Third column should contain the directory itself
-# (It can contain environmental variables)
+# This file aims to provide a simple way to configure
+# universal shortcuts for your system. Treat it in the
+# following way:
+# - Lines starting with '#' and empty are ignored
+# - Everything else is treated as a 3 column comma separated csv
+# - Commas can be escaped with a backslash
+# - columns 2 and 3 should not contain spaces
+# Columns are as follows (left to right):
+# 1. Name of the shortcut (for display purposes in certain programs)
+# 2. The shortcut itself
+# 3. The path to the directory
+# Here are examples of how I use this file with my shell:
+# - uppercase shortcuts prepended by 'G' are ENV variables to these paths
+# - lowercase shortcuts prepended by 'g' are aliases to these paths
+# Here are examples of how I use this file with my file manager (lf):
+# - lowercase shortcuts prepended by 'g' go to these paths
+# - lowercase shortcuts prepended by 'y' copies selected files to these paths
+# - lowercase shortcuts prepended by 'm' moves selected files to these paths
-|----------------+-----+--------------------------------------------------|
-| Config | cf | $HOME/.config |
-| Downloads | dl | $HOME/Downloads |
-| Wallpaper | wp | $HOME/Pictures/wallpapers |
-| Dropbox | db | $HOME/Dropbox |
-| Music | ms | $HOME/Music |
-| Neovim | vi | $HOME/.config/nvim |
-| Scripts | sc | $HOME/.local/bin |
-| Hotkeys | sx | $HOME/.config/sxhkd |
-| Images | img | $HOME/Dropbox/A/Personnal/Photos/unsorted |
-| School | sf | $HOME/Dropbox/A/scholar/sherbrooke/24-01 |
-| Compilation | cp | $HOME/.local/src |
-|----------------+-----+--------------------------------------------------|
+Config, cf, ~/.config
+Neovim, vi, ~/.config/nvim
+School, sf, ~/Dropbox/A/scholar/sherbrooke/24-01
+Images, img, ~/Dropbox/A/Personnal/Photos/unsorted
+Scripts, sc, ~/.local/bin
+Hotkeys, sx, ~/.config/sxhkd
+Dropbox, bx, ~/Dropbox
+Downloads, dl, ~/Downloads
+Wallpapers, wp, ~/Pictures/wallpapers
+Compilation, cp, ~/.local/src