Clean up, update configs to be actually useful now...

This commit is contained in:
Adriel Sand
2024-01-04 18:49:24 -08:00
parent 68d016d03e
commit c93f5d7caa
412 changed files with 4462 additions and 63004 deletions

BIN
.config/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -1,44 +0,0 @@
background_opacity: 0.7
font:
normal:
family: Source Code Pro
style: Regular
bold:
family: Source Code Pro
style: Bold
italic:
family: Source Code Pro
style: Italic
bold_italic:
family: Source Code Pro
style: Bold Italic
size: 11
#
# Colors (One Dark - https://github.com/atom/atom/tree/master/packages/one-dark-syntax)
colors:
primary:
background: '#282c34'
foreground: '#abb2bf'
cursor:
text: CellBackground
cursor: '#528bff' # syntax-cursor-color
selection:
text: CellForeground
background: '#3e4451' # syntax-selection-color
normal:
black: '#5c6370' # mono-3
red: '#e06c75' # red 1
green: '#98c379'
yellow: '#e5c07b' # orange 2
blue: '#61afef'
magenta: '#c678dd'
cyan: '#56b6c2'
white: '#828997' # mono-2
search:
bar:
foreground: '#abb2bf'
background: '#282c34'

View File

@@ -1,5 +0,0 @@
[FileDialog]
history=@Invalid()
lastVisited=file:///home/adriel
qtVersion=5.15.2
viewMode=Detail

View File

@@ -1,68 +0,0 @@
[General]
frontendId=org.albert.frontend.widgetboxmodel
hotkey=Meta+Shift+G
incrementalSort=false
showTray=true
terminal=alacritty -e
[org.albert.extension.applications]
enabled=true
[org.albert.extension.calculator]
enabled=true
[org.albert.extension.chromium]
enabled=true
fuzzy=false
[org.albert.extension.files]
enabled=false
[org.albert.extension.hashgenerator]
enabled=false
[org.albert.extension.mpris]
enabled=true
[org.albert.extension.python]
enabled=true
[org.albert.extension.snippets]
enabled=true
[org.albert.extension.ssh]
enabled=true
[org.albert.extension.system]
enabled=true
[org.albert.extension.terminal]
enabled=true
[org.albert.extension.virtualbox]
enabled=false
[org.albert.extension.websearch]
enabled=true
[org.albert.frontend.qmlboxmodel]
alwaysOnTop=true
clearOnHide=false
hideOnClose=false
hideOnFocusLoss=true
showCentered=false
stylePath=/usr/share/albert/org.albert.frontend.qmlboxmodel/styles/BoxModel/MainComponent.qml
windowPosition=@Point(760 523)
[org.albert.frontend.widgetboxmodel]
alwaysOnTop=true
clearOnHide=false
displayIcons=true
displayScrollbar=false
displayShadow=true
hideOnClose=false
hideOnFocusLoss=true
itemCount=10
showCentered=true
theme=Spotlight Dark
windowPosition=@Point(620 283)

Binary file not shown.

View File

@@ -1 +0,0 @@
0.17.2

View File

