From 7bdcc36d0adef234f70066ec1a0d344486da0dcc Mon Sep 17 00:00:00 2001 From: Tibeuleu <> Date: Fri, 12 Apr 2024 22:31:42 +0200 Subject: [PATCH] local changes to artixbook --- .config/i3/config | 8 ++++---- .config/lf/lfrc | 1 + .config/newsboat/urls | 2 +- .local/bin/mounter | 8 +++++--- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index f2a4996..fe52aa4 100755 --- a/.config/i3/config +++ b/.config/i3/config @@ -72,11 +72,11 @@ bindsym $mod+Shift+q [con_id="__focused__" instance="^(?!dropdown_).*$"] exec - bindsym $mod+w exec --no-startup-id $BROWSER bindsym $mod+Shift+w exec $term -e nmtui -#bindsym $mod+e exec --no-startup-id element-desktop -bindsym $mod+Shift+e exec --no-startup-id dmenuunicode +#bindsym $mod+r exec --no-startup-id element-desktop +bindsym $mod+Shift+r exec --no-startup-id dmenuunicode -bindsym $mod+r exec $term -e lf -bindsym $mod+Shift+r exec $term -e ranger +bindsym $mod+e exec $term -e lf +bindsym $mod+Shift+e exec $term -e ranger #bindsym $mod+y exec $term -e calcurse bindsym $mod+Shift+y exec --no-startup-id i3resize left diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 904cbf2..796c1f9 100755 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -22,6 +22,7 @@ cmd open ${{ image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\)\(_large\)*$" | sxiv -aio 2>/dev/null | lf-select ;; audio/*) mpv --audio-display=no $f ;; video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;; + application/vnd.oasis.opendocument*|application/vnd.collabio.xodocuments*) setsid -f libreoffice $f >/dev/null 2>&1 ;; application/pdf|application/vnd*|application/epub*) setsid -f zathura $fx >/dev/null 2>&1 ;; *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;; esac diff --git a/.config/newsboat/urls b/.config/newsboat/urls index 7833e0a..f598995 100755 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -1,4 +1,4 @@ -"query:astro-interesting:tags # \"astro\" and (content # \"AGN\" or content =~ \"polari.*\") and unread = \"yes\"" astro +"query:astro-interesting:tags # \"astro\" and (content # \"AGN\" or content =~ \"polari\") and unread = \"yes\"" astro "query:astro-open-new:tags # \"astro\" and tags # \"open-pub\" and unread = \"yes\"" astro open-pub "query:astro-priv-new:tags # \"astro\" and tags # \"priv-pub\" and unread = \"yes\"" astro priv-pub https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/meetings/rssFeed astro meeting diff --git a/.local/bin/mounter b/.local/bin/mounter index 2c84869..6611a0a 100755 --- a/.local/bin/mounter +++ b/.local/bin/mounter @@ -66,10 +66,12 @@ case "$chosen" in chosen="${chosen%% *}" chosen="${chosen:1}" # This is a bashism. attemptmount || getmount - partitiontype="$(lsblk -no "fstype" "$chosen")" + partitiontype="$(sudo -A lsblk -no "fstype" "$chosen")" + userid="$(id -u)" + groupid="$(id -g)" case "$partitiontype" in - "vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;; - *) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" "$mp";; + "vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,uid="$userid",gid="$groupid",umask=0000;; + *) sudo -A mount "$chosen" "$mp"; sudo -A chown "$userid":"$groupid" "$mp";; esac # sudo -A mount "$chosen" "$mp" -o uid="$(id -u)",gid="$(id -g)" notify-send "💾Drive Mounted." "$chosen mounted to $mp."