summaryrefslogtreecommitdiff
path: root/ar/.config
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.config')
-rw-r--r--ar/.config/mpv/scripts/navigator.lua12
-rw-r--r--ar/.config/shell/bm-dirs6
-rw-r--r--ar/.config/taskopen/taskopenrc2
3 files changed, 11 insertions, 9 deletions
diff --git a/ar/.config/mpv/scripts/navigator.lua b/ar/.config/mpv/scripts/navigator.lua
index af7595c..4533f60 100644
--- a/ar/.config/mpv/scripts/navigator.lua
+++ b/ar/.config/mpv/scripts/navigator.lua
@@ -1,6 +1,8 @@
local utils = require("mp.utils")
local mpopts = require("mp.options")
local assdraw = require("mp.assdraw")
+local user = os.getenv("USER") or "si"
+local home = os.getenv("HOME") or ("/home/" .. user)
ON_WINDOWS = (package.config:sub(1, 1) ~= "/")
WINDOWS_ROOTDIR = false
@@ -33,12 +35,12 @@ local settings = {
--favorites in format { 'Path to directory, notice trailing /' }
--on windows use double backslash c:\\my\\directory\\
favorites = {
- "/media/si",
+ "/media/" .. user,
"/mnt/second/videos",
- "/home/si/Downloads",
- "/home/si/Torrents/complete",
- "/home/si/Videos",
- "/home/si/.config/mpv/playlists",
+ home .. "/Downloads",
+ home .. "/Torrents/complete",
+ home .. "/Videos",
+ home .. "/.config/mpv/playlists",
},
--list of paths to ignore. the value is anything that returns true for if-statement.
--directory ignore entries must end with a trailing slash,
diff --git a/ar/.config/shell/bm-dirs b/ar/.config/shell/bm-dirs
index a44079e..45e3647 100644
--- a/ar/.config/shell/bm-dirs
+++ b/ar/.config/shell/bm-dirs
@@ -48,8 +48,8 @@ Esv /etc/runit/sv
gdc ${XDG_DOCUMENTS_DIR:-${HOME}/Documents}
gdk ${XDG_DESKTOP_DIR:-${HOME}/Desktop}
gdn ${XDG_DOWNLOAD_DIR:-${HOME}/Downloads}
-gfx $HOME/.mozilla/firefox/si.default
-gkd ${XDG_DATA_HOME:-${HOME}/.local/share}/kakaotalk/drive_c/users/si/Documents/KakaoTalk-Downloads
+gfx $HOME/.mozilla/firefox/$USER.default
+gkd ${XDG_DATA_HOME:-${HOME}/.local/share}/kakaotalk/drive_c/users/$USER/Documents/KakaoTalk-Downloads
gmu ${XDG_MUSIC_DIR:-${HOME}/Music}
gpb ${XDG_PUBLICSHARE_DIR:-${HOME}/Public}
gpp ${XDG_PICTURES_DIR:-${HOME}/Pictures}
@@ -61,7 +61,7 @@ gti $HOME/Torrents/incomplete
gtt $HOME/Torrents
gvr ${XDG_VIDEOS_DIR:-${HOME}/Videos}/recordings
gvv ${XDG_VIDEOS_DIR:-${HOME}/Videos}
-gwf $HOME/.librewolf/si.default
+gwf $HOME/.librewolf/$USER.default
gwo ${XDG_DESKTOP_DIR:-${HOME}/Desktop}/Work
gww ${XDG_PICTURES_DIR:-${HOME}/Pictures}/wallpaper
Hbk /mnt/second/backup
diff --git a/ar/.config/taskopen/taskopenrc b/ar/.config/taskopen/taskopenrc
index 36c99d7..761f764 100644
--- a/ar/.config/taskopen/taskopenrc
+++ b/ar/.config/taskopen/taskopenrc
@@ -11,7 +11,7 @@ path_ext=/usr/share/taskopen/scripts
nvimline.target=annotations
nvimline.labelregex=".*"
nvimline.regex="^nvimline:(\\d+):(.*)"
-nvimline.command="/home/si/.local/bin/taksopenline $FILE $TASK_DESCRIPTION"
+nvimline.command="$HOME/.local/bin/task/taskopen-line $FILE $TASK_DESCRIPTION"
nvimline.modes="batch,any,normal"
files.target=annotations
files.labelregex=".*"