@@ -1,32 +0,0 @@
[
{
"iconPath": ":duckduckgo",
"name": "DuckDuckGo",
"trigger": "dd ",
"url": "https://duckduckgo.com/?q=%s"
},
{
"iconPath": "/home/adriel/.config/albert/org.albert.extension.websearch/{d7c7cd85-d4b4-4a25-ad3d-94026469ef9f}.",
"name": "YewTube",
"trigger": "yt ",
"url": "https://yewtu.be/results?search_query=%s"
},
{
"iconPath": ":github",
"name": "GitHub",
"trigger": "gh ",
"url": "https://github.com/search?utf8=✓&q=%s"
},
{
"iconPath": ":amazon",
"name": "Amazon",
"trigger": "ama ",
"url": "http://www.amazon.com/s/?field-keywords=%s"
},
{
"iconPath": ":wolfram",
"name": "Wolfram Alpha",
"trigger": "=",
"url": "https://www.wolframalpha.com/input/?i=%s"
}
]

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -1,25 +0,0 @@
[BoxModel]
animation_duration=200
background_color="@Variant(\0\0\0\x43\x1\xa7\xa7\x32\x32\x37\x37;;\0\0)"
border_color=@Variant(\0\0\0\x43\x1\xff\xffUU\x95\x95\xdf\xdf\0\0)
border_size=0
cursor_color=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
font_name=Google Sans
foreground_color=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
highlight_color=@Variant(\0\0\0\x43\x1\xff\xff\x61\x61\xab\xab\xff\xff\0\0)
icon_size=15
input_color=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
input_fontsize=24
item_description_fontsize=12
item_title_fontsize=16
max_items=8
padding=4
radius=7
selection_color=@Variant(\0\0\0\x43\x1\xff\xff\xc0\xc0\xc0\xc0\xc0\xc0\0\0)
settingsbutton_color=@Variant(\0\0\0\x43\x1\xff\xff\"\"&&))\0\0)
settingsbutton_hover_color=@Variant(\0\0\0\x43\x1\xff\xffUU\x95\x95\xdf\xdf\0\0)
settingsbutton_size=15
shadow_color=@Variant(\0\0\0\x43\x1\0\0\0\0\0\0\0\0\0\0)
shadow_size=0
spacing=6
window_width=400

Binary file not shown.

Binary file not shown.

View File

@@ -1 +0,0 @@
--enable-features=UseOzonePlatform --ozone-platform=wayland

View File

@@ -0,0 +1,280 @@
# Theme file for CliFM
# Theme name: clifm (256 colors version)
# Author: L. Abramovich
# License: GPL3
### How do we define colors?
#
# FiletypeColors, InterfaceColors, and ExtColors use the same format used
# by the LS_COLORS environment variable. Thus, "di=01;34" means that (non-empty)
# directories will be printed in bold blue.
#
# Color codes are just traditional ANSI escape sequences less the escape char
# and the final 'm'.
# 4-bit (16 colors), 8-bit (256 colors), and 24-bit (RGB/HEX) colors are supported.
# Example:
# 31 4-bit
# 38;5;160 8-bit
# 38;2;255;0;0 24-bit (RGB)
# #ff0000 24-bit (HEX)
#
# One attribute can be used for hex colors using a dash and an attribute
# number (RRGGBB-[1-9]), where 1-9 is:
#
# 1: Bold or increased intensity
# 2: Faint, decreased intensity or dim
# 3: Italic (Not widely supported)
# 4: Underline
# 5: Slow blink
# 6: Rapid blink
# 7: Reverse video or invert
# 8: Conceal or hide (Not widely supported)
# 9: Crossed-out or strike
#
# For example, to print bold red color, the hex code is #ff0000-1
### Use some variables to hold your color codes
#
# The 'define' keyword allows you to define up to 128 custom color variables.
# They can be used for:
# FiletypeColors
# InterfaceColors
# ExtColors
# DirIconColor
#
# For example, if 'M' is defined as "00;01;36", we can use this color for
# ELN's as follows: "el=M" (see below)
define D=0 # Default terminal color
define BD=1 # Bold
define DIM=2 # Dimmed
define DR=2;38;5;197 # Dimmed red
define R8=31 # Red (4-bit)
define BR8=1;31 # Bold red (4-bit)
define UR8=4;31 # Underlined red (4-bit)
define UDR8=4;2;31 # Underlined dimmed red (4-bit)
define DR8=2;31 # Dimmed red (4-bit)
define G=38;5;76 # Green
define G8=32 # Green (4-bit)
define BG8=1;32 # Bold green (4-bit)
define DG8=2;32 # Dimmed green (4-bit)
define Y=38;5;228 # Yellow
define BY=1;38;5;229 # Bold yellow
define LY=38;5;185 # Light yellow
define DY8=2;33 # Dimmed yellow (4-bit)
define BY8=1;33 # Bold yellow (4-bit)
define BB8=1;34 # Bold blue (4-bit)
define DB8=2;34 # Dimmed blue (4-bit)
define M=38;5;170 # Magenta
define M8=35 # Magenta (4-bit)
define BM8=1;35 # Bold magenta (4-bit)
define DM8=2;35 # Dimmed magenta (4-bit)
define UM8=4;35 # Underlined magenta (4-bit)
define UDM8=4;2;35 # Underlined dimmed magenta (4-bit)
define C=38;5;43 # Cyan
define C8=36 # Cyan (4-bit)
define BC8=1;36 # Bold cyan (4-bit)
define DC8=2;36 # Dimmed cyan (4-bit)
define BDC8=1;2;36 # Bold dimmed cyan (4-bit)
define RC8=7;36 # Reverse cyan (4-bit)
define UDC8=4;2;36 # Underlined dimmed cyan (4-bit)
define DW=38;5;246 # Dimmed white
define DW8=2;37 # Dimmed white (4-bit)
define UDW8=4;2;37 # Underlined dimmed white (4-bit)
# Foreground-background combinations
define URW=4;31;47 # Red foreground, white background
define WR=37;41 # White foreground, red background
# K stands for black (B is used for Blue)
define KY=30;43 # Black foreground, yellow background
define KR=30;41 # Black foreground, red background
define KG=30;42 # Black foreground, green background
# BG is already used for bold green
define BlGr=34;42 # Blue foreground, green background
define WB=37;44 # white foreground, blue background
define O=38;5;214 # Orange
define BO=1;38;5;214 # Bold orange
# File groups (used for file extensions)
define DOC=38;5;228 # Yellow
define VIDEO=1;35 # Bold magenta (4-bit)
define IMAGE=35 # Magenta (4-bit)
define SOUND=38;5;214 # Orange
define CODE=1;38;5;247 # Bold gray
define ARCHIVE=1;31 # Bold red (4-bit)
define BOOK=38;5;223 # Salmon
define MARKUP=38;5;85 # Aqua
define TEMP=38;5;247 # Dimmed white
### To know what are we applying colors to, we use the following codes:
## File types
# bd = Block device
# ca = File with capabilities
# cd = Char device
# ed = Empty directory
# ee = Empty executable file
# ex = Executable file
# ef = Empty regular file
# fi = Regular file
# di = Directory
# ln = Symbolic link
# mh = Multi-hardlink file
# nd = Directory with no read permission
# ne = Empty directory with no read permission
# nf = Regular file with no read permission
# no = Unknown
# or = Broken symlink
# ow = Other-writable
# pi = FIFO/pipe
# sg = SGID file
# so = Socket
# st = Sticky (not other-writable)
# su = SUID file
# tw = Sticky and other-writable
# uf = Non-'stat'able file
## Interface
# bm = Bookmarked directory
# fc = Files counter
# df = Default color
# dl = Dividing line
# el = ELN color
# mi = Misc indicators
# ts = TAB completion suffix
# tt = Tilde for trimmed files
# wc = Welcome message
# wp = Warning prompt
## Auto-suggestions
# sb = Shell builtins
# sc = External commands and aliases
# sd = Internal commands description
# sf = File names
# sh = History
# sx = Internal commands and parameters
# sp = BAEJ suggestions pointer
# sz = File names (fuzzy)
## Syntax highlighting
# hb = Brackets () [] {}
# hc = Comments
# hd = Paths (slashes)
# he = Expansion operators: * ~
# hn = Numbers
# hp = Parameters: -
# hq = Quoted strings
# hr = Redirection >
# hs = Process separators | & ; */
# hv = Variables $ */
# hw = Wrong, non-existent command name
## File properties
# dd = Date (1)
# dg = UID, GID
# dn = dash (none)
# do = Permissions in octal notation
# dp = Special files (SUID, SGID, etc)
# dr = Read
# dw = Write
# dxd = Execute (dirs)
# dxr = Execute (reg files)
# dz = Size (1)
# (1) If unset, gradient colors will be used (default)
## Workspaces
# wsN = Workspace number N
## Prompt notifications
# em = Errors
# li = Selected files indicator
# nm = Notices
# ti = Trash indicator
# tx = Command line text
# si = Stealth mode indicator
# wm = Warnings
# xs = Exit code: success
# xf = Exit code: failure
# NOTE: Whenever a code is unset, the default value is used
# FiletypeColors defines the color used for file names when listing files,
# just as InterfaceColors defines colors for CliFM's interface.
FiletypeColors="bd=BY:ca=KR:cd=BO:di=BB8:ed=DB8:ee=G8:ef=DIM:ex=BG8:fi=D:ln=BC8:mh=RC8:nd=UBR8:ne=UDR8:nf=UDR8:no=URW:or=UDC8:ow=BlGr:pi=M:sg=KY:so=BM8:st=WB:su=WR:tw=KG:uf=UDW8:"
InterfaceColors="bm=BG8:dd=:df=D:dg=:dl=DW8:dn=DW8:do=C:dp=:dr=:dw=:dxd=G:dxr=C:dz=:el=C8:em=BR8:fc=DW:hb=C8:hc=DW8:hd=C8:he=C8:hn=:hp=C8:hq=LY:hr=R8:hs=G8:hv=G8:li=BG8:mi=BC8:nm=BG8:si=BB8:sb=DY8:sc=DC8:sd=DW8:sf=UDC8:sh=DM8:sp=DR8:sx=DG8:sz=UDM8:ti=BC8:ts=UM8:tt=BDC8:tx=D:wc=BC8:wm=BY8:wp=DR8:ws1=B8:ws2=R8:ws3=Y:ws4=G8:ws5=C:ws6=O:ws7=M:ws8=DW:xf=BR8:xs=G8:"
# Colors for specific file extensions (case insensitive)
ExtColors="*.tar=ARCHIVE:*.tgz=ARCHIVE:*.arc=ARCHIVE:*.arj=ARCHIVE:*.taz=ARCHIVE:*.lha=ARCHIVE:*.lz4=ARCHIVE:*.lzh=ARCHIVE:*.lzma=ARCHIVE:*.tlz=ARCHIVE:*.txz=ARCHIVE:*.tzo=ARCHIVE:*.t7z=ARCHIVE:*.zip=ARCHIVE:*.z=ARCHIVE:*.dz=ARCHIVE:*.gz=ARCHIVE:*.lrz=ARCHIVE:*.lz=ARCHIVE:*.lzo=ARCHIVE:*.xz=ARCHIVE:*.zst=ARCHIVE:*.tzst=ARCHIVE:*.bz2=ARCHIVE:*.bz=ARCHIVE:*.tbz=ARCHIVE:*.tbz2=ARCHIVE:*.tz=ARCHIVE:*.deb=ARCHIVE:*.rpm=ARCHIVE:*.jar=ARCHIVE:*.war=ARCHIVE:*.ear=ARCHIVE:*.sar=ARCHIVE:*.rar=ARCHIVE:*.alz=ARCHIVE:*.ace=ARCHIVE:*.zoo=ARCHIVE:*.cpio=ARCHIVE:*.7z=ARCHIVE:*.rz=ARCHIVE:*.cab=ARCHIVE:*.wim=ARCHIVE:*.swm=ARCHIVE:*.dwm=ARCHIVE:*.esd=ARCHIVE:*.apk=ARCHIVE:*.iso=ARCHIVE:*.img=ARCHIVE:*.avif=IMAGE:*.jpg=IMAGE:*.jpeg=IMAGE:*.jxl=IMAGE:*.mjpg=IMAGE:*.mjpeg=IMAGE:*.gif=IMAGE:*.bmp=IMAGE:*.xbm=IMAGE:*.xpm=IMAGE:*.png=IMAGE:*.svg=IMAGE:*.svgz=IMAGE:*.pcx=IMAGE:*.pbm=IMAGE:*.pgm=IMAGE:*.ppm=IMAGE:*.tga=IMAGE:*.tif=IMAGE:*.tiff=IMAGE:*.mng=IMAGE:*.mov=VIDEO:*.mpg=VIDEO:*.mpeg=VIDEO:*.m2v=VIDEO:*.mkv=VIDEO:*.webm=VIDEO:*.webp=VIDEO:*.ogm=VIDEO:*.mp4=VIDEO:*.m4v=VIDEO:*.mp4v=VIDEO:*.vob=VIDEO:*.qt=VIDEO:*.nuv=VIDEO:*.wmv=VIDEO:*.asf=VIDEO:*.rm=VIDEO:*.rmvb=VIDEO:*.flc=VIDEO:*.avi=VIDEO:*.fli=VIDEO:*.flv=VIDEO:*.gl=VIDEO:*.dl=VIDEO:*.xcf=VIDEO:*.xwd=VIDEO:*.yuv=VIDEO:*.cgm=VIDEO:*.emf=VIDEO:*.ogv=VIDEO:*.ogx=VIDEO:*.mov=VIDEO:*.mpg=VIDEO:*.mpeg=VIDEO:*.m2v=VIDEO:*.mkv=VIDEO:*.webm=VIDEO:*.webp=VIDEO:*.ogm=VIDEO:*.ogv=VIDEO:*.ogx=VIDEO:*.mp4=VIDEO:*.m4v=VIDEO:*.mp4v=VIDEO:*.vob=VIDEO:*.qt=VIDEO:*.nuv=VIDEO:*.wmv=VIDEO:*.flc=VIDEO:*.avi=VIDEO:*.fli=VIDEO:*.flv=VIDEO:*.asf=VIDEO:*.rm=VIDEO:*.rmvb=VIDEO:*.gl=VIDEO:*.dl=VIDEO:*.xcf=VIDEO:*.xwd=VIDEO:*.yuv=VIDEO:*.cgm=VIDEO:*.emf=VIDEO:*.aac=SOUND:*.au=SOUND:*.m4a=SOUND:*.mid=SOUND:*.midi=SOUND:*.mp3=SOUND:*.mka=SOUND:*.ogg=SOUND:*.opus=SOUND:*.spx=SOUND:*.wma=SOUND:*.wv=SOUND:*.wav=SOUND:*.flac=SOUND:*.aif=SOUND:*.pdf=BOOK:*.djvu=BOOK:*.epub=BOOK:*.mobi=BOOK:*.cbr=BOOK:*.cbz=BOOK:*.ps=DOC:*.sxw=DOC:*.doc=DOC:*.docx=DOC:*.xls=DOC:*.xlsx=DOC:*.xlr=DOC:*.sxi=DOC:*.ppt=DOC:*.pptx=DOC:*.odt=DOC:*.ods=DOC:*.odp=DOC:*.rtf=DOC:*.c=CODE:*.c++=CODE:*.cc=CODE:*.cpp=CODE:*.h=CODE:*.h++=CODE:*.hh=CODE:*.go=CODE:*.java=CODE:*.js=CODE:*.lua=CODE:*.php=CODE:*.rb=CODE:*.rs=CODE:*.kt=CODE:*.kts=CODE:*.hs=CODE:*.pl=CODE:*.vb=CODE:*.html=MARKUP:*.htm=MARKUP:*.shtml=MARKUP:xhtml=MARKUP:*.xml=MARKUP:*.css=MARKUP:*.tex=MARKUP:*.ltx=MARKUP:*.md=MARKUP:*.cache=TEMP:*.tmp=TEMP:*.temp=TEMP:*.log=TEMP:*.bak=TEMP:*.bk=TEMP:*.in=TEMP:*.out=TEMP:*.part=TEMP:*.aux=TEMP:*.old=TEMP:*.orig=TEMP:*.rej=TEMP:*.swp=TEMP:*.pid=TEMP:"
# The series of color shades used to print timestamps
# The format is: "COLOR-TYPE,ERROR,SHADE1,SHADE2,SHADE3,SHADE4,SHADE5"
#
# COLOR-TYPE is one of: 1 (4-bit: 8 colors), 2 (8-bit: 256 colors), 3 (24-bit: truecolor)
# ERROR is the color used to print bad values
# SHADEn is the color used for the shade N
#
# For 4-bit colors (1), valid colors are in the range 30-37
# For 8-bit colors (2), valid colors are in the range 0-255
# For 24-bit colors (3), valid colors have this format: #RRGGBB
#
# An attribute (0-9) can be added to any color (either ERROR or SHADE) using a dash.
# For example:
# "34-1" -> "bold blue" (4-bit colors notation)
# "226-2" -> "dimmed yellow" (8-bit colors notation)
# "#ffaff00-4" -> "underlined orange" (24-bit colors notation)
#DateShades="1,31-2,36-1,36,36-2"
#DateShades="2,196-2,231,253,250,247,244"
#DateShades="3,#ff0000-2,#ffffff,#dadada,#bcbcbc,#9e9e9e,#808080"
#NOTE: For DateShades to work, the 'dd' color code (solid color for dates) needs to be unset (default)
# Same as DateShades, but for file sizes
#SizeShades="1,31-2,32,33,31"
#SizeShades="2,196-2,43,76,227,214,202"
#SizeShades="3,#ff0000-2,#00d7af,#87d700,#ffff5f,#ffaf00,#ff5f00"
#NOTE: For SizeShades to work, the 'dz' color code (solid color for sizes) needs to be unset (default)
# If icons are enabled, use this color for directories icon (only for icons-in-terminal and Nerd-fonts)
DirIconColor="Y"
# The prompt used by CliFM. Use the 'prompt' command to check for available
# prompts. Enter 'prompt --help' for more information
# You can use here either prompt codes (see the prompts.clifm file for details)
# or a prompt name defined in the prompts file
Prompt="clifm"
#Prompt=curves
# Override prompt values (as defined in the prompts file)
#Prompt=""
#Notifications=
#EnableWarningPrompt=
#WarningPrompt=""
# The string used to construct the line dividing the list of files and
# the prompt (Unicode is supported). Possible values:
# "0": Print just an empty line
# "C": C is a single char. This char is printed up to the end of the screen
# "CCC": 3 or more chars. Only these chars (no more) will be printed
# "": Print a special line drawn with box-drawing characters (not
# supported by all terminals/consoles)
# The color of this line is controlled by the 'dl' code in InterfaceColors
DividingLine="-"
# If the fzf TAB completion mode is enabled, pass these options to fzf(1):
FzfTabOptions="--color='16,prompt:6,fg+:-1,pointer:4,hl:2,hl+:2,gutter:-1,marker:2,border:7:dim' --marker='*' --bind tab:accept,right:accept,left:abort,alt-p:toggle-preview,change:top,alt-up:preview-page-up,alt-down:preview-page-down --inline-info --layout=reverse-list --preview-window=wrap,border-left"
# Same options, but colorless
#FzfTabOptions="--color='bw' --marker='*' --bind tab:accept,right:accept,left:abort,alt-p:toggle-preview,change:top,alt-up:preview-page-up,alt-down:preview-page-down --inline-info --layout=reverse-list --preview-window=wrap,border-left"
# For more information consult fzf(1)

View File

@@ -0,0 +1,271 @@
# Theme file for CliFM
# Theme name: clifm (16 colors version). Check 'default-256' for a 256 colors version
# Author: L. Abramovich
# License: GPL3
### How do we define colors?
#
# FiletypeColors, InterfaceColors, and ExtColors use the same format used
# by the LS_COLORS environment variable. Thus, "di=01;34" means that (non-empty)
# directories will be printed in bold blue.
#
# Color codes are just traditional ANSI escape sequences less the escape char
# and the final 'm'.
# 4-bit (16 colors), 8-bit (256 colors), and 24-bit (RGB/HEX) colors are supported.
# Example:
# 31 4-bit
# 38;5;160 8-bit
# 38;2;255;0;0 24-bit (RGB)
# #ff0000 24-bit (HEX)
#
# One attribute can be used for hex colors using a dash and an attribute
# number (RRGGBB-[1-9]), where 1-9 is:
#
# 1: Bold or increased intensity
# 2: Faint, decreased intensity or dim
# 3: Italic (Not widely supported)
# 4: Underline
# 5: Slow blink
# 6: Rapid blink
# 7: Reverse video or invert
# 8: Conceal or hide (Not widely supported)
# 9: Crossed-out or strike
#
# For example, to print bold red color, the hex code is #ff0000-1
### Use some variables to hold your color codes
#
# The 'define' keyword allows you to define up to 128 custom color variables.
# They can be used for:
# FiletypeColors
# InterfaceColors
# ExtColors
# DirIconColor
#
# For example, if 'M' is defined as "00;01;36", we can use this color for
# ELN's as follows: "el=M" (see below)
define D=0 # Default terminal color
define BD=1 # Bold
define DIM=2 # Dimmed
define R=31 # Red
define BR=1;31 # Bold red
define DR=2;31 # Dimmed red
define UDR=4;2;31 # Underlined dimmed red
define UBR=4;1;31 # Underlined bold red
define G=32 # Green
define BG=1;32 # Bold green
define DG=2;32 # Dimmed green
define Y=33 # Yellow
define BY=1;33 # Bold yellow
define DY=2;33 # Dimmed yellow
define B=34 # Blue
define BB=1;34 # Bold blue
define DB=2;34 # Dimmed blue
define M=35 # Magenta
define BM=1;35 # Bold Magenta
define DM=2;35 # Dimmed magenta
define UM=4;35 # Underlined magenta
define UDM=4;2;35 # Underlined dimmed magenta
define C=36 # Cyan
define BC=1;36 # Bold cyan
define DC=2;36 # Dimmed cyan
define RC=7;36 # Reverse cyan
define UDC=4;2;36 # Underlined dimmed cyan
define BDC=1;2;36 # Bold dimmed cyan
define DW=2;37 # Dimmed white
define UDW=4;2;37 # Underlined dimmed white
# Foreground-background combinations
define URW=4;31;47 # Red foreground, white background
define WR=37;41 # White foreground, red background
# K stands for black (B is used for Blue)
define KY=30;43 # Black foreground, yellow background
define KR=30;41 # Black foreground, red background
define KG=30;42 # Black foreground, green background
# BG is already used for bold green
define BlGr=34;42 # Blue foreground, green background
define WB=37;44 # white foreground, blue background
# File groups (used for file extensions)
define DOC=1 # Bold
define VIDEO=1;35 # Bold magenta
define IMAGE=35 # Magenta
define SOUND=36 # Cyan
define CODE=1;33 # Bold yellow
define ARCHIVE=1;31 # Bold red
define TEMP=2;37 # Dimmed white
define BOOK=1 # Bold
define MARKUP=1;33 # Same as CODE
### To know what are we applying colors to, we use the following codes:
## File types
# bd = Block device
# ca = File with capabilities
# cd = Char device
# ed = Empty directory
# ee = Empty executable file
# ex = Executable file
# ef = Empty regular file
# fi = Regular file
# di = Directory
# ln = Symbolic link
# mh = Multi-hardlink file
# nd = Directory with no read permission
# ne = Empty directory with no read permission
# nf = Regular file with no read permission
# no = Unknown
# or = Broken symlink
# ow = Other-writable
# pi = FIFO/pipe
# sg = SGID file
# so = Socket
# st = Sticky (not other-writable)
# su = SUID file
# tw = Sticky and other-writable
# uf = Non-'stat'able file
## Interface
# bm = Bookmarked directory
# fc = Files counter
# df = Default color
# dl = Dividing line
# el = ELN color
# mi = Misc indicators
# ts = TAB completion suffix
# tt = Tilde for trimmed files
# wc = Welcome message
# wp = Warning prompt
## Auto-suggestions
# sb = Shell builtins
# sc = External commands and aliases
# sd = Internal commands description
# sf = File names
# sh = History
# sx = Internal commands and parameters
# sp = BAEJ suggestions pointer
# sz = File names (fuzzy)
## Syntax highlighting
# hb = Brackets () [] {}
# hc = Comments
# hd = Paths (slashes)
# he = Expansion operators: * ~
# hn = Numbers
# hp = Parameters: -
# hq = Quoted strings
# hr = Redirection >
# hs = Process separators | & ; */
# hv = Variables $ */
# hw = Wrong, non-existent command name
## File properties
# dd = Date (1)
# dg = UID, GID
# dn = dash (none)
# do = Permissions in octal notation
# dp = Special files (SUID, SGID, etc)
# dr = Read
# dw = Write
# dxd = Execute (dirs)
# dxr = Execute (reg files)
# dz = Size (1)
# (1) If unset, gradient colors will be used (default)
## Workspaces
# wsN = Workspace number N
## Prompt notifications
# em = Errors
# li = Selected files indicator
# nm = Notices
# ti = Trash indicator
# tx = Command line text
# si = Stealth mode indicator
# wm = Warnings
# xs = Exit code: success
# xf = Exit code: failure
# NOTE: Whenever a code is unset, the default value is used
# FiletypeColors defines the color used for file names when listing files,
# just as InterfaceColors defines colors for CliFM's interface.
FiletypeColors="bd=BY:ca=KR:cd=BD:di=BB:ed=DB:ee=G:ef=DIM:ex=BG:fi=D:ln=BC:mh=RC:nd=UBR:ne=UDR:nf=UDR:no=URW:or=UDC:ow=BlGr:pi=M:sg=KY:so=BM:st=WB:su=WR:tw=KG:uf=UDW:"
InterfaceColors="bm=BG:dd=:df=D:dg=:dl=DW:dn=DW:do=C:dp=:dr=:dw=:dxd=:dxr=:dz=:el=C:em=BR:fc=DW:hb=C:hc=DW:hd=C:he=C:hn=:hp=C:hq=Y:hr=R:hs=G:hv=G:li=BG:mi=BC:nm=BG:si=BB:sb=DY:sc=DC:sd=DW:sf=UDC:sh=DM:sp=DR:sx=DG:sz=UDM:ti=BC:ts=UM:tt=BDC:tx=D:wc=BC:wm=BY:wp=DR:ws1=B:ws2=R:ws3=Y:ws4=G:ws5=C:ws6=C:ws7=C:ws8=C:xf=BR:xs=G:"
# Colors for specific file extensions (case insensitive)
ExtColors="*.tar=ARCHIVE:*.tgz=ARCHIVE:*.arc=ARCHIVE:*.arj=ARCHIVE:*.taz=ARCHIVE:*.lha=ARCHIVE:*.lz4=ARCHIVE:*.lzh=ARCHIVE:*.lzma=ARCHIVE:*.tlz=ARCHIVE:*.txz=ARCHIVE:*.tzo=ARCHIVE:*.t7z=ARCHIVE:*.zip=ARCHIVE:*.z=ARCHIVE:*.dz=ARCHIVE:*.gz=ARCHIVE:*.lrz=ARCHIVE:*.lz=ARCHIVE:*.lzo=ARCHIVE:*.xz=ARCHIVE:*.zst=ARCHIVE:*.tzst=ARCHIVE:*.bz2=ARCHIVE:*.bz=ARCHIVE:*.tbz=ARCHIVE:*.tbz2=ARCHIVE:*.tz=ARCHIVE:*.deb=ARCHIVE:*.rpm=ARCHIVE:*.jar=ARCHIVE:*.war=ARCHIVE:*.ear=ARCHIVE:*.sar=ARCHIVE:*.rar=ARCHIVE:*.alz=ARCHIVE:*.ace=ARCHIVE:*.zoo=ARCHIVE:*.cpio=ARCHIVE:*.7z=ARCHIVE:*.rz=ARCHIVE:*.cab=ARCHIVE:*.wim=ARCHIVE:*.swm=ARCHIVE:*.dwm=ARCHIVE:*.esd=ARCHIVE:*.apk=ARCHIVE:*.iso=ARCHIVE:*.img=ARCHIVE:*.avif=IMAGE:*.jpg=IMAGE:*.jpeg=IMAGE:*.jxl=IMAGE:*.mjpg=IMAGE:*.mjpeg=IMAGE:*.gif=IMAGE:*.bmp=IMAGE:*.xbm=IMAGE:*.xpm=IMAGE:*.png=IMAGE:*.svg=IMAGE:*.svgz=IMAGE:*.pcx=IMAGE:*.pbm=IMAGE:*.pgm=IMAGE:*.ppm=IMAGE:*.tga=IMAGE:*.tif=IMAGE:*.tiff=IMAGE:*.mng=IMAGE:*.mov=VIDEO:*.mpg=VIDEO:*.mpeg=VIDEO:*.m2v=VIDEO:*.mkv=VIDEO:*.webm=VIDEO:*.webp=VIDEO:*.ogm=VIDEO:*.mp4=VIDEO:*.m4v=VIDEO:*.mp4v=VIDEO:*.vob=VIDEO:*.qt=VIDEO:*.nuv=VIDEO:*.wmv=VIDEO:*.asf=VIDEO:*.rm=VIDEO:*.rmvb=VIDEO:*.flc=VIDEO:*.avi=VIDEO:*.fli=VIDEO:*.flv=VIDEO:*.gl=VIDEO:*.dl=VIDEO:*.xcf=VIDEO:*.xwd=VIDEO:*.yuv=VIDEO:*.cgm=VIDEO:*.emf=VIDEO:*.ogv=VIDEO:*.ogx=VIDEO:*.mov=VIDEO:*.mpg=VIDEO:*.mpeg=VIDEO:*.m2v=VIDEO:*.mkv=VIDEO:*.webm=VIDEO:*.webp=VIDEO:*.ogm=VIDEO:*.ogv=VIDEO:*.ogx=VIDEO:*.mp4=VIDEO:*.m4v=VIDEO:*.mp4v=VIDEO:*.vob=VIDEO:*.qt=VIDEO:*.nuv=VIDEO:*.wmv=VIDEO:*.flc=VIDEO:*.avi=VIDEO:*.fli=VIDEO:*.flv=VIDEO:*.asf=VIDEO:*.rm=VIDEO:*.rmvb=VIDEO:*.gl=VIDEO:*.dl=VIDEO:*.xcf=VIDEO:*.xwd=VIDEO:*.yuv=VIDEO:*.cgm=VIDEO:*.emf=VIDEO:*.aac=SOUND:*.au=SOUND:*.m4a=SOUND:*.mid=SOUND:*.midi=SOUND:*.mp3=SOUND:*.mka=SOUND:*.ogg=SOUND:*.opus=SOUND:*.spx=SOUND:*.wma=SOUND:*.wv=SOUND:*.wav=SOUND:*.flac=SOUND:*.aif=SOUND:*.pdf=BOOK:*.djvu=BOOK:*.epub=BOOK:*.mobi=BOOK:*.cbr=BOOK:*.cbz=BOOK:*.ps=DOC:*.sxw=DOC:*.doc=DOC:*.docx=DOC:*.xls=DOC:*.xlsx=DOC:*.xlr=DOC:*.sxi=DOC:*.ppt=DOC:*.pptx=DOC:*.odt=DOC:*.ods=DOC:*.odp=DOC:*.rtf=DOC:*.c=CODE:*.c++=CODE:*.cc=CODE:*.cpp=CODE:*.h=CODE:*.h++=CODE:*.hh=CODE:*.go=CODE:*.java=CODE:*.js=CODE:*.lua=CODE:*.php=CODE:*.rb=CODE:*.rs=CODE:*.kt=CODE:*.kts=CODE:*.hs=CODE:*.pl=CODE:*.vb=CODE:*.html=MARKUP:*.htm=MARKUP:*.shtml=MARKUP:xhtml=MARKUP:*.xml=MARKUP:*.css=MARKUP:*.tex=MARKUP:*.ltx=MARKUP:*.md=MARKUP:*.cache=TEMP:*.tmp=TEMP:*.temp=TEMP:*.log=TEMP:*.bak=TEMP:*.bk=TEMP:*.in=TEMP:*.out=TEMP:*.part=TEMP:*.aux=TEMP:*.old=TEMP:*.orig=TEMP:*.rej=TEMP:*.swp=TEMP:*.pid=TEMP:"
# The series of color shades used to print timestamps
# The format is: "COLOR-TYPE,ERROR,SHADE1,SHADE2,SHADE3,SHADE4,SHADE5"
#
# COLOR-TYPE is one of: 1 (4-bit: 8 colors), 2 (8-bit: 256 colors), 3 (24-bit: truecolor)
# ERROR is the color used to print bad values
# SHADEn is the color used for the shade N
#
# For 4-bit colors (1), valid colors are in the range 30-37
# For 8-bit colors (2), valid colors are in the range 0-255
# For 24-bit colors (3), valid colors have this format: #RRGGBB
#
# An attribute (0-9) can be added to any color (either ERROR or SHADE) using a dash.
# For example:
# "34-1" -> "bold blue" (4-bit colors notation)
# "226-2" -> "dimmed yellow" (8-bit colors notation)
# "#ffaff00-4" -> "underlined orange" (24-bit colors notation)
#DateShades="1,31-2,36-1,36,36-2"
#DateShades="2,196-2,231,253,250,247,244"
#DateShades="3,#ff0000-2,#ffffff,#dadada,#bcbcbc,#9e9e9e,#808080"
#NOTE: For DateShades to work, the 'dd' color code (solid color for dates) needs to be unset (default)
# Same as DateShades, but for file sizes
#SizeShades="1,31-2,32,33,31"
#SizeShades="2,196-2,43,112,227,214,202"
#SizeShades="3,#ff0000-2,#00d7af,#87d700,#ffff5f,#ffaf00,#ff5f00"
#NOTE: For SizeShades to work, the 'dz' color code (solid color for sizes) needs to be unset (default)
# If icons are enabled, use this color for directories icon (only for icons-in-terminal and Nerd-fonts)
DirIconColor="Y"
# The prompt used by CliFM. Use the 'prompt' command to check for available
# prompts. Enter 'prompt --help' for more information
# You can use here either prompt codes (see the prompts.clifm file for details)
# or a prompt name defined in the prompts file
Prompt="clifm"
# Override prompt values (as defined in the prompts file)
#Prompt=""
#Notifications=
#EnableWarningPrompt=
#WarningPrompt=""
# The string used to construct the line dividing the list of files and
# the prompt (Unicode is supported). Possible values:
# "0": Print just an empty line
# "C": C is a single char. This char is printed up to the end of the screen
# "CCC": 3 or more chars. Only these chars (no more) will be printed
# "": Print a special line drawn with box-drawing characters (not
# supported by all terminals/consoles)
# The color of this line is controlled by the 'dl' code in InterfaceColors
DividingLine="-"
# If the fzf TAB completion mode is enabled, pass these options to fzf(1):
FzfTabOptions="--color='16,prompt:6,fg+:-1,pointer:4,hl:2,hl+:2,gutter:-1,marker:2,border:7:dim' --marker='*' --bind tab:accept,right:accept,left:abort,alt-p:toggle-preview,change:top,alt-up:preview-page-up,alt-down:preview-page-down --inline-info --layout=reverse-list --preview-window=wrap,border-left"
# Same options, but colorless
#FzfTabOptions="--color='bw' --marker='*' --bind tab:accept,right:accept,left:abort,alt-p:toggle-preview,change:top,alt-up:preview-page-up,alt-down:preview-page-down --inline-info --layout=reverse-list --preview-window=wrap,border-left"
# For more information consult fzf(1)

View File

@@ -0,0 +1,149 @@
# Keybindings file for CliFM
# Emacs style key escapes are the simplest way of setting your
# keybindings. For example, use "action:\C-t" to bind the action name
# 'action' to Ctrl-t
# Note: available action names are defined below
# If you need some more control, hex, octal, and decimal notation is
# also supported (this is needed for example for function keys). For
# the sake of simplicity, CliFM provides a plugin to easily get the
# adequate codes.
# Use the 'kbgen' plugin (compile it first: gcc -o kbgen kbgen.c) to
# find out the escape code for the key o key sequence you want. Use
# either octal, hexadecimal codes or symbols.
# Ex: For Alt-/ (in rxvt terminals) 'kbgen' will print the following
# lines:
# Hex | Oct | Symbol
# ---- | ---- | ------
# \x1b | \033 | ESC (\e)
# \x2f | \057 | /
# In this case, the keybinding, if using symbols, is: "\e/:function"
# In case you prefer the hex codes it would be: \x1b\x2f:function.
# GNU emacs escape sequences are also allowed (ex: "\M-a", Alt-a
# in most keyboards, or "\C-r" for Ctrl-r).
# Some codes, especially those involving keys like Ctrl or the arrow
# keys, vary depending on the terminal emulator and the system settings.
# These keybindings should be set up thus on a per terminal basis.
# You can also consult the terminfo database via the infocmp command.
# See terminfo(5) and infocmp(1).
# Alt-j
previous-dir:\M-j
# Shift-left (rxvt)
previous-dir2:\e[d
# Shift-left (xterm)
previous-dir3:\e[2D
# Shift-left (others)
previous-dir4:\e[1;2D
# Alt-k
next-dir:\M-k
# Shift-right (rxvt)
next-dir2:\e[c
# Shift-right (xterm)
next-dir3:\e[2C
# Shift-right (others)
next-dir4:\e[1;2C
first-dir:\C-\M-j
last-dir:\C-\M-k
# Alt-u
parent-dir:\M-u
# Shift-up (rxvt)
parent-dir2:\e[a
# Shift-up (xterm)
parent-dir3:\e[2A
# Shift-up (others)
parent-dir4:\e[1;2A
# Alt-e
home-dir:\M-e
# Home key (rxvt)
#home-dir2:\e[7~
# Home key (xterm)
#home-dir3:\e[H
# Home key (Emacs term)
#home-dir4:\e[1~
# Alt-r
root-dir:\M-r
# Alt-/ (rxvt)
root-dir2:\e/
#root-dir3:
pinned-dir:\M-p
workspace1:\M-1
workspace2:\M-2
workspace3:\M-3
workspace4:\M-4
# Help
# F1-3
show-cmds:\eOQ
show-cmds2:\e[12~
show-kbinds:\eOR
show-kbinds2:\e[13~
show-manpage:\eOP
show-manpage2:\e[11~
archive-sel:\C-\M-a
bookmark-sel:\C-\M-b
bookmarks:\M-b
clear-line:\M-c
clear-msgs:\M-t
create-file:\M-n
deselect-all:\M-d
dirs-first:\M-g
export-sel:\C-\M-e
launch-view:\M--
lock:\M-o
mountpoints:\M-m
move-sel:\C-\M-n
new-instance:\C-x
next-profile:\C-\M-p
only-dirs:\M-,
open-sel:\C-\M-g
paste-sel:\C-\M-v
prepend-sudo:\M-v
previous-profile:\C-\M-o
rename-sel:\C-\M-r
remove-sel:\C-\M-d
refresh-screen:\C-r
selbox:\M-s
select-all:\M-a
show-dirhist:\M-h
sort-previous:\M-z
sort-next:\M-x
toggle-hidden:\M-i
toggle-hidden2:\M-.
toggle-light:\M-y
toggle-long:\M-l
toggle-max-name-len:\C-\M-l
toggle-disk-usage:\C-\M-i
toggle-virtualdir-full-paths:\M-w
trash-sel:\C-\M-t
untrash-all:\C-\M-u
# F6-12
edit-color-scheme:\e[19~
open-bookmarks:\e[23~
open-config:\e[21~
#open-jump-db:\e[18~
open-keybinds:\e[20~
open-mime:\e[17~
open-preview:\e[18~
quit:\e[24~
# Plugins
# 1) Make sure your plugin is in the plugins directory (or use any of the
# plugins in there)
# 2) Link pluginx to your plugin using the 'actions edit' command. Ex:
# "plugin1=myplugin.sh"
# 3) Set a keybinding here for pluginx. Ex: "plugin1:\M-7"
#plugin1:
#plugin2:
#plugin3:
#plugin4:

View File

@@ -0,0 +1 @@
*0:/Users/asand/clone/dotfiles/.config

View File

@@ -0,0 +1,41 @@
######################
# CliFM actions file #
######################
# Define here your custom actions. Actions are custom command names
# bound to a executable file located either in DATADIR/clifm/plugins
# (usually /usr/share/clifm/plugins) or in $XDG_CONFIG_HOME/clifm/plugins.
# Actions can be executed directly from CliFM command line, as if they
# were any other command, and the associated file will be executed
# instead. All parameters passed to the action command will be passed
# to the corresponding plugin as well.
+=finder.sh
++=jumper.sh
-=fzfnav.sh
*=fzfsel.sh
**=fzfdesel.sh
//=rgfind.sh
_=fzcd.sh
bcp=batch_copy.sh
bmi=bm_import.sh
bn=batch_create.sh
clip=clip.sh
cr=cprm.sh
da=disk_analyzer.sh
dr=dragondrop.sh
fdups=fdups.sh
gg=pager.sh
h=fzfhist.sh
i=img_viewer.sh
ih=ihelp.sh
kbgen=kbgen
kd=decrypt.sh
ke=encrypt.sh
ml=mime_list.sh
music=music_player.sh
ptot=pdf_viewer.sh
rrm=recur_rm.sh
update=update.sh
vid=vid_viewer.sh
wall=wallpaper_setter.sh

View File

@@ -0,0 +1,10 @@
### This is the bookmarks file for clifm ###
# Empty and commented lines are ommited
# Make your changes, save, and exit
# To remove a bookmark, delete the corresponding line, save, and exit
# Changes are applied automatically at exit (to cancel just quit the editor).
# The bookmarks syntax is: [shortcut]name:path
# Example:
[c]clifm:/Users/asand/.config/clifm/profiles/default

View File

@@ -0,0 +1,432 @@
###########################################
# CLIFM #
# The command line file manager #
###########################################
# This is CliFM's main configuration file
# Lines starting with either '#' or ';' are commented (ignored).
# Options starting with a ';' hold the default value, but are commented.
# To override a default value, uncomment the corresponding option.
#=====================================#
# 1. INTERFACE #
#=====================================#
# Show hidden files (i.e. files starting with a dot)?
;ShowHiddenFiles=false
# Use a regular expression to filter files from the files list.
# Example: "!.*~$" to exclude backup files (ending with ~), or "^\." to
# list only hidden files. File type filters are also supported. Example:
# "=d" to list directories only, or "!=l" to exclude symlinks.
# Run 'help file-filters' for more information.
;Filter=""
# List directories first?
;ListDirsFirst=true
# The amount of files contained by a directory is informed next
# to the directory name. However, this feature might slow things down
# when, for example, listing files on a remote server. The files counter
# can be disabled here, via the --no-files-counter option, or using the
# 'fc' command while in the program itself.
# Note: Classify (see below) must be set to true.
;FilesCounter=true
# Mas, the files list pager. Possible values are:
# 0/false: Disable the pager
# 1/true: Run the pager whenever the list of files does not fit on the screen
# >1: Run the pager whenever the amount of files in the current directory is
# greater than or equal to this value (say, 1000)
;Pager=false
# If running with colors, append directory indicator to directories. If
# running without colors (via the --no-color option), append file type
# indicator at the end of file names:
# '/' for directories
# '@' for symbolic links
# '=' for sockets
# '|' for FIFO/pipes
# '*' for for executable files
# '?' for unknown file types
# Bear in mind that when running in light mode the check for executable
# files won't be performed, and thereby no indicator will be added to
# executable files.
# Note: Setting this option to false disables the files counter.
;Classify=true
# How to list files: 0 = vertically (like ls(1) would), 1 = horizontally
;ListingMode=0
# Choose sorting method: 0 = none, 1 = name, 2 = size, 3 = atime
# 4 = btime (ctime if not available), 5 = ctime, 6 = mtime, 7 = version
# (name if not available) 8 = extension, 9 = inode, 10 = owner-ID, and
# 11 = group-ID
;Sort=7
# By default, CliFM sorts files from less to more (ex: from 'a' to 'z' if
# using the "name" method). To invert this ordering, set SortReverse to
# true (you can also use the --sort-reverse option or the 'st' command)
;SortReverse=false
# List files properties next to file names instead of just file names
;LongViewMode=false
# Properties fields to be printed for each file name in long view mode
# f: files counter (for directories)
# d: inode number
# p|n = permissions: either symbolic (p) or numeric/octal (n)
# i = user/group IDs
# a|m|c = last (a)ccess, (m)odification, or status (c)hange time (YYYY-MM-DD HH:MM:SS)
# s|S = size (either human readable (s) or bytes (S))
# x = extended attributes (marked as '@')
# A single dash ("-") disables all fields
# Example: print only permissions (numeric) and size (human readable):
#PropFields="ns"
;PropFields="fpims"
# Format used to display timestamps in long view mode.
# Consult strftime(3) for information about time format specifiers.
# Defaults to "%b %e %H:%M" for recent files (< 6 months) and "%b %e %Y"
# for older files.
# Examples:
## ISO
;TimeStyle="%Y-%m-%d"
## Long ISO
;TimeStyle="%Y-%m-%d %H:%M"
## Full ISO
;TimeStyle="%Y-%m-%d %H:%M:%S %z"
## Legacy style (old versions)
;TimeStyle="%F %T"
## Relative time
;TimeStyle=relative
# If running in long view, print directories full size (including contents)
;FullDirSize=false
# Print files apparent size instead of actual device usage
# Note that on non-Linux or POSIX-compliant systems, du(1), used by clifm
# to get full directories size, has no option to display files apparent
# sizes, so that actual device usage is always used instead.
;ApparentSize=true
# In light mode, extra file type checks (except those provided by
# the d_type field of the dirent structure (see readdir(3))
# are disabled to speed up the listing process. stat(3) and access(3)
# are not executed at all, so that we cannot know in advance if a file
# is readable by the current user, if it is executable, SUID, SGID, if a
# symlink is broken, and so on. The file extension check is ignored as
# well, so that the color per extension feature is disabled.
;LightMode=false
# If set to true, clear the screen before listing files
;ClearScreen=true
# Maximum file name length for listed files. Names larger than
# MAXFILENAMELEN will be truncated at MAXFILENAMELEN using a tilde
# Set it to -1 (or empty) to remove this limit
# When running in long mode, this setting is overriden by MinFilenameTrim
;MaxFilenameLen=20
# Minimum length at which a file name can be trimmed in long view mode
# (including ELN length and spaces). When running in long mode, this
# setting overrides MaxFilenameLen whenever MAXFILENAMELEN is smaller
# than MINFILENAMETRIM.
;MinFilenameTrim=20
# A comma separated list of workspace names in the form NUM=NAME
# Example: "1=MAIN,2=EXTRA,3=GIT" or "1=α,2=β,3=γ"
;WorkspaceNames=""
# If set to true, settings changed in the current workspace (only via
# the command line or keyboard shortcuts) are kept private to that
# workspace and made persistent (for the current session only), even
# when switching workspaces.
;PrivateWorkspaceSettings=false
# Print the disk usage of the file system the current directory belongs to
# in the form FREE/TOTAL
;DiskUsage=false
# If set to true, print a map of the current position in the directory
# history list, showing previous, current, and next entries
;DirhistMap=false
# If set to true, always print the list of selected files. Since this
# list could become quite extensive, you can limit the number of printed
# entries using the MaxPrintSelfiles option below
;PrintSelfiles=false
# Maximum amount of selected files to be printed if PrinSelFiles is set
# to true. Possible values: -1 = no limit, 0 = auto (never print more
# than half terminal height), or any positive value
;MaxPrintSelfiles=0
# Color schemes (or just themes) are stored in the colors directory
# ($XDG_DATA_DIRS/clifm/colors, usually /usr/local/share/clifm/colors
# or /usr/share/clifm/colors). You can place your custom themes in
# $HOME/.config/clifm/colors
#
# Use the 'cs' command or the '--color-scheme' command line option to set
# a theme
#
# Run 'cs edit' to edit the current theme
#
# Each theme includes color definitions, just as definitions for the
# prompt, the warning prompt, the dividing line, and the FZF window
#
# Use TAB to list available themes: 'cs TAB'
#
# Visit https://github.com/leo-arch/clifm-colors to get some extra themes
#
# Defaults to 'default-256', or 'default' (16 colors) if 256 colors support
# is not detected
;ColorScheme=one-dark
# Enable/disable icons.
# By default, emojis (widely available today) are used as icons.
# Nerd-fonts and icons-in-terminal are supported as well, though clifm
# needs to be recompiled in order to enable support. Consult our Wiki
# (https://github.com/leo-arch/clifm/wiki) for more information.
;Icons=true
#=====================================#
# 2. COMMAND LINE #
#=====================================#
# Enable fuzzy matching for filename/path completions and suggestions
;FuzzyMatching=false
# Fuzzy algorithm. Available options are:
# 1 = faster, not Unicode aware
# 2 = slower, Unicode aware
;FuzzyAlgorithm=2
# TAB completion mode: 'standard', 'fzf', 'fzy' or 'smenu'. Defaults
# to 'fzf' if the binary is found in PATH. Othwerwise, the standard
# mode is used
;TabCompletionMode=
# File previews for TAB completion (fzf mode only). Possible values:
# 'true', 'false', 'hidden' (enabled, but hidden; toggle with Alt-p)
;FzfPreview=true
# If set to true, enable auto-suggestions
;AutoSuggestions=true
# The following checks will be performed in the order specified
# by SuggestionStrategy. Available checks:
# a = Aliases names\n\
# b = Bookmarks names (deprecated since v1.9.9)\n\
# c = Path completion\n\
# e = ELN's
# f = File names in current directory\n\
# h = Commands history\n\
# j = Jump database\n\
# Use a dash (-) to skip a check. Ex: 'ehfj-ac' to skip the bookmarks
# check
;SuggestionStrategy=ehfj-ac
# If set to true, suggest file names using the corresponding file type
# color (set via the color scheme file)
;SuggestFiletypeColor=false
# Suggest a brief description for internal commands
;SuggestCmdDesc=true
# Enable syntax highlighting?
;SyntaxHighlighting=true
# Should CliFM be allowed to run external, shell commands?
;ExternalCommands=true
#=====================================#
# 3. COMMANDS #
#=====================================#
# List files automatically after changing current directory
;AutoLs=true
# If set to true, a command name that is the name of a directory or a
# file is executed as if it were the argument to the the 'cd' or the
# 'open' commands respectivelly: 'cd DIR' works the same as just 'DIR'
# and 'open FILE' works the same as just 'FILE'.
;Autocd=true
;AutoOpen=true
# If set to true, the 'r' command executes 'trash' instead of rm(1).
;TrashAsRm=false
# Set the default copy command. Available options are:
# 0 = 'cp -iRp', 1 = 'cp -Rp', 2 = 'advcp -giRp', 3 = 'advcp -gRp',
# 4 = 'wcp', and 5 = 'rsync -avP'
# 2-5 include a progress bar
# Only 0 and 2 will prompt before overwrite
;cpCmd=0
# Set the default move command. Available options are:
# 0 = 'mv -i', 1 = 'mv', 2 = 'advmv -gi', and 3 = 'advmv -g'
# 2 and 3 include a progress bar
# Only 0 and 2 will prompt before overwrite
;mvCmd=0
# If set to true, the 'r' command will never prompt before removals.
# Note: rm(1) is invoked with the -f flag
;rmForce=false
# Choose the resource opener to open files with their default associated
# application (e.g. Ranger's rifle or xdg-open). If not set, 'lira',
# CliFM's built-in opener, is used instead.
;Opener=
# Only used when opening a directory via a new CliFM instance (with the
# 'x' command), this option specifies the command to be used to launch a
# terminal emulator to run CliFM on it.
;TerminalCmd="xterm -e"
# We have three search strategies: 0 = glob-only, 1 = regex-only,
# and 2 = glob-regex. Used by the quick search function
;SearchStrategy=2
# When a directory rank in the jump database is below MinJumpRank, it
# will be removed. If set to 0, directories are kept indefinitely
;MinJumpRank=10
# When the sum of all ranks in the jump database reaches MaxJumpTotalRank,
# all ranks will be reduced using a dynamic factor so that the total sum falls
# below MaxJumpTotalRank again. Those entries falling below MinJumpRank will
# be deleted
;MaxJumpTotalRank=100000
# Automatically purge the jump database from non-existing directories at
# startup. Note that this will remove paths pointing to unmounted removable
# devices and remote file systems
;PurgeJumpDB=false
#=====================================#
# 4. LOGS AND HISTORY #
#=====================================#
# Send errors, warnings, and notices to the notification daemon?
;DesktopNotifications=false
# Keep track of errors and warnings
;Logs=false
# Keep a record of external commands and internal commands able to modify the
# files system (e.g. 'r', 'c', 'm', and so on). Logs must be set to true.
;LogCmds=false
# Keep only the last N lines of the log file
;MaxLog=1000
# Limit the size of the commands history file to N entries
;MaxHistory=1000
# Limit the size of the directory history file to N entries
;MaxDirhist=100
#=====================================#
# 5. MISC #
#=====================================#
# Enable case sensitive listing for files in the current directory
;CaseSensitiveList=false
# Enable case sensitive lookup for the directory jumper function (via
# the 'j' command)
;CaseSensitiveDirJump=false
# Enable case sensitive completion for file names
;CaseSensitivePathComp=false
# Enable case sensitive search
;CaseSensitiveSearch=false
# Whether to be Unicode aware or not. If using a 100% ASCII setup
# (e.g. English), you can turn this off
;Unicode=true
# CliFM's starting path. If not specified, it defaults to the current
# working directory. If set, it overrides RestoreLastPath.
;StartingPath=
# If set to true, start CliFM in the last visited directory (and in the
# last used workspace). This option is overriden by StartingPath (if set).
;RestoreLastPath=true
# MaxPath is only used for the /p option of the prompt: the current
# working directory will be abbreviated to its basename (everything after
# the last slash) whenever the current path is longer than MaxPath.
;MaxPath=40
# Set readline editing mode: 0 for vi and 1 for emacs (default).
;RlEditMode=1
# Write the last visited directory to $XDG_CONFIG_HOME/clifm/.last to be
# later accessed by the corresponding shell function at program exit.
# To enable this feature consult the manpage.
;CdOnQuit=false
# Should the Selection Box be shared among different profiles?
;ShareSelbox=false
# Print a usage tip at startup
;Tips=true
# Just a kind welcome message at startup
;WelcomeMessage=true
# Set a custom welcome message
;WelcomeMessageStr=""
# Print CliFM's logo screen at startup
;SplashScreen=false
#=====================================#
# 6. ALIASES #
#=====================================#
# Bind '?' to the interactive help plugin. Run 'actions' to print the
# list of available plugins
#alias ?='ih'
# Bind 'b' to the directory history navigation plugin
#alias b='dh'
# Replace the standard deselect command (ds) by the fzfdesel plugin
#alias ds='**'
# You can use this alias to quickly change to the current virtual directory
#alias vtd='cd $CLIFM_VIRTUAL_DIR'
# Replace the built-in bulk rename function (br) by vidir(1)
#br='vidir'
#=====================================#
# 7. PROMPT COMMANDS #
#=====================================#
# Write below the commands you want to be executed before each prompt. Ex:
#promptcmd /usr/local/share/clifm/plugins/git_status.sh
#promptcmd date | awk '{print $1", "$2,$3", "$4}'
#=====================================#
# 8. AUTOCOMMANDS #
#=====================================#
# Control CliFM's settings on a per directory basis. For more information
# consult the manpage
# Remote file systems are slow: let's speed this up by enabling the light
# mode and disabling the files counter
#autocmd /media/remotes/** lm=1,fc=0
# Just a friendly reminder
#autocmd ~/important !printf "Keep your fingers outta here!\n" && read -n1
# Plenty of images and vids? Launch the files previewer plugin
#autocmd ~/Downloads !/usr/local/share/clifm/plugins/fzfnav.sh
# I want files in the third workspace to be listed in long view
#autocmd @ws3 lv=1

View File

@@ -0,0 +1,8 @@
[2023-04-27T15:34:59-0700] /Users/asand/Documents/02 - Personal/03 - Classes/Socials 10:log off
[2023-04-28T06:44:03-0700] /Users/asand/Documents/02 - Personal/03 - Classes/English 10:log off
[2023-04-28T08:17:10-0700] /Users/asand/Documents/02 - Personal/03 - Classes/English 10:log off
[2023-04-28T13:38:26-0700] /Users/asand/Documents/02 - Personal/03 - Classes/Socials 10:log off
[2023-04-28T13:38:52-0700] /Users/asand/Documents/02 - Personal/03 - Classes/Socials 10:log off
[2023-04-28T13:38:59-0700] /Users/asand/Documents/02 - Personal/03 - Classes/Socials 10:log off
[2023-04-28T13:40:48-0700] /Users/asand/Documents/02 - Personal/03 - Classes/Socials 10:log off
[2023-05-09T16:03:13-0700] /Users/asand/Documents/02 - Personal/03 - Classes/Bible 10:log off

View File

@@ -0,0 +1,89 @@
/Users/asand/Documents/02 - Personal/03 - Classes/English 10
/Users/asand/Documents/02 - Personal/03 - Classes
/Users/asand/Documents/02 - Personal/03 - Classes/Socials 10
/Users/asand
/Users/asand/Documents/02 - Personal/03 - Classes/Socials 10
/Users/asand
/Users/asand/Documents/02 - Personal/03 - Classes/English 10
/Users/asand
/Users/asand/.config
/Users/asand/.config/yabai
/Users/asand/Documents/02 - Personal/03 - Classes/Socials 10
/Users/asand/Documents/02 - Personal/03 - Classes/English 10
/Users/asand/Documents/02 - Personal/03 - Classes
/Users/asand/Documents/02 - Personal/03 - Classes/Bible 10
/Users/asand
/Users/asand/.config
/Users/asand/.config/yabai
/Users/asand/Documents/02 - Personal/03 - Classes/Bible 10
/Users/asand/.config/sketchybar
/Users/asand/.config/sketchybar/items
/Users/asand
/Users/asand/Documents
/Users/asand/Documents/05 - Saved Content
/Users/asand/Documents/05 - Saved Content/000 - YouTube
/Users/asand
/Users/asand/Documents
/Users/asand/Documents/01 - Projects
/Users/asand/Documents
/Users/asand/Documents/02 - Personal
/Users/asand/Documents/02 - Personal/00 - Me
/Users/asand/Documents/02 - Personal/00 - Me/09 - Keys
/Users/asand
/Users/asand/Downloads
/Users/asand/Downloads/fullstack-hy2020.github.io-source
/Users/asand
/Users/asand/Documents
/Users/asand/Documents/01 - Projects
/Users/asand/Documents/01 - Projects/2 - Progress
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website/node_modules
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website/node_modules/howler
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website/node_modules/howler/dist
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website/node_modules/howler
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website/node_modules
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Forte
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/forte
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/forte/client
/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website
/Users/asand
/Users/asand/Documents
/Users/asand/Documents/05 - Saved Content
/Users/asand/Documents/05 - Saved Content/000 - YouTube
/Users/asand/Documents/05 - Saved Content/000 - YouTube/004 Spoken Gospel
/Users/asand/Documents/05 - Saved Content/000 - YouTube
/Users/asand/Documents/05 - Saved Content
/Users/asand/Documents/05 - Saved Content/000 - Music
/Users/asand/Documents/05 - Saved Content/000 - Music/1 - Audio
/Users/asand/Documents/05 - Saved Content/000 - Music/1 - Audio/Daniel Camporee
/Users/asand
/Users/asand/Music
/Users/asand/Music/StemRoller
/Users/asand/Music/StemRoller/Once Again (Finale) [bAO53Jhju2M]-156e91a2749716dd
/Users/asand
/Users/asand/clone
/Users/asand
/Users/asand/server
/Users/asand/server/matrix-docker-ansible-deploy
/Users/asand/clone/dotfiles
/Users/asand/clone/dotfiles/.config
/Users/asand/clone/dotfiles
/Users/asand/clone/dotfiles/.git
/Users/asand/clone/dotfiles
/Users/asand/clone/dotfiles/.local
/Users/asand/clone/dotfiles/.local/share
/Users/asand/clone/dotfiles/.local/share/applications
/Users/asand/clone/dotfiles/.local/share
/Users/asand/clone/dotfiles/.local/share/gnome-shell
/Users/asand/clone/dotfiles/.local/share
/Users/asand/clone/dotfiles/.local
/Users/asand/clone/dotfiles
/Users/asand/clone/dotfiles/scripts
/Users/asand/clone/dotfiles
/Users/asand/clone/dotfiles/scripts
/Users/asand/clone/dotfiles
/Users/asand/clone/dotfiles/.config

View File

@@ -0,0 +1,293 @@
edit
#1682624541
help
#1682624819
l
#1682624822
ls
#1682624869
cs theme
#1682624874
cs
#1682624878
cs one-dark
#1682624902
config
#1682624964
icons
#1682624966
icons on
#1682624971
config
#1682634899
v "009 - Women Advances in Status.txt"
#1682634913
nvim "009 - Women Advances in Status.txt"
#1682652899
cd
#1682652903
j Socials
#1682652907
cd
#1682653264
edit
#1682689439
j Englis
#1682689443
v 6
#1682689446
nvim 6
#1682694901
.config
#1682694915
Library
#1682694937
Application\ Support/
#1682694973
~
#1682694982
j Engl
#1682694994
nvim 6
#1682695030
m 6 003\ -\ Nature\ Lesson.md
#1682695037
nvim 6
#1682697335
~
#1682697337
.config/
#1682697349
t 1 2
#1682697370
/Users/asand/Documents/02\ -\ Personal/03\ -\ Classes/English\ 10/
#1682708555
~
#1682708558
.config
#1682708572
mkdir yabai
#1682708605
#!/usr/bin/env sh
# Unload the macOS WindowManager process
launchctl unload -F /System/Library/LaunchAgents/com.apple.WindowManager.plist > /dev/null 2>&1 &
sudo yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
yabai -m signal --add event=window_focused action="sketchybar --trigger window_focus"
yabai -m signal --add event=display_added action="sleep 2 && $HOME/.config/yabai/create_spaces.sh"
yabai -m signal --add event=display_removed action="sleep 1 && $HOME/.config/yabai/create_spaces.sh"
yabai -m signal --add event=window_created action="sketchybar --trigger windows_on_spaces"
yabai -m signal --add event=window_destroyed action="sketchybar --trigger windows_on_spaces"
$HOME/.config/yabai/create_spaces.sh
yabai -m config external_bar all:49:0 \
window_border on \
mouse_follows_focus off \
focus_follows_mouse off \
window_zoom_persist off \
window_placement second_child \
window_topmost off \
window_shadow float \
window_opacity on \
window_opacity_duration 0.15 \
active_window_opacity 1.0 \
normal_window_opacity 0.95 \
window_border_width 2 \
window_border_hidpi off \
window_border_radius 11 \
window_animation_duration 0.22 \
active_window_border_color 0xffe1e3e4 \
normal_window_border_color 0xff2a2f38 \
insert_feedback_color 0xff9dd274 \
split_ratio 0.50 \
auto_balance off \
mouse_modifier fn \
mouse_action1 move \
mouse_action2 resize \
mouse_drop_action swap \
\
top_padding 10 \
bottom_padding 10 \
left_padding 10 \
right_padding 10 \
window_gap 8
# Exclude problematic apps from being managed:
yabai -m rule --add app="^(LuLu|Vimac|Calculator|Software Update|Dictionary|VLC|System Preferences|System Settings|zoom.us|Photo Booth|Archive Utility|Python|LibreOffice|App Store|Steam|Alfred|Activity Monitor)$" manage=off
yabai -m rule --add label="Finder" app="^Finder$" title="(Co(py|nnect)|Move|Info|Pref)" manage=off
yabai -m rule --add label="Safari" app="^Safari$" title="^(General|(Tab|Password|Website|Extension)s|AutoFill|Se(arch|curity)|Privacy|Advance)$" manage=off
yabai -m rule --add label="About This Mac" app="System Information" title="About This Mac" manage=off
yabai -m rule --add label="Select file to save to" app="^Inkscape$" title="Select file to save to" manage=off
yabai -m config layout bsp
echo "yabai configuration loaded..":qQ:q
#1682708615
nvim
#1682708627
nvim yabairc
#1682708670
fish
#1682712011
j Socia
#1682714306
n 010 - Women
#1682714323
ls -la
#1682714332
r 24
#1682714339
r 4
#1682714448
n "010 - Canada Emerging Autonomy"
#1682893493
~
#1682893498
.config
#1682893519
nvim 4
#1682893575
nvim calendar.sh
#1682893607
lf
#1682893779
nvim 10
#1682973972
j Eng
#1683673327
j Bible
#1683673393
n "P03 - Consecration Notes.md"
#1683758231
~
#1683758233
.config
#1684368577
j Bible
#1684450455
open 20
#1684500183
stats
#1684500209
tips
#1684899268
nvim 3
#1685306423
~
#1685306489
mpv 20
#1685306922
mpv 18
#1685306945
mpv 6
#1685307380
mpv 11
#1686890148
~
#1686890170
gpg --import 2
#1686890368
gpg --import 4
#1686890495
gpg --import 2
#1687120864
~
#1687120866
Down
#1687120882
npm install -g gatsby-cli
#1687120889
sudo npm install -g gatsby-cli
#1687120927
npm install
#1688546303
http-server .
#1688546367
http-server
#1688985027
npm install howler
#1688985032
cd node_modules/
#1688985215
http-server
#1689008127
mkdir Forte
#1689008135
t 1
#1689008147
git clone 'https://github.com/kaangiray26/forte'
#1689008168
npm run build
#1689008205
brew install vite
#1689008344
npm run build
#1689008354
brew remove vite
#1689008360
npm install vite
#1689008403
npm run build
#1689008407
npm help
#1689008413
npm install
#1689008420
fish
#1700142747
~
#1700142765
ls
#1700142770
ls -la
#1700142785
fish
#1700263351
../..
#1700263373
ffmpeg -i 46 jesus-strong-and-kind.wav
#1700541724
mkdir Daniel\ Camporee
#1700541735
ytmd 'https://www.youtube.com/watch?v=KdLD7XMhVE8&list=OLAK5uy_kyjcPYNwqyrpgsiPSfwE88IlLnJLWl3KA&index=4'
#1700716933
~
#1700716960
fish
#1702946294
~
#1704306253
hh
#1704306302
t 1
#1704306314
t 2
#1704306317
t 4
#1704306362
t 3
#1704306370
t 1
#1704306372
v 1
#1704306377
nvim 1
#1704306428
t 2 3
#1704306447
t 2
#1704306465
./net_test
#1704306485
hh
#1704306638
t 3
#1704306666
t 4
#1704306861
t 5
#1704308565
hh

View File

@@ -0,0 +1,46 @@
1:1704306013:1704306013:/Users/asand/Music/StemRoller/Once Again (Finale) [bAO53Jhju2M]-156e91a2749716dd
1:1704306013:1704306013:/Users/asand/Music/StemRoller
1:1704306013:1704306013:/Users/asand/Music
1:1704306013:1704306013:/Users/asand/Documents/05 - Saved Content/000 - Music/1 - Audio/Daniel Camporee
1:1704306013:1704306013:/Users/asand/Documents/05 - Saved Content/000 - Music/1 - Audio
1:1704306013:1704306013:/Users/asand/Documents/05 - Saved Content/000 - Music
1:1704306013:1704306013:/Users/asand/Documents/05 - Saved Content
1:1704306013:1704306013:/Users/asand/Documents/05 - Saved Content/000 - YouTube
1:1704306013:1704306013:/Users/asand/Documents
1:1704306013:1704306013:/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website
1:1704306013:1704306013:/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs
1:1704306013:1704306013:/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website/node_modules
1:1704306013:1704306013:/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website/node_modules/howler
1:1704306013:1704306013:/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Website/node_modules/howler/dist
1:1704306013:1704306013:/Users/asand/Documents/01 - Projects/2 - Progress
1:1704306013:1704306013:/Users/asand/Downloads/fullstack-hy2020.github.io-source
1:1704306013:1704306013:/Users/asand/Downloads
1:1704306013:1704306013:/Users/asand/Documents/02 - Personal/00 - Me/09 - Keys
1:1704306013:1704306013:/Users/asand/Documents/02 - Personal/00 - Me
1:1704306013:1704306013:/Users/asand/Documents/02 - Personal
1:1704306013:1704306013:/Users/asand/.config/sketchybar/items
1:1704306013:1704306013:/Users/asand/.config/sketchybar
1:1704306013:1704306013:/Users/asand/Documents/02 - Personal/03 - Classes/Bible 10
1:1704306013:1704306013:/Users/asand/.config/yabai
1:1704306013:1704306013:/Users/asand/.config
1:1704306013:1704306013:/Users/asand/Documents/02 - Personal/03 - Classes
1:1704306013:1704306013:/Users/asand/Documents/02 - Personal/03 - Classes/English 10
1:1704306013:1704306013:/Users/asand/Documents/02 - Personal/03 - Classes/Socials 10
3:1704306025:1704306815:/Users/asand/clone/dotfiles
1:1704306025:1704306025:/Users/asand/server
1:1704306025:1704306025:/Users/asand
1:1704306025:1704306025:/Users/asand/clone
1:1704306025:1704306025:/Users/asand/Documents/05 - Saved Content/000 - YouTube/004 Spoken Gospel
1:1704306025:1704306025:/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/forte/client
1:1704306025:1704306025:/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/forte
1:1704306025:1704306025:/Users/asand/Documents/01 - Projects/2 - Progress/023 - Scripture Songs/Forte
1:1704306025:1704306025:/Users/asand/Documents/01 - Projects
2:1704306481:1704306488:/Users/asand/clone/dotfiles/scripts
1:1704306481:1704306481:/Users/asand/clone/dotfiles/.local
1:1704306481:1704306481:/Users/asand/clone/dotfiles/.local/share
1:1704306481:1704306481:/Users/asand/clone/dotfiles/.local/share/gnome-shell
1:1704306481:1704306481:/Users/asand/clone/dotfiles/.local/share/applications
1:1704306481:1704306481:/Users/asand/clone/dotfiles/.git
2:1704306481:1704308569:/Users/asand/clone/dotfiles/.config
1:1704306481:1704306481:/Users/asand/server/matrix-docker-ansible-deploy
@39500

View File

@@ -0,0 +1,138 @@
###################################
# Configuration file for Lira #
# CliFM's resource opener #
###################################
# Commented and blank lines are omitted
# The below settings cover the most common filetypes
# It is recommended to edit this file placing your prefered applications
# at the beginning of the apps list to speed up the opening process
# The file is read top to bottom and left to right; the first existent
# application found will be used
# Applications defined here are NOT desktop files, but commands (arguments
# could be used as well). Bear in mind that these commands will be executed
# directly without shell intervention, so that no shell goodies (like pipes,
# conditions, loops, etc) are available. In case you need something more
# complex than a single command (including shell capabilities) write your
# own script and place the path to the script in place of the command.
# For example: X:^text/.*:~/scripts/my_cool_script.sh
# Applications defined here are NOT desktop files, but commands (arguments
# could be used as well). Write you own handmade scripts to open specific
# files if necessary. Ex: X:^text/.*:~/scripts/my_cool_script.sh
# Use 'X' to specify a GUI environment and '!X' for non-GUI environments,
# like the kernel built-in console or a remote SSH session.
# Use 'N' to match file names instead of MIME types.
# Regular expressions are allowed for both file types and file names.
# Use the %f placeholder to specify the position of the file name to be
# opened in the command. Example:
# 'mpv %f --terminal=no' -> 'mpv FILE --terminal=no'
# If %f is not specified, the file name will be added to the end of the
# command. Ex: 'mpv --terminal=no' -> 'mpv --terminal=no FILE'
# Running the opening application in the background:
# For GUI applications:
# APP %f &
# For terminal applications:
# TERM -e APP %f &
# Replace 'TERM' and 'APP' by the corresponding values. The -e option
# might vary depending on the terminal emulator used (TERM)
# Note on graphical applications: If the opening application is already
# running, the file will be opened, usually in a new tab, and CliFM won't
# wait for the file to be closed (because the procecss already returned).
# To avoid this, instruct the application to run a new instance. For example:
# geany -i, gedit -s, kate -n, pluma --new-window, and so on.
# To silence STDERR and/or STDOUT use !E and !O respectivelly (they could
# be used together). Examples:
# Silence STDERR only and run in the foreground:
# mpv %f !E
# Silence both (STDERR and STDOUT) and run in the background:
# mpv %f !EO &
# or
# mpv %f !E !O &
# Environment variables could be used as well. Example:
# X:text/plain=$EDITOR %f &;$VISUAL;nano;vi
# Use Ranger's rifle (or whatever opener you prefer) to open all files
#.*=rifle
###########################
# File names/extensions #
###########################
# Match a full file name
#X:N:some_filename=cmd
# Match all file names starting with 'str'
#X:N:^str.*=cmd
# Match files with extension 'ext'
#X:N:.*\.ext$=cmd
X:N:.*\.djvu$=djview;zathura;xreader;evince;atril
X:N:.*\.epub$=mupdf;zathura;xreader;ebook-viewer;FBReader;foliate
X:N:.*\.mobi$=ebook-viewer;FBReader;foliate
X:N:.*\.(cbr|cbz)$=mcomix;xreader;YACReader;qcomicbook;zathura;foliate
X:N:(.*\.clifm$|clifmrc)=$EDITOR;$VISUAL;kak;micro;nvim;vim;vi;mg;emacs;ed;nano;mili;leafpad;mousepad;featherpad;gedit -s;kate -n;pluma --new-window
!X:N:(.*\.clifm$|clifmrc)=$EDITOR;$VISUAL;kak;micro;nvim;vim;vi;mg;emacs;ed;nano
##################
# MIME types #
##################
# Directories - only for the open-with command (ow) and the --open command
# line option
# In graphical environments directories will be opened in a new window
X:inode/directory=xterm -e clifm %f &;xterm -e vifm %f &;pcmanfm %f &;thunar %f &;xterm -e ncdu %f &
!X:inode/directory=vifm;ranger;nnn;ncdu
# Web content
X:^text/html$=$BROWSER;surf;vimprobable;vimprobable2;qutebrowser;dwb;jumanji;luakit;uzbl;uzbl-tabbed;uzbl-browser;uzbl-core;iceweasel;midori;opera;firefox;seamonkey;brave;chromium-browser;chromium;google-chrome;epiphany;konqueror;elinks;links2;links;lynx;w3m
!X:^text/html$=$BROWSER;elinks;links2;links;lynx;w3m
# Text
#X:^text/x-(c|shellscript|perl|script.python|makefile|fortran|java-source|javascript|pascal)$=geany
X:^text/rtf$=libreoffice;soffice;ooffice
X:(^text/.*|application/json|inode/x-empty)=$EDITOR;$VISUAL;kak;micro;dte;nvim;vim;vi;mg;emacs;ed;nano;mili;leafpad;mousepad;featherpad;nedit;kate;gedit;pluma;io.elementary.code;liri-text;xed;atom;nota;gobby;kwrite;xedit
!X:(^text/.*|application/json|inode/x-empty)=$EDITOR;$VISUAL;kak;micro;dte;nvim;vim;vi;mg;emacs;ed;nano
# Office documents
X:^application/.*(open|office)document.*=libreoffice;soffice;ooffice
# Archives
# Note: 'ad' is CliFM's built-in archives utility (based on atool). Remove it if you
# prefer another application
X:^application/(zip|gzip|zstd|x-7z-compressed|x-xz|x-bzip*|x-tar|x-iso9660-image)=ad;xarchiver %f &;lxqt-archiver %f &;ark %f &
!X:^application/(zip|gzip|zstd|x-7z-compressed|x-xz|x-bzip*|x-tar|x-iso9660-image)=ad
# PDF
X:.*/pdf$=mupdf;sioyek;llpp;lpdf;zathura;mupdf-x11;apvlv;xpdf;xreader;evince;atril;okular;epdfview;qpdfview
# Images
X:^image/gif$=animate;pqiv;sxiv -a;nsxiv -a
X:^image/svg=display;inkscape
X:^image/.*=sxiv;nsxiv;pqiv;gpicview;qview;qimgv;mirage;ristretto;eog;eom;xviewer;viewnior;nomacs;geeqie;gwenview;gthumb;gimp
!X:^image/.*=fim;img2txt;cacaview;fbi;fbv
# Video and audio
X:^video/.*=ffplay;mplayer;mplayer2;mpv;vlc;gmplayer;smplayer;celluloid;qmplayer2;haruna;totem
X:^audio/.*=ffplay -nodisp -autoexit;mplayer;mplayer2;mpv;vlc;gmplayer;smplayer;totem
# Fonts
X:^font/.*=fontforge;fontpreview
# Torrent:
X:application/x-bittorrent=rtorrent;transimission-gtk;transmission-qt;deluge-gtk;ktorrent
# Fallback to another resource opener as last resource
.*=xdg-open;mimeo;mimeopen -n;whippet -m;open;linopen;

View File

@@ -0,0 +1,62 @@
#####################################
# Remotes management file for CliFM #
#####################################
# Blank and commented lines are omitted
# The syntax is as follows:
# A name for this remote. It will be used by the 'net' command
# and will be available for TAB completion
#[work_smb]
# Comment=My work samba server
#Mountpoint=/home/user/.config/clifm/mounts/work_smb
# Use %m as a placeholder for Mountpoint
#MountCmd=mount.cifs //WORK_IP/shared %m -o OPTIONS
#UnmountCmd=umount %m
# Automatically mount this remote at startup
#AutoMount=true
# Automatically unmount this remote at exit
#AutoUnmount=true
# A few examples
# A. Samba share
#[samba_share]
#Comment=my samba share
#Mountpoint="~/.config/clifm/mounts/samba_share"
#MountCmd=sudo mount.cifs //192.168.0.26/resource_name %m -o mapchars,credentials=/etc/samba/credentials/samba_share
#UnmountCmd=sudo umount %m
#AutoUnmount=false
#AutoMount=false
# B. SSH file system (sshfs)
#[my_ssh]
#Comment=my ssh
#Mountpoint="/media/ssh"
#MountCmd=sshfs user@192.168.0.12: %m -C -p 22
#UnmountCmd=fusermount3 -u %m
#AutoUnmount=false
#AutoMount=false
# C. Mounting a local file system
#[local]
#Comment=Local filesystem
#Mountpoint="/media/extra"
#MountCmd=sudo mount -U 1232dsd761278... %m
#UnmountCmd=sudo umount %m
#AutoUnmount=false
#AutoMount=true
# D. Mounting a removable device
#[USB]
#Comment=My USB drive
#Mountpoint="/media/usb"
#MountCmd=sudo mount -o gid=1000,fmask=113,dmask=002 -U 5647-1... %m
#UnmountCmd=sudo umount %m
#AutoUnmount=true
#AutoMount=false

View File

@@ -0,0 +1,57 @@
######################################
# Configuration file for Shotgun #
# CliFM's file previewer #
######################################
# Commented and blank lines are omitted
# It is recommended to edit this file setting your preferred applications
# first: the previewing process will be smoother and faster this way
# You can even remove whatever applications you don't use
# For syntax details consult the mimelist.clifm file
# Uncomment this line to use pistol (or any other previewing program)
#.*=pistol
# Uncomment and edit this line to use Ranger's scope script:
#.*=/home/USER/.config/ranger/scope.sh %f 120 80 /tmp/clifm/ True
# Directories
inode/directory=exa -a --tree --level=1 --;lsd -A --tree --depth=1 --color=always;tree -a -L 1;ls -Ap --color=always --indicator-style=none;
# Web content
^text/html$=w3m -dump;lynx -dump --;elinks -dump;pandoc -s -t markdown --;
# Text
^text/rtf=catdoc --;
N:.*\.json$=jq --color-output . ;python -m json.tool --;
N:.*\.md$=glow -s dark --;mdcat --;
^text/.*=highlight -f --out-format=xterm256 --force --;bat --style=plain --color=always --;cat --;
# Office documents
N:.*\.xlsx$=xlsx2csv --;file -b --;
N:.*\.(odt|ods|odp|sxw)$=odt2txt;pandoc -s -t markdown --;
^application/(.*wordprocessingml.document|.*epub+zip|x-fictionbook+xml)=pandoc -s -t markdown --;
^application/msword=catdoc --;file -b --;
^application/ms-excel=xls2csv --;file -b --;
# Archives
N:.*\.rar=unrar lt -p- --;
application/zstd=file -b --;true
application/(zip|gzip|x-7z-compressed|x-xz|x-bzip*|x-tar)=atool --list --;bsdtar --list --file;
# PDF
^application/pdf$=pdftotext -l 10 -nopgbrk -q -- %f -;mutool draw -F txt -i --;exiftool;
# Image, video, and audio
^image/vnd.djvu=djvutxt;exiftool;
^image/.*=exiftool;
^video/.*=mediainfo;exiftool;
^audio/.*=mediainfo;exiftool;
# Torrent:
application/x-bittorrent=transmission-show --;
# Fallback
.*=file -b --;true;

View File

@@ -0,0 +1,9 @@
# This is CliFM's profile file
#
# Write here the commands you want to be executed at startup
# Ex:
#echo "CliFM, the command line file manager"; read -r
#
# Uncommented, non-empty lines are executed line by line. If you
# want a multi-line command, just write a script for it:
#sh /path/to/my/script.sh

170
.config/clifm/prompts.clifm Normal file
View File

@@ -0,0 +1,170 @@
# This file is part of CliFM
# Prompts for CliFM
# Do not edit this file directly: use the 'prompt' command instead
# The regular prompt (just as the warning one, a secondary prompt used
# to highlight invalid/non-existent command names) is built using command
# substitution ($(cmd)), string literals and/or one or more of the
# following escape sequences:
# The prompt line is build using command substitution ($(cmd)), string
# literals and/or the following escape sequences:
#
# \e: Escape character
# \u: The username
# \H: The full hostname
# \h: The hostname, up to the first dot (.)
# \s: The name of the shell (everything after the last slash) currently
# used by CliFM
# \S: Current workspace number (colored according to wsx code in the color
# scheme file)
# \l: Print an L if running in light mode
# \P: The current profile name
# \n: A newline character
# \r: A carriage return
# \a: A bell character
# \d: The date, in abbreviated form (ex: Tue May 26)
# \t: The time, in 24-hour HH:MM:SS format
# \T: The time, in 12-hour HH:MM:SS format
# \@: The time, in 12-hour am/pm format
# \A: The time, in 24-hour HH:MM format
# \w: The full current working directory, with $HOME abbreviated with a
# tilde
# \W: The basename of $PWD, with $HOME abbreviated with a tilde
# \p: A mix of the two above, it abbreviates the current working directory
# only if longer than PathMax (a value defined in the configuration
# file).
# \z: Exit code of the last executed command (printed in green in case of
# success and in bold red in case of error)
# \$: #, if the effective user ID is 0 (root), and $ otherwise
# \nnn: The character whose ASCII code is the octal value nnn
# \\: A literal backslash
# \[: Begin a sequence of non-printing characters. This is mostly used to
# add color to the prompt line (using full ANSI escape sequences)
# \]: End a sequence of non-printing characters
#
# The following files statistics escape sequences are available as well:
#
# \D: Amount of sub-directories in the current directory
# \R: Amount of regular files in the current directory
# \X: Amount of executable files in the current directory
# \.: Amount of hidden files in the current directory
# \U: Amount of SUID files in the current directory
# \G: Amount of SGID files in the current directory
# \F: Amount of FIFO/pipe files in the current directory
# \K: Amount of socket files in the current directory
# \B: Amount of block device files in the current directory
# \C: Amount of character device files in the current directory
# \x: Amount of files with capabilities in the current directory
# \L: Amount of symbolic links in the current directory
# \o: Amount of broken symbolic links in the current directory
# \M: Amount of multi-link files in the current directory
# \E: Amount of files with extended attributes in the current directory
# \O: Amount of other-writable files in the current directory
# \": Amount of files with the sticky bit set in the current directory
# \?: Amount of files of unknown file type in the current directory
# \!: Amount of unstatable files in the current directory
# Escape codes to control prompt notifications:
#
# \*: An asterisk + amount of selected files (e.g. *12)
# \%: 'T' + amount of trashed files (e.g. T3)
# \#: Print an 'R' if running as root
# \(: 'E' + amount of error messages (e.g. E2)
# \): 'W' + amount of warning messages (e.g. W2)
# \=: 'N' + amount of notice messages (e.g. N1)
#
# NOTE: Except in the case of \#, nothing is printed if the corresponding
# number is zero (no selected files, no trashed files, and so on)
# Unicode characters could be inserted by directly pasting the
# corresponding char, or by inserting its hex code:
# echo -ne "paste_your_char" | hexdump -C
# Set Notifications to false to prevent the automatic insertion of
# root, trash, messages (error, warning, and notice), and selected files
# indicators at the left of the prompt, in which case the prompt code
# should handle itself this data using the appropriate escape codes
# To permanetly set any of the below prompts edit your color scheme file
# (via the 'cs edit' command), set Prompt to either the prompt code or
# the prompt name you want (e.g. Prompt="classic"), and comment out the
# remaining prompt lines
#
# NOTE: Since the below prompts have been designed for CliFM's default
# color scheme, you might need to edit the one you choose manually to
# make it fit your current color scheme. For example, the last color
# used in the warning prompt should match the 'wp' color defined in your
# color scheme file
[clifm]
Notifications=true
RegularPrompt="\[\e[0m\][\[\e[0;36m\]\S\[\e[0m\]]\l \A \u:\H \[\e[0;36m\]\w\n\[\e[0m\]<\z\[\e[0m\]> \[\e[0;34m\]\$ \[\e[0m\]"
EnableWarningPrompt=true
WarningPrompt="\[\e[00;02;31m\](!) > "
#[clifm-colorless]
#Notifications=true
#RegularPrompt="\[\e[0m\][\S]\l \A \u:\H \w\n<\z\[\e[0m\]> \$ "
#EnableWarningPrompt=true
#WarningPrompt="(!) > "
[clifm-box-drawing]
# The box drawing set isn't supported by all terminals
Notifications=false
RegularPrompt="\[\e[0m\]\[\e[0;36m\]\[\e(0\]lq\[\e(B\]\[\e[0;31m\]\#\[\e[32m\]\*\[\e[36m\]\%\[\e[31m\]\(\[\e[33m\]\)\[\e[32m\]\=\[\e[0m\][\S\[\e[0m\]]\l \A \u:\H \[\e[0;36m\]\w\n\[\e[0;36m\]\[\e(0\]mq\[\e(B\]\[\e[0m\]<\z\[\e[0m\]> \[\e[0;34m\]\$ \[\e[0m\]"
EnableWarningPrompt=true
WarningPrompt="\[\e[0;36m\]\[\e(0\]mq\[\e(B\]\[\e[0m\]<\z\[\e[0m\]> \[\e[1;31m\]\! \[\e[00;02;31m\]"
[classic]
Notifications=true
RegularPrompt="\[\e[1;32m\][\u@\H] \[\e[1;34m\]\w \[\e[0m\]\$ "
EnableWarningPrompt=true
WarningPrompt="\[\e[1;32m\][\u@\H] \[\e[1;34m\]\w \[\e[1;31m\]! \[\e[00;02;31m\]"
[security-scanner]
# Print file statistics about the current directory (-:-:-:-) in this order:
# SUID, SGID, other-writable, and executable files
Notifications=true
RegularPrompt="\[\e[0m\][\[\e[0;36m\]\S\[\e[0m\]]\l \[\e[0m\]\[\e[1;31m\]\U\[\e[0m\]:\[\e[1;33m\]\G\[\e[0m\]:\[\e[1;34m\]\O\[\e[0m\]:\[\e[1;32m\]\X\[\e[0m\] \A \[\e[0;36m\]\w\n\[\e[0m\]<\z\[\e[0m\]> \[\e[0;34m\]\$ \[\e[0m\]"
EnableWarningPrompt=true
WarningPrompt="\[\e[00;02;31m\](!) > "
[curves]
Notifications=false
RegularPrompt="\[\e[00;01;32m\]╭─\[\e[0m\]\[\e[1;32m\]\*\[\e[1;36m\]\%\[\e[1;31m\]\(\[\e[1;33m\]\)\[\e[1;32m\]\=\[\e[0m\][\S\[\e[0m\]]\[\e[01;32m\]─\[\e[0m\](\u:\H)\[\e[01;32m\]─\[\e[0m\][\[\e[00;36m\]\w\[\e[0m\]]\n\[\e[01;32m\]╰─\[\e[1;0m\]<\z\[\e[0m\]> \[\e[34m\]λ\[\e[0m\] "
EnableWarningPrompt=true
WarningPrompt="\[\e[0m\]\[\e[01;32m\]╰─\[\e[1;0m\]<\z\[\e[0m\]> \[\e[0;31m\]λ\[\e[00;02;31m\] "
# The prompts below require a patched Nerdfont
[firestarter]
Notifications=false
RegularPrompt="\[\e[01;38;5;124m\]╭─\[\e[38;5;124m\]\[\e[37;48;5;124m\]\[\e[1;37m\]\#\[\e[32m\]\*\[\e[36m\]\%\[\e[37m\]\(\[\e[33m\]\)\[\e[32m\]\=\[\e[00;37;48;5;124m\][\S\[\e[37;48;5;124m\]] \[\e[0;48;5;124m\]\A \[\e[00;38;5;124;43m\]\[\e[00;30;43m\] \u:\H \[\e[00;33;48;5;124m\]\[\e[00;37;48;5;124m\] \w \[\e[00;38;5;124m\]\[\e[0m\]\n\[\e[01;38;5;124m\]╰─▶ \[\e[0m\]"
EnableWarningPrompt=true
WarningPrompt="\[\e[00;01;38;5;124m\]╰─\[\e[0;38;5;124m\]▶ \[\e[00;02;31m\]"
[cold-winter]
Notifications=false
RegularPrompt="\[\e[00;37;100m\]\[\e[1;31m\]\#\[\e[32m\]\*\[\e[36m\]\%\[\e[31m\]\(\[\e[33m\]\)\[\e[32m\]\=\[\e[0;37;100m\][\S\[\e[00;37;100m\]] \A \[\e[00;90;46m\] \[\e[0;30;46m\]\u:\H \[\e[0;36;100m\] \[\e[00;37;100m\]\w \[\e[00;90;40m\] \n \[\e[1;90m\]\[\e[0m\] "
EnableWarningPrompt=true
WarningPrompt=" \[\e[0m\]\[\e[1;2;31m\] \[\e[00;02;31m\]"
[spot]
Notifications=false
RegularPrompt="\[\e[00;38;5;0;48;5;53m\] \[\e[31m\]\#\[\e[32m\]\*\[\e[36m\]\%\[\e[31m\]\(\[\e[34m\]\)\[\e[32m\]\=\[\e[00;37;48;5;53m\][\S\[\e[37m\]] \[\e[38;5;53;48;5;178m\] \[\e[00;38;5;0;48;5;178m\]\A \u:\H \w \[\e[00;38;5;178;48;5;0m\]\[\e[0;40m\]\n\[\e[0;38;5;254;48;5;53m\] \$ \[\e[0;38;5;53;48;5;0m\] \[\e[0m\] "
EnableWarningPrompt=true
WarningPrompt="\n\[\e[0;37;48;5;124m\] \x \[\e[0;38;5;124;48;5;0m\] \[\e[00;02;31m\] "
[artic-particles]
Notifications=false
RegularPrompt="\[\e[00;37;48;5;18m\] \A \[\e[00;38;5;18;47m\] \u:\H \[\e[00;37;48;5;18m\] \w \[\e[00;38;5;18;40m\] \n\[\e[00;37;48;5;18m\] \$ \[\e[00;38;5;18;40m\] "
EnableWarningPrompt=true
WarningPrompt="\[\e[00;02;31;47m\] \$ \[\e[00;37;0m\] \[\e[00;02;31m\]"
[green-beret]
Notifications=false
RegularPrompt="╭─\[\e[0;38;5;239;48;5;0m\]\[\e[0;38;5;15;48;5;239m\]\[\e[31m\]\#\[\e[38;5;76m\]\*\[\e[36m\]\%\[\e[31m\]\(\[\e[33m\]\)\[\e[32m\]\=\[\e[38;5;15m\][\S\[\e[38;5;15m\]]  \A \[\e[0;38;5;239;48;5;70m\]\[\e[0;38;5;0;48;5;70m\] \w \[\e[0;38;5;70;48;5;0m\]\n\[\e[0;40m\]╰─\[\e[0;38;5;70;48;5;0m\]▶\[\e[0;40m\] "
EnableWarningPrompt=true
WarningPrompt="\[\e[0;40m\]╰─\[\e[0;38;5;9;48;5;0m\]▶ \[\e[00;02;31m\]"

View File

@@ -0,0 +1,77 @@
# Readline keybindings for CliFM
# For the complete list of Readline options see:
# https://www.gnu.org/software/bash/manual/html_node/Readline-Init-File-Syntax.html#Readline-Init-File-Syntax
#$include /etc/inputrc
# Color files by types
set colored-stats on
# Append char to indicate type
set visible-stats on
# Mark symlinked directories
set mark-symlinked-directories on
# Color the common prefix
set colored-completion-prefix on
# Color the common prefix in menu-complete
set menu-complete-display-prefix on
# Disable paste protection
set enable-bracketed-paste on
set show-all-if-ambiguous on
set completion-ignore-case on
set meta-flag on
set input-meta on
set output-meta on
$if mode=emacs
# For linux console and RH/Debian xterm
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# For rxvt
"\x1b\x4f\x64": backward-word
"\x1b\x4f\x63": forward-word
# A few keybinds to avoid conflicts with CliFM specific keybinds
"\C-d":
"\e\e":
"\C-r\C-r": re-read-init-file
"\C-zA": do-lowercase-version
"\C-zB": do-lowercase-version
"\C-zC": do-lowercase-version
"\C-zD": do-lowercase-version
"\C-zE": do-lowercase-version
"\C-zF": do-lowercase-version
"\C-zG": do-lowercase-version
"\C-zH": do-lowercase-version
"\C-zI": do-lowercase-version
"\C-zJ": do-lowercase-version
"\C-zK": do-lowercase-version
"\C-zL": do-lowercase-version
"\C-zM": do-lowercase-version
"\C-zN": do-lowercase-version
"\C-zO": do-lowercase-version
"\C-zP": do-lowercase-version
"\C-zQ": do-lowercase-version
"\C-zR": do-lowercase-version
"\C-zS": do-lowercase-version
"\C-zT": do-lowercase-version
"\C-zU": do-lowercase-version
"\C-zV": do-lowercase-version
"\C-zW": do-lowercase-version
"\C-zX": do-lowercase-version
"\C-zY": do-lowercase-version
"\C-zZ": do-lowercase-version
# History completion based on prefix
#"\e[A": history-search-backward
#"\e[B": history-search-forward
$endif

Binary file not shown.

View File

@@ -1 +0,0 @@
brave-flags.conf

View File

@@ -1,10 +1,8 @@
# MacOS
# export PATH=$HOME/Library/Python/3.8/bin:/opt/homebrew/bin:/usr/local/bin:/usr/local/sbin:$HOME/bin:/usr/local/git/bin:$PATH
alias l="exa"
alias v="nvim"
cowspeak -bbl=o -f=/usr/share/cowspeak/arts/cow.art -t="$(quote)"
set ANSIBLE_NOCOWS 1
if status is-interactive
# Commands to run in interactive sessions can go here
end
fish_add_path /Users/asand/.cargo/bin
fish_add_path /Users/asand/scripts
alias v=nvim
alias c=clifm

View File

@@ -2,7 +2,7 @@
# VERSION: 3.0
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:4c566a
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_cancel:\x2d\x2dreverse
SETUVAR fish_color_command:81a1c1
SETUVAR fish_color_comment:434c5e
SETUVAR fish_color_cwd:green
@@ -12,10 +12,12 @@ SETUVAR fish_color_error:ebcb8b
SETUVAR fish_color_escape:00a6b2
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_host_remote:\x1d
SETUVAR fish_color_keyword:\x1d
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:00a6b2
SETUVAR fish_color_option:\x1d
SETUVAR fish_color_param:eceff4
SETUVAR fish_color_quote:a3be8c
SETUVAR fish_color_redirection:b48ead
@@ -26,8 +28,17 @@ SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_greeting:\x1d
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_background:\x1d
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_description:B3A06D
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr
SETUVAR fish_pager_color_secondary_background:\x1d
SETUVAR fish_pager_color_secondary_completion:\x1d
SETUVAR fish_pager_color_secondary_description:\x1d
SETUVAR fish_pager_color_secondary_prefix:\x1d
SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dbrblack
SETUVAR fish_pager_color_selected_completion:\x1d
SETUVAR fish_pager_color_selected_description:\x1d
SETUVAR fish_pager_color_selected_prefix:\x1d
SETUVAR fish_user_paths:/Users/asand/\x2ecargo/bin\x1e/Users/asand/scripts

View File

@@ -60,7 +60,7 @@ function fish_prompt
set_color -o white
echo -n @
if [ -z "$SSH_CLIENT" ]
if test -z "$SSH_CLIENT"
set_color -o blue
else
set_color -o cyan
@@ -115,7 +115,7 @@ function fish_prompt
# Battery status
type -q acpi
and test (acpi -a 2> /dev/null | string match -r off)
and _nim_prompt_wrapper $retc B (acpi -b | cut -d' ' -f 4- | tail -n 1)
and _nim_prompt_wrapper $retc B (acpi -b | cut -d' ' -f 4-)
# New line
echo

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<cphistory>
<operations />
<params />
</cphistory>

View File

@@ -1,21 +0,0 @@
[Windows]
Count=1
[Window0Column0]
Notebook0Dialogs=216;210;209;
Notebook1Dialogs=230;
NotebookCount=2
BeforeCanvas=false
[Window0]
ColumnCount=1
Floating=false
[transient]
state1=[Windows]\nCount=1\n\n[Window0Column0]\nNotebook0Dialogs=208;\nNotebookCount=1\n\n[Window0]\nColumnCount=1\nPosition=true\nx=45\ny=29\nwidth=924\nheight=765\n
dialogs1=208;
state2=[Windows]\nCount=1\n\n[Window0Column0]\nNotebook0Dialogs=233;\nNotebookCount=1\n\n[Window0]\nColumnCount=1\nPosition=true\nx=45\ny=29\nwidth=364\nheight=520\n
dialogs2=233;
state3=[Windows]\nCount=1\n\n[Window0Column0]\nNotebook0Dialogs=236;\nNotebookCount=1\n\n[Window0]\nColumnCount=1\nPosition=true\nx=45\ny=29\nwidth=433\nheight=520\n
dialogs3=236;
count=3

View File

@@ -1,12 +0,0 @@
Extension "XFIG Input" failed to load because a dependency was not met.
Dependency:
type: executable
location: path
string: fig2dev
Extension "Export to PDF via Scribus" failed to load because a dependency was not met.
Dependency:
type: executable
location: path
string: scribus

View File

@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<keys
name="User Shortcuts">
<bind
key="Up"
modifiers="Ctrl"
action="SelectionRaise"
display="true" />
<bind
key="Down"
modifiers="Ctrl"
action="SelectionLower"
display="true" />
</keys>

View File

@@ -1,77 +0,0 @@
#Inkscape page sizes
#NAME, WIDTH, HEIGHT, UNIT
A4, 210, 297, mm
US Letter, 8.5, 11, in
US Legal, 8.5, 14, in
US Executive, 7.25, 10.5, in
US Ledger/Tabloid, 11, 17, in
A0, 841, 1189, mm
A1, 594, 841, mm
A2, 420, 594, mm
A3, 297, 420, mm
A5, 148, 210, mm
A6, 105, 148, mm
A7, 74, 105, mm
A8, 52, 74, mm
A9, 37, 52, mm
A10, 26, 37, mm
B0, 1000, 1414, mm
B1, 707, 1000, mm
B2, 500, 707, mm
B3, 353, 500, mm
B4, 250, 353, mm
B5, 176, 250, mm
B6, 125, 176, mm
B7, 88, 125, mm
B8, 62, 88, mm
B9, 44, 62, mm
B10, 31, 44, mm
C0, 917, 1297, mm
C1, 648, 917, mm
C2, 458, 648, mm
C3, 324, 458, mm
C4, 229, 324, mm
C5, 162, 229, mm
C6, 114, 162, mm
C7, 81, 114, mm
C8, 57, 81, mm
C9, 40, 57, mm
C10, 28, 40, mm
D1, 545, 771, mm
D2, 385, 545, mm
D3, 272, 385, mm
D4, 192, 272, mm
D5, 136, 192, mm
D6, 96, 136, mm
D7, 68, 96, mm
E3, 400, 560, mm
E4, 280, 400, mm
E5, 200, 280, mm
E6, 140, 200, mm
CSE, 462, 649, pt
US #10 Envelope, 9.5, 4.125, in
DL Envelope, 220, 110, mm
Banner 468x60, 468, 60, px
Icon 16x16, 16, 16, px
Icon 32x32, 32, 32, px
Icon 48x48, 48, 48, px
ID Card (ISO 7810), 85.60, 53.98, mm
Business Card (US), 3.5, 2, in
Business Card (Europe), 85, 55, mm
Business Card (AU/NZ), 90, 55, mm
Arch A, 9, 12, in
Arch B, 12, 18, in
Arch C, 18, 24, in
Arch D, 24, 36, in
Arch E, 36, 48, in
Arch E1, 30, 42, in
Video SD / PAL, 768, 576, px
Video SD-Widescreen / PAL, 1024, 576, px
Video SD / NTSC, 544, 480, px
Video SD-Widescreen / NTSC, 872, 486, px
Video HD 720p, 1280, 720, px
Video HD 1080p, 1920, 1080, px
Video DCI 2k (Full Frame), 2048, 1080, px
Video UHD 4k, 3840, 2160, px
Video DCI 4k (Full Frame), 4096, 2160, px
Video UHD 8k, 7680, 4320, px
1 #Inkscape page sizes
2 #NAME, WIDTH, HEIGHT, UNIT
3 A4, 210, 297, mm
4 US Letter, 8.5, 11, in
5 US Legal, 8.5, 14, in
6 US Executive, 7.25, 10.5, in
7 US Ledger/Tabloid, 11, 17, in
8 A0, 841, 1189, mm
9 A1, 594, 841, mm
10 A2, 420, 594, mm
11 A3, 297, 420, mm
12 A5, 148, 210, mm
13 A6, 105, 148, mm
14 A7, 74, 105, mm
15 A8, 52, 74, mm
16 A9, 37, 52, mm
17 A10, 26, 37, mm
18 B0, 1000, 1414, mm
19 B1, 707, 1000, mm
20 B2, 500, 707, mm
21 B3, 353, 500, mm
22 B4, 250, 353, mm
23 B5, 176, 250, mm
24 B6, 125, 176, mm
25 B7, 88, 125, mm
26 B8, 62, 88, mm
27 B9, 44, 62, mm
28 B10, 31, 44, mm
29 C0, 917, 1297, mm
30 C1, 648, 917, mm
31 C2, 458, 648, mm
32 C3, 324, 458, mm
33 C4, 229, 324, mm
34 C5, 162, 229, mm
35 C6, 114, 162, mm
36 C7, 81, 114, mm
37 C8, 57, 81, mm
38 C9, 40, 57, mm
39 C10, 28, 40, mm
40 D1, 545, 771, mm
41 D2, 385, 545, mm
42 D3, 272, 385, mm
43 D4, 192, 272, mm
44 D5, 136, 192, mm
45 D6, 96, 136, mm
46 D7, 68, 96, mm
47 E3, 400, 560, mm
48 E4, 280, 400, mm
49 E5, 200, 280, mm
50 E6, 140, 200, mm
51 CSE, 462, 649, pt
52 US #10 Envelope, 9.5, 4.125, in
53 DL Envelope, 220, 110, mm
54 Banner 468x60, 468, 60, px
55 Icon 16x16, 16, 16, px
56 Icon 32x32, 32, 32, px
57 Icon 48x48, 48, 48, px
58 ID Card (ISO 7810), 85.60, 53.98, mm
59 Business Card (US), 3.5, 2, in
60 Business Card (Europe), 85, 55, mm
61 Business Card (AU/NZ), 90, 55, mm
62 Arch A, 9, 12, in
63 Arch B, 12, 18, in
64 Arch C, 18, 24, in
65 Arch D, 24, 36, in
66 Arch E, 36, 48, in
67 Arch E1, 30, 42, in
68 Video SD / PAL, 768, 576, px
69 Video SD-Widescreen / PAL, 1024, 576, px
70 Video SD / NTSC, 544, 480, px
71 Video SD-Widescreen / NTSC, 872, 486, px
72 Video HD 720p, 1280, 720, px
73 Video HD 1080p, 1920, 1080, px
74 Video DCI 2k (Full Frame), 2048, 1080, px
75 Video UHD 4k, 3840, 2160, px
76 Video DCI 4k (Full Frame), 4096, 2160, px
77 Video UHD 8k, 7680, 4320, px

File diff suppressed because it is too large Load Diff

1
.config/mpv/mpv.conf Normal file
View File

@@ -0,0 +1 @@
save-position-on-quit

View File

@@ -1,43 +0,0 @@
{
"float": [
{
"class": "pop-shell-example",
"title": "pop-shell-example"
},
{
"class": "albert",
"title": "albert — Albert"
},
{
"class": "wofi",
"title": "drun"
},
{
"class": "VirtualBox Manager"
},
{
"class": "obs",
"title": "Windowed Projector (Preview)"
},
{
"class": "X32-Edit"
},
{
"class": "pensela"
},
{
"class": "lmms"
},
{
"class": "wofi"
},
{
"class": "wofi",
"title": "dmenu"
}
],
"skiptaskbarhidden": [],
"log_on_focus": false,
"move_pointer_on_switch": false,
"default_pointer_position": "TOP_LEFT"
}

26
.config/sketchybar/colors.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
# Color Palette
export BLACK=0xff181926
export WHITE=0xffcad3f5
export RED=0xffed8796
export GREEN=0xffa6da95
export BLUE=0xff8aadf4
export YELLOW=0xffeed49f
export ORANGE=0xfff5a97f
export MAGENTA=0xffc6a0f6
export GREY=0xff939ab7
export TRANSPARENT=0x00000000
# General bar colors
export BAR_COLOR=0xff1e1e2e
export BAR_BORDER_COLOR=0xff494d64 #0xa024273a
export ICON_COLOR=$WHITE # Color of all icons
export LABEL_COLOR=$WHITE # Color of all labels
export BACKGROUND_1=0x603c3e4f
export BACKGROUND_2=0x60494d64
export POPUP_BACKGROUND_COLOR=0xff1e1e2e
export POPUP_BORDER_COLOR=$WHITE
export SHADOW_COLOR=$BLACK

View File

@@ -0,0 +1,122 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <mach/mach.h>
#include <stdbool.h>
#include <time.h>
#define MAX_TOPPROC_LEN 28
static const char TOPPROC[] = { "/bin/ps -Aceo pid,pcpu,comm -r" };
static const char FILTER_PATTERN[] = { "com.apple." };
struct cpu {
host_t host;
mach_msg_type_number_t count;
host_cpu_load_info_data_t load;
host_cpu_load_info_data_t prev_load;
bool has_prev_load;
char command[256];
};
static inline void cpu_init(struct cpu* cpu) {
cpu->host = mach_host_self();
cpu->count = HOST_CPU_LOAD_INFO_COUNT;
cpu->has_prev_load = false;
snprintf(cpu->command, 100, "");
}
static inline void cpu_update(struct cpu* cpu) {
kern_return_t error = host_statistics(cpu->host,
HOST_CPU_LOAD_INFO,
(host_info_t)&cpu->load,
&cpu->count );
if (error != KERN_SUCCESS) {
printf("Error: Could not read cpu host statistics.\n");
return;
}
if (cpu->has_prev_load) {
uint32_t delta_user = cpu->load.cpu_ticks[CPU_STATE_USER]
- cpu->prev_load.cpu_ticks[CPU_STATE_USER];
uint32_t delta_system = cpu->load.cpu_ticks[CPU_STATE_SYSTEM]
- cpu->prev_load.cpu_ticks[CPU_STATE_SYSTEM];
uint32_t delta_idle = cpu->load.cpu_ticks[CPU_STATE_IDLE]
- cpu->prev_load.cpu_ticks[CPU_STATE_IDLE];
double user_perc = (double)delta_user / (double)(delta_system
+ delta_user
+ delta_idle);
double sys_perc = (double)delta_system / (double)(delta_system
+ delta_user
+ delta_idle);
double total_perc = user_perc + sys_perc;
FILE* file;
char line[1024];
file = popen(TOPPROC, "r");
if (!file) {
printf("Error: TOPPROC command errored out...\n" );
return;
}
fgets(line, sizeof(line), file);
fgets(line, sizeof(line), file);
char* start = strstr(line, FILTER_PATTERN);
char topproc[MAX_TOPPROC_LEN + 4];
uint32_t caret = 0;
for (int i = 0; i < sizeof(line); i++) {
if (start && i == start - line) {
i+=9;
continue;
}
if (caret >= MAX_TOPPROC_LEN && caret <= MAX_TOPPROC_LEN + 2) {
topproc[caret++] = '.';
continue;
}
if (caret > MAX_TOPPROC_LEN + 2) break;
topproc[caret++] = line[i];
if (line[i] == '\0') break;
}
topproc[MAX_TOPPROC_LEN + 3] = '\0';
pclose(file);
char color[16];
if (total_perc >= .7) {
snprintf(color, 16, "%s", getenv("RED"));
} else if (total_perc >= .3) {
snprintf(color, 16, "%s", getenv("ORANGE"));
} else if (total_perc >= .1) {
snprintf(color, 16, "%s", getenv("YELLOW"));
} else {
snprintf(color, 16, "%s", getenv("LABEL_COLOR"));
}
snprintf(cpu->command, 256, "--push cpu.sys %.2f "
"--push cpu.user %.2f "
"--set cpu.top label='%s' "
"--set cpu.percent label=%.0f%% label.color=%s ",
sys_perc,
user_perc,
topproc,
total_perc*100.,
color );
}
else {
snprintf(cpu->command, 256, "");
}
cpu->prev_load = cpu->load;
cpu->has_prev_load = true;
}

BIN
.config/sketchybar/helper/helper Executable file

Binary file not shown.

View File

@@ -0,0 +1,31 @@
#include "cpu.h"
#include "sketchybar.h"
struct cpu g_cpu;
void handler(env env) {
// Environment variables passed from sketchybar can be accessed as seen below
char* name = env_get_value_for_key(env, "NAME");
char* sender = env_get_value_for_key(env, "SENDER");
char* info = env_get_value_for_key(env, "INFO");
char* selected = env_get_value_for_key(env, "SELECTED");
if ((strcmp(name, "cpu.percent") == 0)) {
// CPU graph updates
cpu_update(&g_cpu);
if (strlen(g_cpu.command) > 0) sketchybar(g_cpu.command);
}
}
int main (int argc, char** argv) {
cpu_init(&g_cpu);
if (argc < 2) {
printf("Usage: helper \"<bootstrap name>\"\n");
exit(1);
}
event_server_begin(handler, argv[1]);
return 0;
}

View File

@@ -0,0 +1,3 @@
helper: helper.c cpu.h sketchybar.h
clang -std=c99 -O3 helper.c -o helper

View File

@@ -0,0 +1,227 @@
#pragma once
#include <mach/mach.h>
#include <mach/message.h>
#include <bootstrap.h>
#include <stdlib.h>
#include <pthread.h>
#include <stdio.h>
typedef char* env;
#define MACH_HANDLER(name) void name(env env)
typedef MACH_HANDLER(mach_handler);
struct mach_message {
mach_msg_header_t header;
mach_msg_size_t msgh_descriptor_count;
mach_msg_ool_descriptor_t descriptor;
};
struct mach_buffer {
struct mach_message message;
mach_msg_trailer_t trailer;
};
struct mach_server {
bool is_running;
mach_port_name_t task;
mach_port_t port;
mach_port_t bs_port;
pthread_t thread;
mach_handler* handler;
};
static struct mach_server g_mach_server;
static mach_port_t g_mach_port = 0;
static inline char* env_get_value_for_key(env env, char* key) {
uint32_t caret = 0;
for(;;) {
if (!env[caret]) break;
if (strcmp(&env[caret], key) == 0)
return &env[caret + strlen(&env[caret]) + 1];
caret += strlen(&env[caret])
+ strlen(&env[caret + strlen(&env[caret]) + 1])
+ 2;
}
return (char*)"";
}
static inline mach_port_t mach_get_bs_port() {
mach_port_name_t task = mach_task_self();
mach_port_t bs_port;
if (task_get_special_port(task,
TASK_BOOTSTRAP_PORT,
&bs_port ) != KERN_SUCCESS) {
return 0;
}
mach_port_t port;
if (bootstrap_look_up(bs_port,
"git.felix.sketchybar",
&port ) != KERN_SUCCESS) {
return 0;
}
return port;
}
static inline void mach_receive_message(mach_port_t port, struct mach_buffer* buffer, bool timeout) {
*buffer = (struct mach_buffer) { 0 };
mach_msg_return_t msg_return;
if (timeout)
msg_return = mach_msg(&buffer->message.header,
MACH_RCV_MSG | MACH_RCV_TIMEOUT,
0,
sizeof(struct mach_buffer),
port,
100,
MACH_PORT_NULL );
else
msg_return = mach_msg(&buffer->message.header,
MACH_RCV_MSG,
0,
sizeof(struct mach_buffer),
port,
MACH_MSG_TIMEOUT_NONE,
MACH_PORT_NULL );
if (msg_return != MACH_MSG_SUCCESS) {
buffer->message.descriptor.address = NULL;
}
}
static inline char* mach_send_message(mach_port_t port, char* message, uint32_t len) {
if (!message || !port) {
return NULL;
}
mach_port_t response_port;
mach_port_name_t task = mach_task_self();
if (mach_port_allocate(task, MACH_PORT_RIGHT_RECEIVE,
&response_port ) != KERN_SUCCESS) {
return NULL;
}
if (mach_port_insert_right(task, response_port,
response_port,
MACH_MSG_TYPE_MAKE_SEND)!= KERN_SUCCESS) {
return NULL;
}
struct mach_message msg = { 0 };
msg.header.msgh_remote_port = port;
msg.header.msgh_local_port = response_port;
msg.header.msgh_id = response_port;
msg.header.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND,
MACH_MSG_TYPE_MAKE_SEND,
0,
MACH_MSGH_BITS_COMPLEX );
msg.header.msgh_size = sizeof(struct mach_message);
msg.msgh_descriptor_count = 1;
msg.descriptor.address = message;
msg.descriptor.size = len * sizeof(char);
msg.descriptor.copy = MACH_MSG_VIRTUAL_COPY;
msg.descriptor.deallocate = false;
msg.descriptor.type = MACH_MSG_OOL_DESCRIPTOR;
mach_msg(&msg.header,
MACH_SEND_MSG,
sizeof(struct mach_message),
0,
MACH_PORT_NULL,
MACH_MSG_TIMEOUT_NONE,
MACH_PORT_NULL );
struct mach_buffer buffer = { 0 };
mach_receive_message(response_port, &buffer, true);
if (buffer.message.descriptor.address)
return (char*)buffer.message.descriptor.address;
mach_msg_destroy(&buffer.message.header);
return NULL;
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
static inline bool mach_server_begin(struct mach_server* mach_server, mach_handler handler, char* bootstrap_name) {
mach_server->task = mach_task_self();
if (mach_port_allocate(mach_server->task,
MACH_PORT_RIGHT_RECEIVE,
&mach_server->port ) != KERN_SUCCESS) {
return false;
}
if (mach_port_insert_right(mach_server->task,
mach_server->port,
mach_server->port,
MACH_MSG_TYPE_MAKE_SEND) != KERN_SUCCESS) {
return false;
}
if (task_get_special_port(mach_server->task,
TASK_BOOTSTRAP_PORT,
&mach_server->bs_port) != KERN_SUCCESS) {
return false;
}
if (bootstrap_register(mach_server->bs_port,
bootstrap_name,
mach_server->port ) != KERN_SUCCESS) {
return false;
}
mach_server->handler = handler;
mach_server->is_running = true;
struct mach_buffer buffer;
while (mach_server->is_running) {
mach_receive_message(mach_server->port, &buffer, false);
mach_server->handler((env)buffer.message.descriptor.address);
mach_msg_destroy(&buffer.message.header);
}
return true;
}
#pragma clang diagnostic pop
static inline char* sketchybar(char* message) {
uint32_t message_length = strlen(message) + 1;
char formatted_message[message_length + 1];
char quote = '\0';
uint32_t caret = 0;
for (int i = 0; i < message_length; ++i) {
if (message[i] == '"' || message[i] == '\'') {
if (quote == message[i]) quote = '\0';
else quote = message[i];
continue;
}
formatted_message[caret] = message[i];
if (message[i] == ' ' && !quote) formatted_message[caret] = '\0';
caret++;
}
if (caret > 0 && formatted_message[caret] == '\0'
&& formatted_message[caret - 1] == '\0') {
caret--;
}
formatted_message[caret] = '\0';
if (!g_mach_port) g_mach_port = mach_get_bs_port();
char* response = mach_send_message(g_mach_port,
formatted_message,
caret + 1 );
if (response) return response;
else return (char*)"";
}
static inline void event_server_begin(mach_handler event_handler, char* bootstrap_name) {
mach_server_begin(&g_mach_server, event_handler, bootstrap_name);
}

46
.config/sketchybar/icons.sh Executable file
View File

@@ -0,0 +1,46 @@
#!/bin/bash
# General Icons
LOADING=􀖇
APPLE=􀣺
PREFERENCES=􀺽
ACTIVITY=􀒓
LOCK=􀒳
BELL=􀋚
BELL_DOT=􀝗
# Git Icons
GIT_ISSUE=􀍷
GIT_DISCUSSION=􀒤
GIT_PULL_REQUEST=􀙡
GIT_COMMIT=􀡚
GIT_INDICATOR=􀂓
# Spotify Icons
SPOTIFY_BACK=􀊎
SPOTIFY_PLAY_PAUSE=􀊈
SPOTIFY_NEXT=􀊐
SPOTIFY_SHUFFLE=􀊝
SPOTIFY_REPEAT=􀊞
# Yabai Icons
YABAI_STACK=􀏭
YABAI_FULLSCREEN_ZOOM=􀏜
YABAI_PARENT_ZOOM=􀥃
YABAI_FLOAT=􀢌
YABAI_GRID=􀧍
# Battery Icons
BATTERY_100=􀛨
BATTERY_75=􀺸
BATTERY_50=􀺶
BATTERY_25=􀛩
BATTERY_0=􀛪
BATTERY_CHARGING=􀢋
# Volume Icons
VOLUME_100=􀊩
VOLUME_66=􀊧
VOLUME_33=􀊥
VOLUME_10=􀊡
VOLUME_0=􀊣

View File

@@ -0,0 +1,44 @@
#!/bin/bash
POPUP_OFF='sketchybar --set apple.logo popup.drawing=off'
POPUP_CLICK_SCRIPT='sketchybar --set $NAME popup.drawing=toggle'
apple_logo=(
icon=$APPLE
icon.font="$FONT:Black:16.0"
icon.color=$GREEN
padding_right=15
label.drawing=off
click_script="$POPUP_CLICK_SCRIPT"
popup.height=35
)
apple_prefs=(
icon=$PREFERENCES
label="Preferences"
click_script="open -a 'System Preferences'; $POPUP_OFF"
)
apple_activity=(
icon=$ACTIVITY
label="Activity"
click_script="open -a 'Activity Monitor'; $POPUP_OFF"
)
apple_lock=(
icon=$LOCK
label="Lock Screen"
click_script="pmset displaysleepnow; $POPUP_OFF"
)
sketchybar --add item apple.logo left \
--set apple.logo "${apple_logo[@]}" \
\
--add item apple.prefs popup.apple.logo \
--set apple.prefs "${apple_prefs[@]}" \
\
--add item apple.activity popup.apple.logo \
--set apple.activity "${apple_activity[@]}" \
\
--add item apple.lock popup.apple.logo \
--set apple.lock "${apple_lock[@]}"

View File

@@ -0,0 +1,15 @@
#!/bin/bash
battery=(
script="$PLUGIN_DIR/battery.sh"
icon.font="$FONT:Regular:19.0"
padding_right=5
padding_left=0
label.drawing=off
update_freq=120
updates=on
)
sketchybar --add item battery right \
--set battery "${battery[@]}" \
--subscribe battery power_source_change system_woke

View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Trigger the brew_udpate event when brew update or upgrade is run from cmdline
# e.g. via function in .zshrc
brew=(
icon=􀐛
label=?
padding_right=10
script="$PLUGIN_DIR/brew.sh"
)
sketchybar --add event brew_update \
--add item brew right \
--set brew "${brew[@]}" \
--subscribe brew brew_update

View File

@@ -0,0 +1,17 @@
#!/bin/bash
calendar=(
icon=cal
icon.font="$FONT:Black:12.0"
icon.padding_right=0
label.width=45
label.align=right
padding_left=15
update_freq=30
script="$PLUGIN_DIR/calendar.sh"
click_script="$PLUGIN_DIR/zen.sh"
)
sketchybar --add item calendar right \
--set calendar "${calendar[@]}" \
--subscribe calendar system_woke

53
.config/sketchybar/items/cpu.sh Executable file
View File

@@ -0,0 +1,53 @@
#!/bin/bash
cpu_top=(
label.font="$FONT:Semibold:7"
label=CPU
icon.drawing=off
width=0
padding_right=15
y_offset=6
)
cpu_percent=(
label.font="$FONT:Heavy:12"
label=CPU
y_offset=-4
padding_right=15
width=55
icon.drawing=off
update_freq=4
mach_helper="$HELPER"
)
cpu_sys=(
width=0
graph.color=$RED
graph.fill_color=$RED
label.drawing=off
icon.drawing=off
background.height=30
background.drawing=on
background.color=$TRANSPARENT
)
cpu_user=(
graph.color=$BLUE
label.drawing=off
icon.drawing=off
background.height=30
background.drawing=on
background.color=$TRANSPARENT
)
sketchybar --add item cpu.top right \
--set cpu.top "${cpu_top[@]}" \
\
--add item cpu.percent right \
--set cpu.percent "${cpu_percent[@]}" \
\
--add graph cpu.sys right 75 \
--set cpu.sys "${cpu_sys[@]}" \
\
--add graph cpu.user right 75 \
--set cpu.user "${cpu_user[@]}"

View File

@@ -0,0 +1,30 @@
#!/bin/bash
FRONT_APP_SCRIPT='sketchybar --set $NAME label="$INFO"'
yabai=(
icon.width=0
label.width=0
script="$PLUGIN_DIR/yabai.sh"
icon.font="$FONT:Bold:16.0"
associated_display=active
)
front_app=(
icon.drawing=off
label.font="$FONT:Black:12.0"
associated_display=active
script="$FRONT_APP_SCRIPT"
)
sketchybar --add event window_focus \
--add event windows_on_spaces \
--add item yabai left \
--set yabai "${yabai[@]}" \
--subscribe yabai window_focus \
windows_on_spaces \
mouse.clicked \
\
--add item front_app left \
--set front_app "${front_app[@]}" \
--subscribe front_app front_app_switched

View File

@@ -0,0 +1,33 @@
#!/bin/bash
POPUP_CLICK_SCRIPT="sketchybar --set \$NAME popup.drawing=toggle"
github_bell=(
update_freq=180
icon=$BELL
icon.font="$FONT:Bold:15.0"
icon.color=$BLUE
label=$LOADING
label.highlight_color=$BLUE
popup.align=right
script="$PLUGIN_DIR/github.sh"
click_script="$POPUP_CLICK_SCRIPT"
)
github_template=(
drawing=off
background.corner_radius=12
padding_left=7
padding_right=7
icon.background.height=2
icon.background.y_offset=-12
)
sketchybar --add item github.bell right \
--set github.bell "${github_bell[@]}" \
--subscribe github.bell mouse.entered \
mouse.exited \
mouse.exited.global \
\
--add item github.template popup.github.bell \
--set github.template "${github_template[@]}"

View File

@@ -0,0 +1,59 @@
#!/bin/bash
SPACE_ICONS=("1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15")
# Destroy space on right click, focus space on left click.
# New space by left clicking separator (>)
sid=0
spaces=()
for i in "${!SPACE_ICONS[@]}"
do
sid=$(($i+1))
space=(
associated_space=$sid
icon="${SPACE_ICONS[i]}"
icon.padding_left=10
icon.padding_right=10
padding_left=2
padding_right=2
label.padding_right=20
icon.highlight_color=$RED
label.color=$GREY
label.highlight_color=$WHITE
label.font="sketchybar-app-font:Regular:16.0"
label.y_offset=-1
background.color=$BACKGROUND_1
background.border_color=$BACKGROUND_2
background.drawing=off
label.drawing=off
script="$PLUGIN_DIR/space.sh"
)
sketchybar --add space space.$sid left \
--set space.$sid "${space[@]}" \
--subscribe space.$sid mouse.clicked
done
spaces_bracket=(
background.color=$BACKGROUND_1
background.border_color=$BACKGROUND_2
)
separator=(
icon=􀆊
icon.font="$FONT:Heavy:16.0"
padding_left=10
padding_right=8
label.drawing=off
associated_display=active
click_script='yabai -m space --create && sketchybar --trigger space_change'
icon.color=$WHITE
)
sketchybar --add bracket spaces_bracket '/space\..*/' \
--set spaces_bracket "${spaces_bracket[@]}" \
\
--add item separator left \
--set separator "${separator[@]}"

View File

@@ -0,0 +1,197 @@
#!/bin/bash
SPOTIFY_EVENT="com.spotify.client.PlaybackStateChanged"
POPUP_SCRIPT="sketchybar -m --set spotify.anchor popup.drawing=toggle"
spotify_anchor=(
script="$PLUGIN_DIR/spotify.sh"
click_script="$POPUP_SCRIPT"
popup.horizontal=on
popup.align=center
popup.height=150
icon=􁁒
icon.font="$FONT:Regular:25.0"
label.drawing=off
drawing=off
y_offset=2
)
spotify_cover=(
script="$PLUGIN_DIR/spotify.sh"
click_script="open -a 'Spotify'; $POPUP_SCRIPT"
label.drawing=off
icon.drawing=off
padding_left=12
padding_right=10
background.image.scale=0.2
background.image.drawing=on
background.drawing=on
)
spotify_title=(
icon.drawing=off
padding_left=0
padding_right=0
width=0
label.font="$FONT:Heavy:15.0"
y_offset=55
)
spotify_artist=(
icon.drawing=off
y_offset=30
padding_left=0
padding_right=0
width=0
)
spotify_album=(
icon.drawing=off
padding_left=0
padding_right=0
y_offset=15
width=0
)
spotify_state=(
icon.drawing=on
icon.font="$FONT:Light Italic:10.0"
icon.width=35
icon="00:00"
label.drawing=on
label.font="$FONT:Light Italic:10.0"
label.width=35
label="00:00"
padding_left=0
padding_right=0
y_offset=-15
width=0
slider.background.height=6
slider.background.corner_radius=1
slider.background.color=$GREY
slider.highlight_color=$GREEN
slider.percentage=40
slider.width=115
script="$PLUGIN_DIR/spotify.sh"
update_freq=1
updates=when_shown
)
spotify_shuffle=(
icon=􀊝
icon.padding_left=5
icon.padding_right=5
icon.color=$BLACK
icon.highlight_color=$GREY
label.drawing=off
script="$PLUGIN_DIR/spotify.sh"
y_offset=-45
)
spotify_back=(
icon=􀊎
icon.padding_left=5
icon.padding_right=5
icon.color=$BLACK
script="$PLUGIN_DIR/spotify.sh"
label.drawing=off
y_offset=-45
)
spotify_play=(
icon=􀊔
background.height=40
background.corner_radius=20
width=40
align=center
background.color=$POPUP_BACKGROUND_COLOR
background.border_color=$WHITE
background.border_width=0
background.drawing=on
icon.padding_left=4
icon.padding_right=5
updates=on
label.drawing=off
script="$PLUGIN_DIR/spotify.sh"
y_offset=-45
)
spotify_next=(
icon=􀊐
icon.padding_left=5
icon.padding_right=5
icon.color=$BLACK
label.drawing=off
script="$PLUGIN_DIR/spotify.sh"
y_offset=-45
)
spotify_repeat=(
icon=􀊞
icon.highlight_color=$GREY
icon.padding_left=5
icon.padding_right=10
icon.color=$BLACK
label.drawing=off
script="$PLUGIN_DIR/spotify.sh"
y_offset=-45
)
spotify_controls=(
background.color=$GREEN
background.corner_radius=11
background.drawing=on
y_offset=-45
)
sketchybar --add event spotify_change $SPOTIFY_EVENT \
--add item spotify.anchor center \
--set spotify.anchor "${spotify_anchor[@]}" \
--subscribe spotify.anchor mouse.entered mouse.exited \
mouse.exited.global \
\
--add item spotify.cover popup.spotify.anchor \
--set spotify.cover "${spotify_cover[@]}" \
\
--add item spotify.title popup.spotify.anchor \
--set spotify.title "${spotify_title[@]}" \
\
--add item spotify.artist popup.spotify.anchor \
--set spotify.artist "${spotify_artist[@]}" \
\
--add item spotify.album popup.spotify.anchor \
--set spotify.album "${spotify_album[@]}" \
\
--add slider spotify.state popup.spotify.anchor \
--set spotify.state "${spotify_state[@]}" \
--subscribe spotify.state mouse.clicked \
\
--add item spotify.shuffle popup.spotify.anchor \
--set spotify.shuffle "${spotify_shuffle[@]}" \
--subscribe spotify.shuffle mouse.clicked \
\
--add item spotify.back popup.spotify.anchor \
--set spotify.back "${spotify_back[@]}" \
--subscribe spotify.back mouse.clicked \
\
--add item spotify.play popup.spotify.anchor \
--set spotify.play "${spotify_play[@]}" \
--subscribe spotify.play mouse.clicked spotify_change \
\
--add item spotify.next popup.spotify.anchor \
--set spotify.next "${spotify_next[@]}" \
--subscribe spotify.next mouse.clicked \
\
--add item spotify.repeat popup.spotify.anchor \
--set spotify.repeat "${spotify_repeat[@]}" \
--subscribe spotify.repeat mouse.clicked \
\
--add item spotify.spacer popup.spotify.anchor \
--set spotify.spacer width=5 \
\
--add bracket spotify.controls spotify.shuffle \
spotify.back \
spotify.play \
spotify.next \
spotify.repeat \
--set spotify.controls "${spotify_controls[@]}" \

View File

@@ -0,0 +1,45 @@
#!/bin/bash
volume_slider=(
script="$PLUGIN_DIR/volume.sh"
updates=on
label.drawing=off
icon.drawing=off
slider.highlight_color=$BLUE
slider.background.height=5
slider.background.corner_radius=3
slider.background.color=$BACKGROUND_2
slider.knob=􀀁
slider.knob.drawing=off
)
volume_icon=(
click_script="$PLUGIN_DIR/volume_click.sh"
padding_left=10
icon=$VOLUME_100
icon.width=0
icon.align=left
icon.color=$GREY
icon.font="$FONT:Regular:14.0"
label.width=25
label.align=left
label.font="$FONT:Regular:14.0"
)
status_bracket=(
background.color=$BACKGROUND_1
background.border_color=$BACKGROUND_2
)
sketchybar --add slider volume right \
--set volume "${volume_slider[@]}" \
--subscribe volume volume_change \
mouse.clicked \
mouse.entered \
mouse.exited \
\
--add item volume_icon right \
--set volume_icon "${volume_icon[@]}"
sketchybar --add bracket status brew github.bell volume_icon \
--set status "${status_bracket[@]}"

View File

@@ -0,0 +1,33 @@
#!/bin/bash
source "$CONFIG_DIR/icons.sh"
source "$CONFIG_DIR/colors.sh"
BATTERY_INFO="$(pmset -g batt)"
PERCENTAGE=$(echo "$BATTERY_INFO" | grep -Eo "\d+%" | cut -d% -f1)
CHARGING=$(echo "$BATTERY_INFO" | grep 'AC Power')
if [ $PERCENTAGE = "" ]; then
exit 0
fi
DRAWING=on
COLOR=$WHITE
case ${PERCENTAGE} in
9[0-9]|100) ICON=$BATTERY_100; DRAWING=off
;;
[6-8][0-9]) ICON=$BATTERY_75; DRAWING=off
;;
[3-5][0-9]) ICON=$BATTERY_50
;;
[1-2][0-9]) ICON=$BATTERY_25; COLOR=$ORANGE
;;
*) ICON=$BATTERY_0; COLOR=$RED
esac
if [[ $CHARGING != "" ]]; then
ICON=$BATTERY_CHARGING
DRAWING=off
fi
sketchybar --set $NAME drawing=$DRAWING icon="$ICON" icon.color=$COLOR

View File

@@ -0,0 +1,21 @@
#!/bin/bash
source "$CONFIG_DIR/colors.sh"
COUNT=$(brew outdated | wc -l | tr -d ' ')
COLOR=$RED
case "$COUNT" in
[3-5][0-9]) COLOR=$ORANGE
;;
[1-2][0-9]) COLOR=$YELLOW
;;
[1-9]) COLOR=$WHITE
;;
0) COLOR=$GREEN
COUNT=􀆅
;;
esac
sketchybar --set $NAME label=$COUNT icon.color=$COLOR

View File

@@ -0,0 +1,3 @@
#!/bin/bash
sketchybar --set $NAME icon="$(date '+%a, %d %b')" label="$(date '+%H:%M')"

View File

@@ -0,0 +1,90 @@
#!/bin/bash
update() {
source "$CONFIG_DIR/colors.sh"
source "$CONFIG_DIR/icons.sh"
NOTIFICATIONS="$(gh api notifications)"
COUNT="$(echo "$NOTIFICATIONS" | jq 'length')"
args=()
if [ "$NOTIFICATIONS" = "[]" ]; then
args+=(--set $NAME icon=$BELL label="0")
else
args+=(--set $NAME icon=$BELL_DOT label="$COUNT")
fi
PREV_COUNT=$(sketchybar --query github.bell | jq -r .label.value)
# For sound to play around with:
# afplay /System/Library/Sounds/Morse.aiff
args+=(--remove '/github.notification\.*/')
COUNTER=0
COLOR=$BLUE
args+=(--set github.bell icon.color=$COLOR)
while read -r repo url type title
do
COUNTER=$((COUNTER + 1))
IMPORTANT="$(echo "$title" | egrep -i "(deprecat|break|broke)")"
COLOR=$BLUE
PADDING=0
if [ "${repo}" = "" ] && [ "${title}" = "" ]; then
repo="Note"
title="No new notifications"
fi
case "${type}" in
"'Issue'") COLOR=$GREEN; ICON=$GIT_ISSUE; URL="$(gh api "$(echo "${url}" | sed -e "s/^'//" -e "s/'$//")" | jq .html_url)"
;;
"'Discussion'") COLOR=$WHITE; ICON=$GIT_DISCUSSION; URL="https://www.github.com/notifications"
;;
"'PullRequest'") COLOR=$MAGENTA; ICON=$GIT_PULL_REQUEST; URL="$(gh api "$(echo "${url}" | sed -e "s/^'//" -e "s/'$//")" | jq .html_url)"
;;
"'Commit'") COLOR=$WHITE; ICON=$GIT_COMMIT; URL="$(gh api "$(echo "${url}" | sed -e "s/^'//" -e "s/'$//")" | jq .html_url)"
;;
esac
if [ "$IMPORTANT" != "" ]; then
COLOR=$RED
ICON=􀁞
args+=(--set github.bell icon.color=$COLOR)
fi
notification=(
label="$(echo "$title" | sed -e "s/^'//" -e "s/'$//")"
icon="$ICON $(echo "$repo" | sed -e "s/^'//" -e "s/'$//"):"
icon.padding_left="$PADDING"
label.padding_right="$PADDING"
icon.color=$COLOR
position=popup.github.bell
icon.background.color=$COLOR
drawing=on
click_script="open $URL; sketchybar --set github.bell popup.drawing=off"
)
args+=(--clone github.notification.$COUNTER github.template \
--set github.notification.$COUNTER "${notification[@]}")
done <<< "$(echo "$NOTIFICATIONS" | jq -r '.[] | [.repository.name, .subject.latest_comment_url, .subject.type, .subject.title] | @sh')"
sketchybar -m "${args[@]}" > /dev/null
if [ $COUNT -gt $PREV_COUNT ] 2>/dev/null || [ "$SENDER" = "forced" ]; then
sketchybar --animate tanh 15 --set github.bell label.y_offset=5 label.y_offset=0
fi
}
popup() {
sketchybar --set $NAME popup.drawing=$1
}
case "$SENDER" in
"routine"|"forced") update
;;
"mouse.entered") popup on
;;
"mouse.exited"|"mouse.exited.global") popup off
;;
"mouse.clicked") popup toggle
;;
esac

View File

@@ -0,0 +1,384 @@
case $@ in
"Brave Browser")
icon_result=":brave_browser:"
;;
"Keyboard Maestro")
icon_result=":keyboard_maestro:"
;;
"Min")
icon_result=":min_browser:"
;;
"Final Cut Pro")
icon_result=":final_cut_pro:"
;;
"FaceTime")
icon_result=":face_time:"
;;
"Affinity Publisher")
icon_result=":affinity_publisher:"
;;
"Messages" | "Nachrichten")
icon_result=":messages:"
;;
"Tweetbot" | "Twitter")
icon_result=":twitter:"
;;
"ClickUp")
icon_result=":click_up:"
;;
"KeePassXC")
icon_result=":kee_pass_x_c:"
;;
"Microsoft Edge")
icon_result=":microsoft_edge:"
;;
"VLC")
icon_result=":vlc:"
;;
"Emacs")
icon_result=":emacs:"
;;
"Thunderbird")
icon_result=":thunderbird:"
;;
"Notes")
icon_result=":notes:"
;;
"Caprine")
icon_result=":caprine:"
;;
"Zulip")
icon_result=":zulip:"
;;
"Spark")
icon_result=":spark:"
;;
"Microsoft To Do" | "Things")
icon_result=":things:"
;;
"DEVONthink 3")
icon_result=":devonthink3:"
;;
"GitHub Desktop")
icon_result=":git_hub:"
;;
"App Store")
icon_result=":app_store:"
;;
"Chromium" | "Google Chrome" | "Google Chrome Canary")
icon_result=":google_chrome:"
;;
"zoom.us")
icon_result=":zoom:"
;;
"MoneyMoney")
icon_result=":bank:"
;;
"Color Picker")
icon_result=":color_picker:"
;;
"Microsoft Word")
icon_result=":microsoft_word:"
;;
"Microsoft Teams")
icon_result=":microsoft_teams:"
;;
"Iris")
icon_result=":iris:"
;;
"WebStorm")
icon_result=":web_storm:"
;;
"Neovide" | "MacVim" | "Vim" | "VimR")
icon_result=":vim:"
;;
"Sublime Text")
icon_result=":sublime_text:"
;;
"PomoDone App")
icon_result=":pomodone:"
;;
"Setapp")
icon_result=":setapp:"
;;
"qutebrowser")
icon_result=":qute_browser:"
;;
"Mattermost")
icon_result=":mattermost:"
;;
"Notability")
icon_result=":notability:"
;;
"WhatsApp")
icon_result=":whats_app:"
;;
"OBS")
icon_result=":obsstudio:"
;;
"Parallels Desktop")
icon_result=":parallels:"
;;
"VMware Fusion")
icon_result=":vmware_fusion:"
;;
"Pine")
icon_result=":pine:"
;;
"Microsoft Excel")
icon_result=":microsoft_excel:"
;;
"Microsoft PowerPoint")
icon_result=":microsoft_power_point:"
;;
"Matlab")
icon_result=":matlab:"
;;
"Numbers")
icon_result=":numbers:"
;;
"Default")
icon_result=":default:"
;;
"Element")
icon_result=":element:"
;;
"Bear")
icon_result=":bear:"
;;
"TeamSpeak 3")
icon_result=":team_speak:"
;;
"Airmail")
icon_result=":airmail:"
;;
"Firefox Developer Edition" | "Firefox Nightly")
icon_result=":firefox_developer_edition:"
;;
"Trello")
icon_result=":trello:"
;;
"TickTick")
icon_result=":tick_tick:"
;;
"Notion")
icon_result=":notion:"
;;
"Live")
icon_result=":ableton:"
;;
"Evernote Legacy")
icon_result=":evernote_legacy:"
;;
"Calendar" | "Fantastical")
icon_result=":calendar:"
;;
"Android Studio")
icon_result=":android_studio:"
;;
"Xcode")
icon_result=":xcode:"
;;
"Slack")
icon_result=":slack:"
;;
"Sequel Pro")
icon_result=":sequel_pro:"
;;
"Bitwarden")
icon_result=":bit_warden:"
;;
"System Preferences" | "System Settings")
icon_result=":gear:"
;;
"Discord" | "Discord Canary" | "Discord PTB")
icon_result=":discord:"
;;
"Vivaldi")
icon_result=":vivaldi:"
;;
"Firefox")
icon_result=":firefox:"
;;
"Skype")
icon_result=":skype:"
;;
"Dropbox")
icon_result=":dropbox:"
;;
"微信")
icon_result=":wechat:"
;;
"Typora")
icon_result=":text:"
;;
"Blender")
icon_result=":blender:"
;;
"Canary Mail" | "HEY" | "Mail" | "Mailspring" | "MailMate" | "邮件" | "Outlook")
icon_result=":mail:"
;;
"Safari" | "Safari Technology Preview")
icon_result=":safari:"
;;
"Telegram")
icon_result=":telegram:"
;;
"Keynote")
icon_result=":keynote:"
;;
"Reeder")
icon_result=":reeder5:"
;;
"Spotify")
icon_result=":spotify:"
;;
"MAMP" | "MAMP PRO")
icon_result=":mamp:"
;;
"Figma")
icon_result=":figma:"
;;
"Joplin")
icon_result=":joplin:"
;;
"Spotlight")
icon_result=":spotlight:"
;;
"Music")
icon_result=":music:"
;;
"Insomnia")
icon_result=":insomnia:"
;;
"TIDAL")
icon_result=":tidal:"
;;
"Alfred")
icon_result=":alfred:"
;;
"Pages")
icon_result=":pages:"
;;
"Folx")
icon_result=":folx:"
;;
"Android Messages")
icon_result=":android_messages:"
;;
"mpv")
icon_result=":mpv:"
;;
"网易云音乐")
icon_result=":netease_music:"
;;
"Transmit")
icon_result=":transmit:"
;;
"Pi-hole Remote")
icon_result=":pihole:"
;;
"Nova")
icon_result=":nova:"
;;
"Affinity Designer")
icon_result=":affinity_designer:"
;;
"IntelliJ IDEA")
icon_result=":idea:"
;;
"Drafts")
icon_result=":drafts:"
;;
"Audacity")
icon_result=":audacity:"
;;
"Affinity Photo")
icon_result=":affinity_photo:"
;;
"Atom")
icon_result=":atom:"
;;
"Obsidian")
icon_result=":obsidian:"
;;
"CleanMyMac X")
icon_result=":desktop:"
;;
"Zotero")
icon_result=":zotero:"
;;
"Todoist")
icon_result=":todoist:"
;;
"LibreWolf")
icon_result=":libre_wolf:"
;;
"Grammarly Editor")
icon_result=":grammarly:"
;;
"OmniFocus")
icon_result=":omni_focus:"
;;
"Reminders")
icon_result=":reminders:"
;;
"Preview" | "Skim" | "zathura")
icon_result=":pdf:"
;;
"1Password 7")
icon_result=":one_password:"
;;
"Code" | "Code - Insiders")
icon_result=":code:"
;;
"VSCodium")
icon_result=":vscodium:"
;;
"Tower")
icon_result=":tower:"
;;
"Calibre")
icon_result=":book:"
;;
"Finder" | "访达")
icon_result=":finder:"
;;
"Linear")
icon_result=":linear:"
;;
"League of Legends")
icon_result=":league_of_legends:"
;;
"Zeplin")
icon_result=":zeplin:"
;;
"Signal")
icon_result=":signal:"
;;
"Podcasts")
icon_result=":podcasts:"
;;
"Alacritty" | "Hyper" | "iTerm2" | "kitty" | "Terminal" | "WezTerm")
icon_result=":terminal:"
;;
"Tor Browser")
icon_result=":tor_browser:"
;;
"Kakoune")
icon_result=":kakoune:"
;;
"GrandTotal" | "Receipts")
icon_result=":dollar:"
;;
"Sketch")
icon_result=":sketch:"
;;
"Sequel Ace")
icon_result=":sequel_ace:"
;;
*)
icon_result=":default:"
;;
esac
echo $icon_result

