Initial commit of utility scripts
This commit is contained in:
parent
ac77586a15
commit
1faeefffd7
34 changed files with 1328 additions and 1 deletions
305
config/dunst/dunstrc
Normal file
305
config/dunst/dunstrc
Normal file
|
@ -0,0 +1,305 @@
|
|||
[global]
|
||||
frame_width = 1
|
||||
frame_color = "#888694"
|
||||
|
||||
font = FiraCode Nerd Font 11
|
||||
|
||||
# Allow a small subset of html markup:
|
||||
# <b>bold</b>
|
||||
# <i>italic</i>
|
||||
# <s>strikethrough</s>
|
||||
# <u>underline</u>
|
||||
#
|
||||
# For a complete reference see
|
||||
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
|
||||
# If markup is not allowed, those tags will be stripped out of the
|
||||
# message.
|
||||
markup = yes
|
||||
|
||||
# The format of the message. Possible variables are:
|
||||
# %a appname
|
||||
# %s summary
|
||||
# %b body
|
||||
# %i iconname (including its path)
|
||||
# %I iconname (without its path)
|
||||
# %p progress value if set ([ 0%] to [100%]) or nothing
|
||||
# Markup is allowed
|
||||
format = "%s %p\n%b"
|
||||
|
||||
# Sort messages by urgency.
|
||||
sort = yes
|
||||
|
||||
# Show how many messages are currently hidden (because of geometry).
|
||||
indicate_hidden = yes
|
||||
|
||||
# Alignment of message text.
|
||||
# Possible values are "left", "center" and "right".
|
||||
alignment = left
|
||||
|
||||
# The frequency with wich text that is longer than the notification
|
||||
# window allows bounces back and forth.
|
||||
# This option conflicts with "word_wrap".
|
||||
# Set to 0 to disable.
|
||||
bounce_freq = 5
|
||||
|
||||
|
||||
# Show age of message if message is older than show_age_threshold
|
||||
# seconds.
|
||||
# Set to -1 to disable.
|
||||
show_age_threshold = 60
|
||||
|
||||
# Split notifications into multiple lines if they don't fit into
|
||||
# geometry.
|
||||
word_wrap = yes
|
||||
|
||||
# Ignore newlines '\n' in notifications.
|
||||
ignore_newline = no
|
||||
|
||||
|
||||
# The geometry of the window:
|
||||
# [{width}]x{height}[+/-{x}+/-{y}]
|
||||
# The geometry of the message window.
|
||||
# The height is measured in number of notifications everything else
|
||||
# in pixels. If the width is omitted but the height is given
|
||||
# ("-geometry x2"), the message window expands over the whole screen
|
||||
# (dmenu-like). If width is 0, the window expands to the longest
|
||||
# message displayed. A positive x is measured from the left, a
|
||||
# negative from the right side of the screen. Y is measured from
|
||||
# the top and down respectevly.
|
||||
# The width can be negative. In this case the actual width is the
|
||||
# screen width minus the width defined in within the geometry option.
|
||||
origin="top-right"
|
||||
offset= 25x25
|
||||
width=350
|
||||
height=200
|
||||
|
||||
# Shrink window if it's smaller than the width. Will be ignored if
|
||||
# width is 0.
|
||||
shrink = yes
|
||||
|
||||
# The transparency of the window. Range: [0; 100].
|
||||
# This option will only work if a compositing windowmanager is
|
||||
# present (e.g. xcompmgr, compiz, etc.).
|
||||
transparency =25
|
||||
|
||||
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
||||
# for longer than idle_threshold seconds.
|
||||
# Set to 0 to disable.
|
||||
# default 120
|
||||
idle_threshold = 120
|
||||
|
||||
# Which monitor should the notifications be displayed on.
|
||||
monitor = 0
|
||||
|
||||
# Display notification on focused monitor. Possible modes are:
|
||||
# mouse: follow mouse pointer
|
||||
# keyboard: follow window with keyboard focus
|
||||
# none: don't follow anything
|
||||
#
|
||||
# "keyboard" needs a windowmanager that exports the
|
||||
# _NET_ACTIVE_WINDOW property.
|
||||
# This should be the case for almost all modern windowmanagers.
|
||||
#
|
||||
# If this option is set to mouse or keyboard, the monitor option
|
||||
# will be ignored.
|
||||
follow = mouse
|
||||
|
||||
# Should a notification popped up from history be sticky or timeout
|
||||
# as if it would normally do.
|
||||
sticky_history = no
|
||||
|
||||
# Maximum amount of notifications kept in history
|
||||
history_length = 5
|
||||
|
||||
# Display indicators for URLs (U) and actions (A).
|
||||
show_indicators = no
|
||||
|
||||
# The height of a single line. If the height is smaller than the
|
||||
# font height, it will get raised to the font height.
|
||||
# This adds empty space above and under the text.
|
||||
line_height = 0
|
||||
|
||||
# Draw a line of "separator_height" pixel height between two
|
||||
# notifications.
|
||||
# Set to 0 to disable.
|
||||
separator_height = 1
|
||||
|
||||
# Padding between text and separator.
|
||||
# padding = 8
|
||||
padding = 8
|
||||
|
||||
# Horizontal padding.
|
||||
horizontal_padding = 10
|
||||
|
||||
# Define a color for the separator.
|
||||
# possible values are:
|
||||
# * auto: dunst tries to find a color fitting to the background;
|
||||
# * foreground: use the same color as the foreground;
|
||||
# * frame: use the same color as the frame;
|
||||
# * anything else will be interpreted as a X color.
|
||||
separator_color = foreground
|
||||
|
||||
# Print a notification on startup.
|
||||
# This is mainly for error detection, since dbus (re-)starts dunst
|
||||
# automatically after a crash.
|
||||
startup_notification = false
|
||||
|
||||
# dmenu path.
|
||||
dmenu = /usr/bin/dmenu -p dunst:
|
||||
|
||||
# Browser for opening urls in context menu.
|
||||
browser = qutebrowser
|
||||
|
||||
# Align icons left/right/off
|
||||
icon_position = left
|
||||
|
||||
# Paths to default icons.
|
||||
icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/
|
||||
|
||||
# Limit icons size.
|
||||
max_icon_size=128
|
||||
|
||||
[shortcuts]
|
||||
|
||||
# Shortcuts are specified as [modifier+][modifier+]...key
|
||||
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
|
||||
# "mod3" and "mod4" (windows-key).
|
||||
# Xev might be helpful to find names for keys.
|
||||
|
||||
# Close notification.
|
||||
close = mod1+space
|
||||
|
||||
# Close all notifications.
|
||||
# close_all = ctrl+shift+space
|
||||
close_all = ctrl+mod1+space
|
||||
|
||||
# Redisplay last message(s).
|
||||
# On the US keyboard layout "grave" is normally above TAB and left
|
||||
# of "1".
|
||||
history = ctrl+mod4+h
|
||||
|
||||
# Context menu.
|
||||
context = ctrl+mod1+c
|
||||
|
||||
[urgency_low]
|
||||
# IMPORTANT: colors have to be defined in quotation marks.
|
||||
# Otherwise the "#" and following would be interpreted as a comment.
|
||||
background = "#191919"
|
||||
foreground = "#8e8e8e"
|
||||
timeout = 5
|
||||
|
||||
[urgency_normal]
|
||||
background = "#191919"
|
||||
foreground = "#BBBBBB"
|
||||
timeout = 5
|
||||
|
||||
[urgency_critical]
|
||||
background = "#de6e7c"
|
||||
foreground = "#BBBBBB"
|
||||
timeout = 0
|
||||
|
||||
|
||||
# Every section that isn't one of the above is interpreted as a rules to
|
||||
# override settings for certain messages.
|
||||
# Messages can be matched by "appname", "summary", "body", "icon", "category",
|
||||
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
|
||||
# "background", "new_icon" and "format".
|
||||
# Shell-like globbing will get expanded.
|
||||
#
|
||||
# SCRIPTING
|
||||
# You can specify a script that gets run when the rule matches by
|
||||
# setting the "script" option.
|
||||
# The script will be called as follows:
|
||||
# script appname summary body icon urgency
|
||||
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
||||
#
|
||||
# NOTE: if you don't want a notification to be displayed, set the format
|
||||
# to "".
|
||||
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
||||
# to find fitting options for rules.
|
||||
|
||||
#[espeak]
|
||||
# summary = "*"
|
||||
# script = dunst_espeak.sh
|
||||
|
||||
#[script-test]
|
||||
# summary = "*script*"
|
||||
# script = dunst_test.sh
|
||||
|
||||
#[ignore]
|
||||
# # This notification will not be displayed
|
||||
# summary = "foobar"
|
||||
# format = ""
|
||||
|
||||
#[signed_on]
|
||||
# appname = Pidgin
|
||||
# summary = "*signed on*"
|
||||
# urgency = low
|
||||
#
|
||||
#[signed_off]
|
||||
# appname = Pidgin
|
||||
# summary = *signed off*
|
||||
# urgency = low
|
||||
#
|
||||
#[says]
|
||||
# appname = Pidgin
|
||||
# summary = *says*
|
||||
# urgency = critical
|
||||
#
|
||||
#[twitter]
|
||||
# appname = Pidgin
|
||||
# summary = *twitter.com*
|
||||
# urgency = normal
|
||||
#
|
||||
#[Claws Mail]
|
||||
# appname = claws-mail
|
||||
# category = email.arrived
|
||||
# urgency = normal
|
||||
# background = "#2F899E"
|
||||
# foreground = "#FFA247"
|
||||
#
|
||||
#[mute.sh]
|
||||
# appname = mute
|
||||
# category = mute.sound
|
||||
# script = mute.sh
|
||||
#
|
||||
#[JDownloader]
|
||||
# appname = JDownloader
|
||||
# category = JD
|
||||
# background = "#FFA247"
|
||||
# foreground = "#FFFFFF"
|
||||
#
|
||||
#[newsbeuter]
|
||||
# summary = *Feeds*
|
||||
# background = "#A8EB41"
|
||||
# foreground = "#FFFFFF"
|
||||
#
|
||||
#[irc]
|
||||
# appname = weechat
|
||||
# timeout = 0
|
||||
# background = "#0033bb"
|
||||
# foreground = "#dddddd"
|
||||
##
|
||||
#[weechat hl]
|
||||
# appname = weechat
|
||||
# category = weechat.HL
|
||||
# background = "#FF5C47"
|
||||
# foreground = "#FFFFFF"
|
||||
##
|
||||
#[weechat pn]
|
||||
# appname = weechat
|
||||
# category = weechat.PM
|
||||
# background = "#D53B84"
|
||||
# foreground = "#FFFFFF"
|
||||
#
|
||||
#[CMUS]
|
||||
# appname = CMUS
|
||||
# category = cmus
|
||||
# background = "#6C4AB7"
|
||||
# foreground = "#FFE756"
|
||||
#
|
||||
#
|
||||
# background = "#30AB70"
|
||||
# foreground = "#F67245"
|
||||
#
|
||||
# vim: ft=cfg
|
8
config/nsxiv/exec/key-handler
Executable file
8
config/nsxiv/exec/key-handler
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
"C-w") while read file; do feh --bg-scale "$file"; done;;
|
||||
"C-d") while read file; do rm "$file"; done;;
|
||||
"C-c") while read file; do cp "$file" $HOME/pics/signal.png; done;;
|
||||
"w") while read file; do cp "$file" $HOME/dotfiles/wallpapers/; done;;
|
||||
esac
|
168
config/starship.toml
Normal file
168
config/starship.toml
Normal file
|
@ -0,0 +1,168 @@
|
|||
#8e8e8e normal
|
||||
#BBBBBB bold
|
||||
#66a5ad accent
|
||||
|
||||
format = """
|
||||
$username\
|
||||
$hostname\
|
||||
$shlvl\
|
||||
$kubernetes\
|
||||
$directory\
|
||||
$git_branch\
|
||||
$git_commit\
|
||||
$git_state\
|
||||
$git_status\
|
||||
$hg_branch\
|
||||
$docker_context\
|
||||
$package\
|
||||
$cmake\
|
||||
$dart\
|
||||
$dotnet\
|
||||
$elixir\
|
||||
$elm\
|
||||
$erlang\
|
||||
$golang\
|
||||
$helm\
|
||||
$java\
|
||||
$julia\
|
||||
$kotlin\
|
||||
$nim\
|
||||
$nodejs\
|
||||
$ocaml\
|
||||
$perl\
|
||||
$php\
|
||||
$purescript\
|
||||
$python\
|
||||
$ruby\
|
||||
$rust\
|
||||
$swift\
|
||||
$terraform\
|
||||
$zig\
|
||||
$nix_shell\
|
||||
$conda\
|
||||
$memory_usage\
|
||||
$aws\
|
||||
$gcloud\
|
||||
$openstack\
|
||||
$env_var\
|
||||
$crystal\
|
||||
$custom\
|
||||
$cmd_duration\
|
||||
$line_break\
|
||||
$lua\
|
||||
$jobs\
|
||||
$battery\
|
||||
$time\
|
||||
$status\
|
||||
$character"""
|
||||
|
||||
[username]
|
||||
style_user = 'bold #66a5ad'
|
||||
|
||||
[hostname]
|
||||
style = 'bold #BBBBBB'
|
||||
ssh_symbol = ""
|
||||
|
||||
[singularity]
|
||||
style = 'bold #BBBBBB'
|
||||
|
||||
[kubernetes]
|
||||
style = 'bold #BBBBBB'
|
||||
|
||||
[vcsh]
|
||||
style = 'bold white'
|
||||
|
||||
[git_branch]
|
||||
style = 'bold #BBBBBB'
|
||||
|
||||
[git_commit]
|
||||
style = 'bold #BBBBBB'
|
||||
|
||||
[docker_context]
|
||||
style = 'bold #BBBBBB'
|
||||
[package]
|
||||
style = 'bold #BBBBBB'
|
||||
symbol = " "
|
||||
[cmake]
|
||||
style = 'bold #BBBBBB'
|
||||
[dart]
|
||||
style = 'bold #BBBBBB'
|
||||
[dotnet]
|
||||
style = 'bold #BBBBBB'
|
||||
[elixir]
|
||||
style = 'bold #BBBBBB'
|
||||
[elm]
|
||||
style = 'bold #BBBBBB'
|
||||
[erlang]
|
||||
style = 'bold #BBBBBB'
|
||||
[golang]
|
||||
style = 'bold #BBBBBB'
|
||||
[helm]
|
||||
style = 'bold #BBBBBB'
|
||||
[java]
|
||||
style = 'bold #BBBBBB'
|
||||
[julia]
|
||||
style = 'bold #BBBBBB'
|
||||
[kotlin]
|
||||
style = 'bold #BBBBBB'
|
||||
[nim]
|
||||
style = 'bold #BBBBBB'
|
||||
[nodejs]
|
||||
style = 'bold #BBBBBB'
|
||||
[ocaml]
|
||||
style = 'bold #BBBBBB'
|
||||
[perl]
|
||||
style = 'bold #BBBBBB'
|
||||
[php]
|
||||
style = 'bold #BBBBBB'
|
||||
[purescript]
|
||||
style = 'bold #BBBBBB'
|
||||
[ruby]
|
||||
style = 'bold #BBBBBB'
|
||||
[swift]
|
||||
style = 'bold #BBBBBB'
|
||||
[terraform]
|
||||
style = 'bold #BBBBBB'
|
||||
[zig]
|
||||
style = 'bold #BBBBBB'
|
||||
[nix_shell]
|
||||
style = 'bold #BBBBBB'
|
||||
[conda]
|
||||
style = 'bold #BBBBBB'
|
||||
[memory_usage]
|
||||
style = 'bold #BBBBBB'
|
||||
[aws]
|
||||
style = 'bold #BBBBBB'
|
||||
[gcloud]
|
||||
style = 'bold #BBBBBB'
|
||||
[openstack]
|
||||
style = 'bold #BBBBBB'
|
||||
[crystal]
|
||||
style = 'bold #BBBBBB'
|
||||
[cmd_duration]
|
||||
style = 'bold #BBBBBB'
|
||||
[lua]
|
||||
style = 'bold #BBBBBB'
|
||||
symbol = " "
|
||||
[jobs]
|
||||
style = 'bold #BBBBBB'
|
||||
[time]
|
||||
style = 'bold #BBBBBB'
|
||||
|
||||
|
||||
[python]
|
||||
symbol = " "
|
||||
style = 'bold #BBBBBB'
|
||||
|
||||
[rust]
|
||||
symbol = " "
|
||||
style = 'bold #BBBBBB'
|
||||
|
||||
[directory]
|
||||
truncate_to_repo = false
|
||||
style = 'bold #BBBBBB'
|
||||
|
||||
[character]
|
||||
success_symbol = "[❯](bold green)"
|
||||
error_symbol = "[❯](bold red)"
|
||||
vicmd_symbol = "[N](bold green)"
|
49
config/sxhkd/sxhkdrc
Normal file
49
config/sxhkd/sxhkdrc
Normal file
|
@ -0,0 +1,49 @@
|
|||
XF86Audio{Prev,Next}
|
||||
mpc {cdprev,next}; kill -45 $(cat ~/.cache/pidofbar)
|
||||
|
||||
XF86AudioPlay
|
||||
mpc toggle
|
||||
|
||||
XF86Audio{Raise,Lower}Volume
|
||||
volume.sh {up,down}; kill -44 $(pidof dwmblocks)
|
||||
|
||||
XF86AudioMute
|
||||
volume.sh mute; kill -44 $(pidof dwmblocks)
|
||||
|
||||
XF86MonBrightness{Up,Down}
|
||||
xbacklight -{inc,dec} 10
|
||||
|
||||
super+ctrl+p
|
||||
pubs-rofi.sh open
|
||||
|
||||
super+ctrl+i
|
||||
pubs-rofi.sh tag
|
||||
|
||||
super+ctrl+d
|
||||
pubs-rofi.sh url
|
||||
|
||||
super+ctrl+t
|
||||
textbooks.sh
|
||||
|
||||
super+ctrl+l
|
||||
passmenu --type
|
||||
|
||||
ctrl+shift+v
|
||||
paste_from_primary.sh
|
||||
|
||||
super+shift+s
|
||||
maim -s --hidecursor | xclip -selection clipboard -t image/png
|
||||
|
||||
super+o
|
||||
find_open
|
||||
super+y
|
||||
xclip -o | viewurl
|
||||
|
||||
ctrl+shift+s
|
||||
swap_monitor.sh
|
||||
|
||||
ctrl+shift+d
|
||||
dock.sh
|
||||
|
||||
shift+super+i
|
||||
rofi-connman
|
15
config/user-dirs.dirs
Normal file
15
config/user-dirs.dirs
Normal file
|
@ -0,0 +1,15 @@
|
|||
# This file is written by xdg-user-dirs-update
|
||||
# If you want to change or add directories, just edit the line you're
|
||||
# interested in. All local changes will be retained on the next run.
|
||||
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
|
||||
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
|
||||
# absolute path. No other format is supported.
|
||||
#
|
||||
XDG_DOWNLOAD_DIR="$HOME/down"
|
||||
XDG_DOCUMENTS_DIR="$HOME/docs"
|
||||
XDG_MUSIC_DIR="$HOME/media/music"
|
||||
XDG_PICTURES_DIR="$HOME/media/pics"
|
||||
XDG_VIDEOS_DIR="$HOME/media/vids"
|
||||
XDG_DESKTOP_DIR="$HOME/down"
|
||||
XDG_TEMPLATES_DIR="$HOME/down"
|
||||
XDG_PUBLICSHARE_DIR="$HOME/down"
|
1
config/user-dirs.locale
Normal file
1
config/user-dirs.locale
Normal file
|
@ -0,0 +1 @@
|
|||
en_US
|
15
config/zathura/zathurarc
Normal file
15
config/zathura/zathurarc
Normal file
|
@ -0,0 +1,15 @@
|
|||
set statusbar-h-padding 0
|
||||
set statusbar-v-padding 0
|
||||
map u scroll half-up
|
||||
map d scroll half-down
|
||||
map D toggle_page_mode
|
||||
map r reload
|
||||
map R rotate
|
||||
map K zoom in
|
||||
map J zoom out
|
||||
map i recolor
|
||||
map p print
|
||||
set default-bg "#191919"
|
||||
set recolor true
|
||||
set recolor-darkcolor "#BBBBBB"
|
||||
set recolor-lightcolor "#191919"
|
1
config/zsh/zsh-autosuggestions
Submodule
1
config/zsh/zsh-autosuggestions
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit ae315ded4dba10685dbbafbfa2ff3c1aefeb490d
|
1
config/zsh/zsh-history-substring-search
Submodule
1
config/zsh/zsh-history-substring-search
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 0f80b8eb3368b46e5e573c1d91ae69eb095db3fb
|
1
config/zsh/zsh-syntax-highlighting
Submodule
1
config/zsh/zsh-syntax-highlighting
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit ebef4e55691f62e630318d56468e5798367aa81c
|
Loading…
Add table
Add a link
Reference in a new issue