diff options
| -rw-r--r-- | ar/.config/calcurse/conf | 6 | ||||
| -rw-r--r-- | ar/.config/calcurse/keys | 96 | ||||
| -rw-r--r-- | ar/.config/mpv/scripts/change-OSD-media-title.lua | 4 | ||||
| -rw-r--r-- | ar/.config/zsh/keymaps.zsh | 2 | ||||
| -rw-r--r-- | ar/.config/zsh/scripts.zsh | 14 | ||||
| -rwxr-xr-x | ar/.local/bin/openurl | 16 | ||||
| -rw-r--r-- | ar/.urlview | 2 |
7 files changed, 86 insertions, 54 deletions
diff --git a/ar/.config/calcurse/conf b/ar/.config/calcurse/conf index 98b1a3b..2594e77 100644 --- a/ar/.config/calcurse/conf +++ b/ar/.config/calcurse/conf @@ -1,7 +1,7 @@ appearance.calendarview=monthly appearance.compactpanels=no appearance.defaultpanel=calendar -appearance.layout=3 +appearance.layout=5 appearance.headerline=yes appearance.eventseparator=yes appearance.dayseparator=yes @@ -21,9 +21,9 @@ format.appointmenttime=%H:%M format.outputdate=%D format.dayheading=%B %e, %Y general.autogc=no -general.autosave=yes +general.autosave=no general.confirmdelete=yes -general.confirmquit=yes +general.confirmquit=no general.firstdayofweek=monday general.multipledays=yes general.periodicsave=0 diff --git a/ar/.config/calcurse/keys b/ar/.config/calcurse/keys index 49b4826..3304bbb 100644 --- a/ar/.config/calcurse/keys +++ b/ar/.config/calcurse/keys @@ -6,51 +6,51 @@ # via the key configuration menu of the interactive user # interface. It should not be edited directly. -generic-cancel ESC -generic-select SPC -generic-credits @ -generic-help ? -generic-quit q Q -generic-save s S ^S -generic-reload R -generic-copy c -generic-paste p ^V -generic-change-view TAB -generic-prev-view KEY_BTAB -generic-import i I -generic-export x X -generic-goto g G -generic-other-cmd o O -generic-config-menu C -generic-redraw ^R -generic-add-appt ^A -generic-add-todo ^T -generic-prev-day T ^H -generic-next-day t ^L -generic-prev-week W ^K -generic-next-week w -generic-prev-month M -generic-next-month m -generic-prev-year Y -generic-next-year y -generic-scroll-down ^N -generic-scroll-up ^P -generic-goto-today ^G -generic-command : -move-right l L RGT -move-left h H LFT -move-down j J DWN -move-up k K UP -start-of-week 0 -end-of-week $ -add-item a A -del-item d D -edit-item e E -view-item v V RET -pipe-item | -flag-item ! -repeat r -edit-note n N -view-note > -raise-priority + -lower-priority - +generic-cancel ESC +generic-select SPC +generic-credits @ +generic-help ? +generic-quit q Q +generic-save s S ^S +generic-reload R +generic-copy c +generic-paste p ^V +generic-change-view TAB +generic-prev-view KEY_BTAB +generic-import i I +generic-export x X +generic-goto g G +generic-other-cmd o O +generic-config-menu C +generic-redraw ^R +generic-add-appt ^A +generic-add-todo ^T +generic-prev-day T ^H +generic-next-day t ^L +generic-prev-week W ^K +generic-next-week w +generic-prev-month M +generic-next-month m +generic-prev-year Y +generic-next-year y +generic-scroll-down ^N +generic-scroll-up ^P +generic-goto-today ^G +generic-command : +move-right l L RGT +move-left h H LFT +move-down j J DWN +move-up k K UP +start-of-week 0 +end-of-week $ +add-item a A +del-item d D +edit-item e E +view-item v V RET +pipe-item | +flag-item ! +repeat r +edit-note n N +view-note > +raise-priority + +lower-priority - diff --git a/ar/.config/mpv/scripts/change-OSD-media-title.lua b/ar/.config/mpv/scripts/change-OSD-media-title.lua index ba749f8..51701e1 100644 --- a/ar/.config/mpv/scripts/change-OSD-media-title.lua +++ b/ar/.config/mpv/scripts/change-OSD-media-title.lua @@ -18,8 +18,8 @@ function set_osd_title() if mp.get_property_osd("percent-pos") ~= "" then if mp.get_property_osd("percent-pos") ~= "100" then - percent_pos = mp.get_property_osd("percent-pos") .. "% completed | " - mp.set_property("force-media-title", playlist_num .. chapter .. percent_pos .. name) + percent_pos = " [ " .. mp.get_property_osd("percent-pos") .. "% completed ]" + mp.set_property("force-media-title", playlist_num .. chapter .. name .. percent_pos) else mp.set_property("force-media-title", playlist_num .. chapter .. name) end diff --git a/ar/.config/zsh/keymaps.zsh b/ar/.config/zsh/keymaps.zsh index b2195d4..7a02040 100644 --- a/ar/.config/zsh/keymaps.zsh +++ b/ar/.config/zsh/keymaps.zsh @@ -319,7 +319,7 @@ else bindkey -s '^V' '^uv.\n' bindkey -s '^Y' '^ulfcd\n' bindkey -s '^Z' '^upd\n' - # bindkey -s '^_' '^u\n' + bindkey -s '^_' '^ucht\n' bindkey -s '^X^A' '^uali\n' bindkey -s '^X^B' '^ugitopenbranch\n' bindkey -s '^X^D' '^ufD\n' diff --git a/ar/.config/zsh/scripts.zsh b/ar/.config/zsh/scripts.zsh index 0fa7397..5d45c0b 100644 --- a/ar/.config/zsh/scripts.zsh +++ b/ar/.config/zsh/scripts.zsh @@ -40,6 +40,20 @@ function fzf_aliases() { ########################################################################################### ########################################################################################### +### --- CHEAT.SH --- ### +function cht() { + if [ -z "$1" ]; then + printf "Enter program name: " + read prog + curl cht.sh/"$prog" + else + curl cht.sh/"$1" + fi +} + + +########################################################################################### +########################################################################################### ### --- COLOR --- ### # print color alias pcol=print_col diff --git a/ar/.local/bin/openurl b/ar/.local/bin/openurl new file mode 100755 index 0000000..cd096e1 --- /dev/null +++ b/ar/.local/bin/openurl @@ -0,0 +1,16 @@ +#!/bin/bash + +ext="${1##*.}" +mpvfiles="avi flv mkv mov mpeg mpg mp4 rmvb webm wmv w3m ogv ts 3gp" +nsxivfiles="png jpg jpeg jpe gif bmp tiff tif" +wgetfiles="mp3 flac opus wav aac wma m4a mp3?source=feed" + +if echo $mpvfiles | grep -w $ext >/dev/null; then + nohup mpv --loop --quiet "$1" >/dev/null 2>&1 & +elif echo $nsxivfiles | grep -w $ext >/dev/null; then + nohup nsxiv "$1" >/dev/null 2>&1 & +elif echo $wgetfiles | grep -w $ext >/dev/null; then + nohup wget "$1" >/dev/null 2>&1 & +else + nohup "$BROWSER" "$1" >/dev/null 2>&1 & +fi diff --git a/ar/.urlview b/ar/.urlview new file mode 100644 index 0000000..1ea0a03 --- /dev/null +++ b/ar/.urlview @@ -0,0 +1,2 @@ +REGEXP ((http|https|ftp|gopher|gemini|mailto):(//)?[^ <>"\t\)]+|(www|ftp)[0-9]?\.[-a-z0-9.]+)[^ .,;\t\n\r<">\):]?[^, <>"\t\)]*[^ .,;\t\n\r<">\):] +COMMAND openurl |