View File

@@ -0,0 +1,28 @@
#!/bin/bash
update() {
source "$CONFIG_DIR/colors.sh"
COLOR=$BACKGROUND_2
if [ "$SELECTED" = "true" ]; then
COLOR=$GREY
fi
sketchybar --set $NAME icon.highlight=$SELECTED \
label.highlight=$SELECTED \
background.border_color=$COLOR
}
mouse_clicked() {
if [ "$BUTTON" = "right" ]; then
yabai -m space --destroy $SID
sketchybar --trigger windows_on_spaces --trigger space_change
else
yabai -m space --focus $SID 2>/dev/null
fi
}
case "$SENDER" in
"mouse.clicked") mouse_clicked
;;
*) update
;;
esac

View File

@@ -0,0 +1,147 @@
#!/bin/bash
next ()
{
osascript -e 'tell application "Spotify" to play next track'
}
back ()
{
osascript -e 'tell application "Spotify" to play previous track'
}
play ()
{
osascript -e 'tell application "Spotify" to playpause'
}
repeat ()
{
REPEAT=$(osascript -e 'tell application "Spotify" to get repeating')
if [ "$REPEAT" = "false" ]; then
sketchybar -m --set spotify.repeat icon.highlight=on
osascript -e 'tell application "Spotify" to set repeating to true'
else
sketchybar -m --set spotify.repeat icon.highlight=off
osascript -e 'tell application "Spotify" to set repeating to false'
fi
}
shuffle ()
{
SHUFFLE=$(osascript -e 'tell application "Spotify" to get shuffling')
if [ "$SHUFFLE" = "false" ]; then
sketchybar -m --set spotify.shuffle icon.highlight=on
osascript -e 'tell application "Spotify" to set shuffling to true'
else
sketchybar -m --set spotify.shuffle icon.highlight=off
osascript -e 'tell application "Spotify" to set shuffling to false'
fi
}
update ()
{
PLAYING=1
if [ "$(echo "$INFO" | jq -r '.["Player State"]')" = "Playing" ]; then
PLAYING=0
TRACK="$(echo "$INFO" | jq -r .Name | sed 's/\(.\{20\}\).*/\1.../')"
ARTIST="$(echo "$INFO" | jq -r .Artist | sed 's/\(.\{20\}\).*/\1.../')"
ALBUM="$(echo "$INFO" | jq -r .Album | sed 's/\(.\{25\}\).*/\1.../')"
SHUFFLE=$(osascript -e 'tell application "Spotify" to get shuffling')
REPEAT=$(osascript -e 'tell application "Spotify" to get repeating')
COVER=$(osascript -e 'tell application "Spotify" to get artwork url of current track')
fi
args=()
if [ $PLAYING -eq 0 ]; then
curl -s --max-time 20 "$COVER" -o /tmp/cover.jpg
if [ "$ARTIST" == "" ]; then
args+=(--set spotify.title label="$TRACK"
--set spotify.album label="Podcast"
--set spotify.artist label="$ALBUM" )
else
args+=(--set spotify.title label="$TRACK"
--set spotify.album label="$ALBUM"
--set spotify.artist label="$ARTIST")
fi
args+=(--set spotify.play icon=􀊆
--set spotify.shuffle icon.highlight=$SHUFFLE
--set spotify.repeat icon.highlight=$REPEAT
--set spotify.cover background.image="/tmp/cover.jpg"
background.color=0x00000000
--set spotify.anchor drawing=on )
else
args+=(--set spotify.anchor drawing=off popup.drawing=off
--set spotify.play icon=􀊄 )
fi
sketchybar -m "${args[@]}"
}
scrubbing() {
DURATION_MS=$(osascript -e 'tell application "Spotify" to get duration of current track')
DURATION=$((DURATION_MS/1000))
TARGET=$((DURATION*PERCENTAGE/100))
osascript -e "tell application \"Spotify\" to set player position to $TARGET"
sketchybar --set spotify.state slider.percentage=$PERCENTAGE
}
scroll() {
DURATION_MS=$(osascript -e 'tell application "Spotify" to get duration of current track')
DURATION=$((DURATION_MS/1000))
FLOAT="$(osascript -e 'tell application "Spotify" to get player position')"
TIME=${FLOAT%.*}
sketchybar --animate linear 10 \
--set spotify.state slider.percentage="$((TIME*100/DURATION))" \
icon="$(date -r $TIME +'%M:%S')" \
label="$(date -r $DURATION +'%M:%S')"
}
mouse_clicked () {
case "$NAME" in
"spotify.next") next
;;
"spotify.back") back
;;
"spotify.play") play
;;
"spotify.shuffle") shuffle
;;
"spotify.repeat") repeat
;;
"spotify.state") scrubbing
;;
*) exit
;;
esac
}
popup () {
sketchybar --set spotify.anchor popup.drawing=$1
}
routine() {
case "$NAME" in
"spotify.state") scroll
;;
*) update
;;
esac
}
case "$SENDER" in
"mouse.clicked") mouse_clicked
;;
"mouse.entered") popup on
;;
"mouse.exited"|"mouse.exited.global") popup off
;;
"routine") routine
;;
"forced") exit 0
;;
*) update
;;
esac

View File

@@ -0,0 +1,56 @@
#!/bin/bash
WIDTH=100
volume_change() {
source "$CONFIG_DIR/icons.sh"
case $INFO in
[6-9][0-9]|100) ICON=$VOLUME_100
;;
[3-5][0-9]) ICON=$VOLUME_66
;;
[1-2][0-9]) ICON=$VOLUME_33
;;
[1-9]) ICON=$VOLUME_10
;;
0) ICON=$VOLUME_0
;;
*) ICON=$VOLUME_100
esac
sketchybar --set volume_icon label=$ICON
sketchybar --set $NAME slider.percentage=$INFO \
--animate tanh 30 --set $NAME slider.width=$WIDTH
sleep 2
# Check wether the volume was changed another time while sleeping
FINAL_PERCENTAGE=$(sketchybar --query $NAME | jq -r ".slider.percentage")
if [ "$FINAL_PERCENTAGE" -eq "$INFO" ]; then
sketchybar --animate tanh 30 --set $NAME slider.width=0
fi
}
mouse_clicked() {
osascript -e "set volume output volume $PERCENTAGE"
}
mouse_entered() {
sketchybar --set $NAME slider.knob.drawing=on
}
mouse_exited() {
sketchybar --set $NAME slider.knob.drawing=off
}
case "$SENDER" in
"volume_change") volume_change
;;
"mouse.clicked") mouse_clicked
;;
"mouse.entered") mouse_entered
;;
"mouse.exited") mouse_exited
;;
esac

View File

@@ -0,0 +1,48 @@
#!/bin/bash
WIDTH=100
detail_on() {
sketchybar --animate tanh 30 --set volume slider.width=$WIDTH
}
detail_off() {
sketchybar --animate tanh 30 --set volume slider.width=0
}
toggle_detail() {
INITIAL_WIDTH=$(sketchybar --query volume | jq -r ".slider.width")
if [ "$INITIAL_WIDTH" -eq "0" ]; then
detail_on
else
detail_off
fi
}
toggle_devices() {
which SwitchAudioSource >/dev/null || exit 0
source "$CONFIG_DIR/colors.sh"
args=(--remove '/volume.device\.*/' --set "$NAME" popup.drawing=toggle)
COUNTER=0
CURRENT="$(SwitchAudioSource -t output -c)"
while IFS= read -r device; do
COLOR=$GREY
if [ "${device}" = "$CURRENT" ]; then
COLOR=$WHITE
fi
args+=(--add item volume.device.$COUNTER popup."$NAME" \
--set volume.device.$COUNTER label="${device}" \
label.color="$COLOR" \
click_script="SwitchAudioSource -s \"${device}\" && sketchybar --set /volume.device\.*/ label.color=$GREY --set \$NAME label.color=$WHITE --set $NAME popup.drawing=off")
COUNTER=$((COUNTER+1))
done <<< "$(SwitchAudioSource -a -t output)"
sketchybar -m "${args[@]}" > /dev/null
}
if [ "$BUTTON" = "right" ] || [ "$MODIFIER" = "shift" ]; then
toggle_devices
else
toggle_detail
fi

View File

@@ -0,0 +1,80 @@
#!/bin/bash
window_state() {
source "$CONFIG_DIR/colors.sh"
source "$CONFIG_DIR/icons.sh"
WINDOW=$(yabai -m query --windows --window)
STACK_INDEX=$(echo "$WINDOW" | jq '.["stack-index"]')
COLOR=$BAR_BORDER_COLOR
ICON=""
if [ "$(echo "$WINDOW" | jq '.["is-floating"]')" = "true" ]; then
ICON+=$YABAI_FLOAT
COLOR=$MAGENTA
elif [ "$(echo "$WINDOW" | jq '.["has-fullscreen-zoom"]')" = "true" ]; then
ICON+=$YABAI_FULLSCREEN_ZOOM
COLOR=$GREEN
elif [ "$(echo "$WINDOW" | jq '.["has-parent-zoom"]')" = "true" ]; then
ICON+=$YABAI_PARENT_ZOOM
COLOR=$BLUE
elif [[ $STACK_INDEX -gt 0 ]]; then
LAST_STACK_INDEX=$(yabai -m query --windows --window stack.last | jq '.["stack-index"]')
ICON+=$YABAI_STACK
LABEL="$(printf "[%s/%s]" "$STACK_INDEX" "$LAST_STACK_INDEX")"
COLOR=$RED
fi
args=(--animate sin 10 --bar border_color=$COLOR
--set $NAME icon.color=$COLOR)
[ -z "$LABEL" ] && args+=(label.width=0) \
|| args+=(label="$LABEL" label.width=40)
[ -z "$ICON" ] && args+=(icon.width=0) \
|| args+=(icon="$ICON" icon.width=30)
sketchybar -m "${args[@]}"
}
windows_on_spaces () {
CURRENT_SPACES="$(yabai -m query --displays | jq -r '.[].spaces | @sh')"
args=(--set spaces_bracket drawing=off
--set '/space\..*/' background.drawing=on
--animate sin 10)
while read -r line
do
for space in $line
do
icon_strip=" "
apps=$(yabai -m query --windows --space $space | jq -r ".[].app")
if [ "$apps" != "" ]; then
while IFS= read -r app; do
icon_strip+=" $($CONFIG_DIR/plugins/icon_map.sh "$app")"
done <<< "$apps"
fi
args+=(--set space.$space label="$icon_strip" label.drawing=on)
done
done <<< "$CURRENT_SPACES"
sketchybar -m "${args[@]}"
}
mouse_clicked() {
yabai -m window --toggle float
window_state
}
case "$SENDER" in
"mouse.clicked") mouse_clicked
;;
"forced") exit 0
;;
"window_focus") window_state
;;
"windows_on_spaces") windows_on_spaces
;;
esac

View File

@@ -0,0 +1,39 @@
#!/bin/bash
zen_on() {
sketchybar --set github.bell drawing=off \
--set apple.logo drawing=off \
--set '/cpu.*/' drawing=off \
--set calendar icon.drawing=off \
--set separator drawing=off \
--set front_app drawing=off \
--set volume_icon drawing=off \
--set spotify.anchor drawing=off \
--set spotify.play updates=off \
--set brew drawing=off
}
zen_off() {
sketchybar --set github.bell drawing=on \
--set apple.logo drawing=on \
--set '/cpu.*/' drawing=on \
--set calendar icon.drawing=on \
--set separator drawing=on \
--set front_app drawing=on \
--set volume_icon drawing=on \
--set spotify.play updates=on \
--set brew drawing=on
}
if [ "$1" = "on" ]; then
zen_on
elif [ "$1" = "off" ]; then
zen_off
else
if [ "$(sketchybar --query apple.logo | jq -r ".geometry.drawing")" = "on" ]; then
zen_on
else
zen_off
fi
fi

83
.config/sketchybar/sketchybarrc Executable file
View File

@@ -0,0 +1,83 @@
#!/bin/bash
source "$CONFIG_DIR/colors.sh" # Loads all defined colors
source "$CONFIG_DIR/icons.sh" # Loads all defined icons
ITEM_DIR="$CONFIG_DIR/items" # Directory where the items are configured
PLUGIN_DIR="$CONFIG_DIR/plugins" # Directory where all the plugin scripts are stored
FONT="SF Pro" # Needs to have Regular, Bold, Semibold, Heavy and Black variants
PADDINGS=3 # All paddings use this value (icon, label, background)
# Setting up and starting the helper process
HELPER=git.felix.helper
killall helper
(cd $CONFIG_DIR/helper && make)
$CONFIG_DIR/helper/helper $HELPER > /dev/null 2>&1 &
# Unload the macOS on screen indicator overlay for volume change
launchctl unload -F /System/Library/LaunchAgents/com.apple.OSDUIHelper.plist > /dev/null 2>&1 &
# Setting up the general bar appearance of the bar
bar=(
height=45
color=$BAR_COLOR
border_width=2
border_color=$BAR_BORDER_COLOR
shadow=off
position=top
sticky=on
padding_right=10
padding_left=10
y_offset=-5
margin=-2
)
sketchybar --bar "${bar[@]}"
# Setting up default values
defaults=(
updates=when_shown
icon.font="$FONT:Bold:14.0"
icon.color=$ICON_COLOR
icon.padding_left=$PADDINGS
icon.padding_right=$PADDINGS
label.font="$FONT:Semibold:13.0"
label.color=$LABEL_COLOR
label.padding_left=$PADDINGS
label.padding_right=$PADDINGS
padding_right=$PADDINGS
padding_left=$PADDINGS
background.height=26
background.corner_radius=9
background.border_width=2
popup.background.border_width=2
popup.background.corner_radius=9
popup.background.border_color=$POPUP_BORDER_COLOR
popup.background.color=$POPUP_BACKGROUND_COLOR
popup.blur_radius=20
popup.background.shadow.drawing=on
)
sketchybar --default "${defaults[@]}"
# Left
source $ITEM_DIR/apple.sh
source $ITEM_DIR/spaces.sh
source $ITEM_DIR/front_app.sh
# Center
source "$ITEM_DIR/spotify.sh"
# Right
source "$ITEM_DIR/calendar.sh"
source "$ITEM_DIR/brew.sh"
source "$ITEM_DIR/github.sh"
source "$ITEM_DIR/battery.sh"
source "$ITEM_DIR/volume.sh"
source "$ITEM_DIR/cpu.sh"
# Forcing all item scripts to run (never do this outside of sketchybarrc)
sketchybar --update
echo "sketchybar configuation loaded.."

59
.config/yabai/yabairc Executable file
View File

@@ -0,0 +1,59 @@
#!/usr/bin/env sh
# Unload the macOS WindowManager process
launchctl unload -F /System/Library/LaunchAgents/com.apple.WindowManager.plist > /dev/null 2>&1 &
sudo yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
yabai -m signal --add event=window_focused action="sketchybar --trigger window_focus"
yabai -m signal --add event=display_added action="sleep 2 && $HOME/.config/yabai/create_spaces.sh"
yabai -m signal --add event=display_removed action="sleep 1 && $HOME/.config/yabai/create_spaces.sh"
yabai -m signal --add event=window_created action="sketchybar --trigger windows_on_spaces"
yabai -m signal --add event=window_destroyed action="sketchybar --trigger windows_on_spaces"
$HOME/.config/yabai/create_spaces.sh
yabai -m config external_bar all:40:0 \
window_border on \
mouse_follows_focus off \
focus_follows_mouse autofocus \
window_zoom_persist off \
window_placement second_child \
window_topmost off \
window_shadow float \
window_opacity on \
window_opacity_duration 0.15 \
active_window_opacity 1.0 \
normal_window_opacity 0.95 \
window_border_width 2 \
window_border_hidpi off \
window_border_radius 11 \
window_animation_duration 0.22 \
active_window_border_color 0xffe1e3e4 \
normal_window_border_color 0xff2a2f38 \
insert_feedback_color 0xff9dd274 \
split_ratio 0.50 \
auto_balance off \
mouse_modifier fn \
mouse_action1 move \
mouse_action2 resize \
mouse_drop_action swap \
\
top_padding 10 \
bottom_padding 10 \
left_padding 10 \
right_padding 10 \
window_gap 8 \
window_border_blur off
# Exclude problematic apps from being managed:
yabai -m rule --add app="^(LuLu|Vimac|Calculator|Software Update|Dictionary|VLC|System Preferences|System Settings|zoom.us|Photo Booth|Archive Utility|Python|LibreOffice|App Store|Steam|Alfred|Activity Monitor|Cerebro)$" manage=off
yabai -m rule --add label="Finder" app="^Finder$" title="(Co(py|nnect)|Move|Info|Pref)" manage=off
yabai -m rule --add label="Safari" app="^Safari$" title="^(General|(Tab|Password|Website|Extension)s|AutoFill|Se(arch|curity)|Privacy|Advance)$" manage=off
yabai -m rule --add label="About This Mac" app="System Information" title="About This Mac" manage=off
yabai -m rule --add label="Select file to save to" app="^Inkscape$" title="Select file to save to" manage=off
yabai -m rule --add label="Little Arc" app="^Arc$" title="Little Arc.*"
yabai -m config layout bsp
echo "yabai configuration loaded.."