initial hyprland commit
|
@ -1,23 +0,0 @@
|
|||
#!/bin/bash
|
||||
## ____ __
|
||||
## / __ \_________ _/ /_____
|
||||
## / / / / ___/ __ `/ //_/ _ \
|
||||
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
## /_____/_/ \__,_/_/|_|\___/ My custom bash_profile config
|
||||
##
|
||||
|
||||
### STARTING XSESSION
|
||||
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]
|
||||
then
|
||||
sh $HOME/.winitrc
|
||||
logout
|
||||
fi
|
||||
|
||||
### ENVIRONMENT VARIABLES
|
||||
export EDITOR="lvim" # $EDITOR use lunarvim in terminal
|
||||
export XDG_DATA_HOME="${XDG_DATA_HOME:="$HOME/.local/share"}"
|
||||
export XDG_CACHE_HOME="${XDG_CACHE_HOME:="$HOME/.cache"}"
|
||||
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:="$HOME/.config"}"
|
||||
|
||||
### BASHRC
|
||||
source "$HOME"/.bashrc # Load the bashrc
|
|
@ -1,238 +0,0 @@
|
|||
## ____ __
|
||||
## / __ \_________ _/ /_____
|
||||
## / / / / ___/ __ `/ //_/ _ \
|
||||
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
## /_____/_/ \__,_/_/|_|\___/ My custom bash config
|
||||
##
|
||||
|
||||
### EXPORT ###
|
||||
export TERM="xterm-256color" # getting proper colors
|
||||
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
|
||||
export EDITOR="$HOME/.local/bin/lvim"
|
||||
export VISUAL="wezterm start --class editor -- $HOME/.local/bin/lvim"
|
||||
|
||||
### "bat" as manpager
|
||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
|
||||
# use bash-completion, if available
|
||||
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
|
||||
# if not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# use neovim for vim if present.
|
||||
[ -x "$(command -v $HOME/.local/bin/lvim)" ] && alias vim="lvim"
|
||||
|
||||
### SET VI MODE ###
|
||||
# Comment this line out to enable default emacs-like bindings
|
||||
set -o vi
|
||||
bind -m vi-command 'Control-l: clear-screen'
|
||||
bind -m vi-insert 'Control-l: clear-screen'
|
||||
|
||||
### PATH ###
|
||||
if [ -d "$HOME/.bin" ] ;
|
||||
then PATH="$HOME/.bin:$PATH"
|
||||
fi
|
||||
if [ -d "$HOME/.local/bin" ] ;
|
||||
then PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
if [ -d "$HOME/Applications" ] ;
|
||||
then PATH="$HOME/Applications:$PATH"
|
||||
fi
|
||||
|
||||
### CHANGE TITLE OF TERMINALS ###
|
||||
case ${TERM} in
|
||||
xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|alacritty|st|konsole*)
|
||||
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
|
||||
;;
|
||||
screen*)
|
||||
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"'
|
||||
;;
|
||||
esac
|
||||
|
||||
### SHOPT ###
|
||||
shopt -s autocd # change to named directory
|
||||
shopt -s cdspell # autocorrects cd misspellings
|
||||
shopt -s cmdhist # save multi-line commands in history as single line
|
||||
shopt -s dotglob
|
||||
shopt -s histappend # do not overwrite history
|
||||
shopt -s expand_aliases # expand aliases
|
||||
shopt -s checkwinsize # checks term size when bash regains control
|
||||
|
||||
# ignore upper and lowercase when TAB completion
|
||||
bind "set completion-ignore-case on"
|
||||
|
||||
# sudo not required for some system commands
|
||||
for command in cryptsetup mount umount poweroff reboot ; do
|
||||
alias $command="sudo $command"
|
||||
done; unset command
|
||||
|
||||
### ARCHIVE EXTRACTION ###
|
||||
# usage: ex <file>
|
||||
ex ()
|
||||
{
|
||||
if [ -f "$1" ] ; then
|
||||
case $1 in
|
||||
*.tar.bz2) tar xjf "$1" ;;
|
||||
*.tar.gz) tar xzf "$1" ;;
|
||||
*.bz2) bunzip2 "$1" ;;
|
||||
*.rar) unrar x "$1" ;;
|
||||
*.gz) gunzip "$1" ;;
|
||||
*.tar) tar xf "$1" ;;
|
||||
*.tbz2) tar xjf "$1" ;;
|
||||
*.tgz) tar xzf "$1" ;;
|
||||
*.zip) unzip "$1" ;;
|
||||
*.Z) uncompress "$1";;
|
||||
*.7z) 7zz x "$1" ;;
|
||||
*.deb) ar x "$1" ;;
|
||||
*.tar.xz) tar xf "$1" ;;
|
||||
*.tar.zst) unzstd "$1" ;;
|
||||
*) echo "'$1' cannot be extracted via ex()" ;;
|
||||
esac
|
||||
else
|
||||
echo "'$1' is not a valid file"
|
||||
fi
|
||||
}
|
||||
|
||||
### ALIASES ###
|
||||
# navigation
|
||||
up () {
|
||||
local d=""
|
||||
local limit="$1"
|
||||
|
||||
# Default to limit of 1
|
||||
if [ -z "$limit" ] || [ "$limit" -le 0 ]; then
|
||||
limit=1
|
||||
fi
|
||||
|
||||
for ((i=1;i<=limit;i++)); do
|
||||
d="../$d"
|
||||
done
|
||||
|
||||
# perform cd. Show error if cd fails
|
||||
if ! cd "$d"; then
|
||||
echo "Couldn't go up $limit dirs.";
|
||||
fi
|
||||
}
|
||||
|
||||
# cd
|
||||
alias \
|
||||
..="cd .." \
|
||||
.2="cd ../.." \
|
||||
.3="cd ../../.." \
|
||||
.4="cd ../../../.." \
|
||||
.5="cd ../../../../.."
|
||||
|
||||
# bat as cat
|
||||
[ -x "$(command -v bat)" ] && alias cat="bat"
|
||||
|
||||
# pfetch as neofetch
|
||||
[ -x "$(command -v pfetch)" ] && alias neofetch="pfetch"
|
||||
|
||||
# Changing "ls" to "exa"
|
||||
alias \
|
||||
ls="exa -al --icons --color=always --group-directories-first" \
|
||||
la="exa -a --icons --color=always --group-directories-first" \
|
||||
ll="exa -l --icons --color=always --group-directories-first" \
|
||||
lt="exa -aT --icons --color=always --group-directories-first" \
|
||||
l.='exa -a | grep -E "^\."'
|
||||
|
||||
# pacman
|
||||
alias \
|
||||
pac-up="paru -Syu" \
|
||||
pac-get="paru -S" \
|
||||
pac-rmv="paru -Rcns" \
|
||||
pac-rmv-sec="paru -R" \
|
||||
pac-qry="paru -Ss" \
|
||||
pac-cln="paru -Scc && paru -Rns $(pacman -Qtdq)"
|
||||
|
||||
# colorize grep output (good for log files)
|
||||
alias \
|
||||
grep="grep --color=auto" \
|
||||
egrep="egrep --color=auto" \
|
||||
fgrep="fgrep --color=auto"
|
||||
|
||||
# git
|
||||
alias \
|
||||
git-adu="git add -u" \
|
||||
git-adl="git add ." \
|
||||
git-brn="git branch" \
|
||||
git-chk="git checkout" \
|
||||
git-cln="git clone" \
|
||||
git-cmt="git commit -m" \
|
||||
git-fth="git fetch" \
|
||||
git-pll="git pull origin" \
|
||||
git-psh="git push origin" \
|
||||
git-sts="git status" \
|
||||
git-tag="git tag" \
|
||||
git-ntg="git tag -a"
|
||||
|
||||
# adding flags
|
||||
alias \
|
||||
df="df -h" \
|
||||
free="free -m"
|
||||
|
||||
# multimedia scripts
|
||||
alias \
|
||||
fli="flix-cli" \
|
||||
ani="ani-cli" \
|
||||
aniq="ani-cli -q"
|
||||
|
||||
# audio
|
||||
alias \
|
||||
mx="pulsemixer" \
|
||||
amx="alsamixer" \
|
||||
mk="cmus" \
|
||||
ms="cmus" \
|
||||
music="cmus"
|
||||
|
||||
# power management
|
||||
alias \
|
||||
po="systemctl poweroff" \
|
||||
sp="systemctl suspend" \
|
||||
rb="systemctl reboot"
|
||||
|
||||
# file management
|
||||
alias \
|
||||
fm="vifm" \
|
||||
file="vifm" \
|
||||
flm="vifm" \
|
||||
rm="rm -vI" \
|
||||
mv="mv -iv" \
|
||||
cp="cp -iv" \
|
||||
mkd="mkdir -pv"
|
||||
|
||||
# ps
|
||||
alias \
|
||||
psa="ps auxf" \
|
||||
psgrep="ps aux | grep -v grep | grep -i -e VSZ -e" \
|
||||
psmem="ps auxf | sort -nr -k 4" \
|
||||
pscpu="ps auxf | sort -nr -k 3"
|
||||
|
||||
# youtube
|
||||
alias \
|
||||
yta-aac="yt-dlp --extract-audio --audio-format aac" \
|
||||
yta-best="yt-dlp --extract-audio --audio-format best" \
|
||||
yta-flac="yt-dlp --extract-audio --audio-format flac" \
|
||||
yta-m4a="yt-dlp --extract-audio --audio-format m4a" \
|
||||
yta-mp3="yt-dlp --extract-audio --audio-format mp3" \
|
||||
yta-opus="yt-dlp --extract-audio --audio-format opus" \
|
||||
yta-vorbis="yt-dlp --extract-audio --audio-format vorbis" \
|
||||
yta-wav="yt-dlp --extract-audio --audio-format wav" \
|
||||
ytv-best="yt-dlp -f bestvideo+bestaudio" \
|
||||
yt="ytfzf -ftsl" \
|
||||
ytm="ytfzf -mtsl"
|
||||
|
||||
# network and bluetooth
|
||||
alias \
|
||||
netstats="nmcli dev" \
|
||||
wfi="nmtui-connect" \
|
||||
wfi-scan="nmcli dev wifi rescan && nmcli dev wifi list" \
|
||||
wfi-edit="nmtui-edit" \
|
||||
wfi-on="nmcli radio wifi on" \
|
||||
wfi-off="nmcli radio wifi off" \
|
||||
blt="bluetoothctl"
|
||||
|
||||
### SETTING THE STARSHIP PROMPT ###
|
||||
eval "$(starship init bash)"
|
|
@ -1,212 +0,0 @@
|
|||
#? Config file for btop v. 1.2.13
|
||||
|
||||
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
|
||||
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
|
||||
color_theme = "/usr/share/btop/themes/gruvbox_dark_v2.theme"
|
||||
|
||||
#* If the theme set background should be shown, set to False if you want terminal background transparency.
|
||||
theme_background = False
|
||||
|
||||
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
|
||||
truecolor = True
|
||||
|
||||
#* Set to true to force tty mode regardless if a real tty has been detected or not.
|
||||
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
|
||||
force_tty = False
|
||||
|
||||
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
|
||||
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
|
||||
#* Use whitespace " " as separator between different presets.
|
||||
#* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty"
|
||||
presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty"
|
||||
|
||||
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
|
||||
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
|
||||
vim_keys = True
|
||||
|
||||
#* Rounded corners on boxes, is ignored if TTY mode is ON.
|
||||
rounded_corners = True
|
||||
|
||||
#* Default symbols to use for graph creation, "braille", "block" or "tty".
|
||||
#* "braille" offers the highest resolution but might not be included in all fonts.
|
||||
#* "block" has half the resolution of braille but uses more common characters.
|
||||
#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY.
|
||||
#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view.
|
||||
graph_symbol = "braille"
|
||||
|
||||
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||
graph_symbol_cpu = "default"
|
||||
|
||||
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||
graph_symbol_mem = "default"
|
||||
|
||||
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||
graph_symbol_net = "default"
|
||||
|
||||
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||
graph_symbol_proc = "default"
|
||||
|
||||
#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace.
|
||||
shown_boxes = "cpu mem net proc"
|
||||
|
||||
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
|
||||
update_ms = 200
|
||||
|
||||
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
|
||||
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
|
||||
proc_sorting = "cpu lazy"
|
||||
|
||||
#* Reverse sorting order, True or False.
|
||||
proc_reversed = False
|
||||
|
||||
#* Show processes as a tree.
|
||||
proc_tree = False
|
||||
|
||||
#* Use the cpu graph colors in the process list.
|
||||
proc_colors = True
|
||||
|
||||
#* Use a darkening gradient in the process list.
|
||||
proc_gradient = True
|
||||
|
||||
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
|
||||
proc_per_core = False
|
||||
|
||||
#* Show process memory as bytes instead of percent.
|
||||
proc_mem_bytes = True
|
||||
|
||||
#* Show cpu graph for each process.
|
||||
proc_cpu_graphs = True
|
||||
|
||||
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
|
||||
proc_info_smaps = False
|
||||
|
||||
#* Show proc box on left side of screen instead of right.
|
||||
proc_left = False
|
||||
|
||||
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
|
||||
proc_filter_kernel = False
|
||||
|
||||
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
|
||||
#* Select from a list of detected attributes from the options menu.
|
||||
cpu_graph_upper = "total"
|
||||
|
||||
#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available.
|
||||
#* Select from a list of detected attributes from the options menu.
|
||||
cpu_graph_lower = "total"
|
||||
|
||||
#* Toggles if the lower CPU graph should be inverted.
|
||||
cpu_invert_lower = True
|
||||
|
||||
#* Set to True to completely disable the lower CPU graph.
|
||||
cpu_single_graph = False
|
||||
|
||||
#* Show cpu box at bottom of screen instead of top.
|
||||
cpu_bottom = False
|
||||
|
||||
#* Shows the system uptime in the CPU box.
|
||||
show_uptime = True
|
||||
|
||||
#* Show cpu temperature.
|
||||
check_temp = True
|
||||
|
||||
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
|
||||
cpu_sensor = "Auto"
|
||||
|
||||
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
|
||||
show_coretemp = True
|
||||
|
||||
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
|
||||
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
|
||||
#* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries.
|
||||
#* Example: "4:0 5:1 6:3"
|
||||
cpu_core_map = ""
|
||||
|
||||
#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine".
|
||||
temp_scale = "celsius"
|
||||
|
||||
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
|
||||
base_10_sizes = False
|
||||
|
||||
#* Show CPU frequency.
|
||||
show_cpu_freq = True
|
||||
|
||||
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
|
||||
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
|
||||
clock_format = "%X"
|
||||
|
||||
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
|
||||
background_update = True
|
||||
|
||||
#* Custom cpu model name, empty string to disable.
|
||||
custom_cpu_name = ""
|
||||
|
||||
#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ".
|
||||
#* Begin line with "exclude=" to change to exclude filter, otherwise defaults to "most include" filter. Example: disks_filter="exclude=/boot /home/user".
|
||||
disks_filter = ""
|
||||
|
||||
#* Show graphs instead of meters for memory values.
|
||||
mem_graphs = True
|
||||
|
||||
#* Show mem box below net box instead of above.
|
||||
mem_below_net = False
|
||||
|
||||
#* Count ZFS ARC in cached and available memory.
|
||||
zfs_arc_cached = True
|
||||
|
||||
#* If swap memory should be shown in memory box.
|
||||
show_swap = True
|
||||
|
||||
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
|
||||
swap_disk = True
|
||||
|
||||
#* If mem box should be split to also show disks info.
|
||||
show_disks = True
|
||||
|
||||
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
|
||||
only_physical = True
|
||||
|
||||
#* Read disks list from /etc/fstab. This also disables only_physical.
|
||||
use_fstab = True
|
||||
|
||||
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
|
||||
zfs_hide_datasets = False
|
||||
|
||||
#* Set to true to show available disk space for privileged users.
|
||||
disk_free_priv = False
|
||||
|
||||
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
|
||||
show_io_stat = True
|
||||
|
||||
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
|
||||
io_mode = False
|
||||
|
||||
#* Set to True to show combined read/write io graphs in io mode.
|
||||
io_graph_combined = False
|
||||
|
||||
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
|
||||
#* Example: "/mnt/media:100 /:20 /boot:1".
|
||||
io_graph_speeds = ""
|
||||
|
||||
#* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False.
|
||||
net_download = 100
|
||||
|
||||
net_upload = 100
|
||||
|
||||
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
|
||||
net_auto = True
|
||||
|
||||
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
|
||||
net_sync = True
|
||||
|
||||
#* Starts with the Network Interface specified here.
|
||||
net_iface = ""
|
||||
|
||||
#* Show battery stats in top right if battery is present.
|
||||
show_battery = True
|
||||
|
||||
#* Which battery to use if multiple are present. "Auto" for auto detection.
|
||||
selected_battery = "Auto"
|
||||
|
||||
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
||||
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
|
||||
log_level = "WARNING"
|
Before Width: | Height: | Size: 35 KiB |
|
@ -1,359 +0,0 @@
|
|||
[global]
|
||||
### Display ###
|
||||
|
||||
# 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 window manager that exports the
|
||||
# _NET_ACTIVE_WINDOW property.
|
||||
# This should be the case for almost all modern window managers.
|
||||
#
|
||||
# If this option is set to mouse or keyboard, the monitor option
|
||||
# will be ignored.
|
||||
follow = mouse
|
||||
|
||||
# Show how many messages are currently hidden (because of geometry).
|
||||
indicate_hidden = yes
|
||||
|
||||
# Shrink window if it's smaller than the width. Will be ignored if
|
||||
# width is 0.
|
||||
shrink = no
|
||||
|
||||
# The transparency of the window. Range: [0; 100].
|
||||
# This option will only work if a compositing window manager is
|
||||
# present (e.g. xcompmgr, compiz, etc.).
|
||||
transparency = 30
|
||||
|
||||
# Draw a line of "separator_height" pixel height between two
|
||||
# notifications.
|
||||
# Set to 0 to disable.
|
||||
separator_height = 2
|
||||
|
||||
# Padding between text and separator.
|
||||
padding = 8
|
||||
|
||||
# Horizontal padding.
|
||||
horizontal_padding = 8
|
||||
|
||||
# Defines width in pixels of frame around the notification window.
|
||||
# Set to 0 to disable.
|
||||
frame_width = 3
|
||||
|
||||
# Defines color of the frame around the notification window.
|
||||
frame_color = "#fb4934"
|
||||
|
||||
# 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 = auto
|
||||
|
||||
# Sort messages by urgency.
|
||||
sort = yes
|
||||
|
||||
# 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.
|
||||
# A client can set the 'transient' hint to bypass this. See the rules
|
||||
# section for how to disable this if necessary
|
||||
idle_threshold = 120
|
||||
|
||||
### Text ###
|
||||
font = mononoki Nerd Font 10
|
||||
|
||||
# The spacing between lines. If the height is smaller than the
|
||||
# font height, it will get raised to the font height.
|
||||
line_height = 0
|
||||
|
||||
# Possible values are:
|
||||
# full: Allow a small subset of html markup in notifications:
|
||||
# <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>.
|
||||
#
|
||||
# strip: This setting is provided for compatibility with some broken
|
||||
# clients that send markup even though it's not enabled on the
|
||||
# server. Dunst will try to strip the markup but the parsing is
|
||||
# simplistic so using this option outside of matching rules for
|
||||
# specific applications *IS GREATLY DISCOURAGED*.
|
||||
#
|
||||
# no: Disable markup parsing, incoming notifications will be treated as
|
||||
# plain text. Dunst will not advertise that it has the body-markup
|
||||
# capability if this is set as a global setting.
|
||||
#
|
||||
# It's important to note that markup inside the format option will be parsed
|
||||
# regardless of what this is set to.
|
||||
markup = full
|
||||
|
||||
# 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
|
||||
# %n progress value if set without any extra characters
|
||||
# %% Literal %
|
||||
# Markup is allowed
|
||||
format = "<b>%s</b>\n%b"
|
||||
|
||||
# Alignment of message text.
|
||||
# Possible values are "left", "center" and "right".
|
||||
alignment = center
|
||||
|
||||
# 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
|
||||
|
||||
# When word_wrap is set to no, specify where to make an ellipsis in long lines.
|
||||
# Possible values are "start", "middle" and "end".
|
||||
ellipsize = middle
|
||||
|
||||
# Ignore newlines '\n' in notifications.
|
||||
ignore_newline = no
|
||||
|
||||
# Stack together notifications with the same content
|
||||
stack_duplicates = true
|
||||
|
||||
# Hide the count of stacked notifications with the same content
|
||||
hide_duplicate_count = false
|
||||
|
||||
# Display indicators for URLs (U) and actions (A).
|
||||
show_indicators = yes
|
||||
|
||||
### Icons ###
|
||||
|
||||
# Align icons left/right/off
|
||||
icon_position = left
|
||||
|
||||
# Scale larger icons down to this size, set to 0 to disable
|
||||
max_icon_size = 32
|
||||
|
||||
# Paths to default icons.
|
||||
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
|
||||
|
||||
### History ###
|
||||
|
||||
# Should a notification popped up from history be sticky or timeout
|
||||
# as if it would normally do.
|
||||
sticky_history = yes
|
||||
|
||||
# Maximum amount of notifications kept in history
|
||||
history_length = 20
|
||||
|
||||
### Misc/Advanced ###
|
||||
|
||||
# dmenu path.
|
||||
dmenu = /usr/bin/dmenu -p dunst:
|
||||
|
||||
# Browser for opening urls in context menu.
|
||||
browser = /usr/bin/firefox
|
||||
|
||||
# Always run rule-defined scripts, even if the notification is suppressed
|
||||
always_run_script = true
|
||||
|
||||
# Define the title of the windows spawned by dunst
|
||||
title = Dunst
|
||||
|
||||
# Define the class of the windows spawned by dunst
|
||||
class = Dunst
|
||||
|
||||
# Define the corner radius of the notification window
|
||||
# in pixel size. If the radius is 0, you have no rounded
|
||||
# corners.
|
||||
# The radius will be automatically lowered if it exceeds half of the
|
||||
# notification height to avoid clipping text and/or icons.
|
||||
corner_radius = 7
|
||||
|
||||
### Legacy
|
||||
|
||||
# Use the Xinerama extension instead of RandR for multi-monitor support.
|
||||
# This setting is provided for compatibility with older nVidia drivers that
|
||||
# do not support RandR and using it on systems that support RandR is highly
|
||||
# discouraged.
|
||||
#
|
||||
# By enabling this setting dunst will not be able to detect when a monitor
|
||||
# is connected or disconnected which might break follow mode if the screen
|
||||
# layout changes.
|
||||
force_xinerama = false
|
||||
|
||||
### mouse
|
||||
|
||||
# Defines action of mouse event
|
||||
# Possible values are:
|
||||
# * none: Don't do anything.
|
||||
# * do_action: If the notification has exactly one action, or one is marked as default,
|
||||
# invoke it. If there are multiple and no default, open the context menu.
|
||||
# * close_current: Close current notification.
|
||||
# * close_all: Close all notifications.
|
||||
mouse_left_click = do_action
|
||||
mouse_middle_click = close_all
|
||||
mouse_right_click = close_current
|
||||
|
||||
# Experimental features that may or may not work correctly. Do not expect them
|
||||
# to have a consistent behaviour across releases.
|
||||
[experimental]
|
||||
# Calculate the dpi to use on a per-monitor basis.
|
||||
# If this setting is enabled the Xft.dpi value will be ignored and instead
|
||||
# dunst will attempt to calculate an appropriate dpi value for each monitor
|
||||
# using the resolution and physical size. This might be useful in setups
|
||||
# where there are multiple screens with very different dpi values.
|
||||
per_monitor_dpi = false
|
||||
|
||||
[urgency_low]
|
||||
# IMPORTANT: colors have to be defined in quotation marks.
|
||||
# Otherwise the "#" and following would be interpreted as a comment.
|
||||
background = "#282828"
|
||||
foreground = "#ebdbd2"
|
||||
timeout = 5
|
||||
# Icon for notifications with low urgency, uncomment to enable
|
||||
icon = /home/drk/.config/dunst/normal.png
|
||||
|
||||
[urgency_normal]
|
||||
background = "#282828"
|
||||
foreground = "#ebdbd2"
|
||||
timeout = 5
|
||||
# Icon for notifications with normal urgency, uncomment to enable
|
||||
icon = /home/drk/.config/dunst/normal.png
|
||||
|
||||
[urgency_critical]
|
||||
background = "#900000"
|
||||
foreground = "#ebdbd2"
|
||||
frame_color = "#ff0000"
|
||||
timeout = 5
|
||||
# Icon for notifications with critical urgency, uncomment to enable
|
||||
icon = /home/drk/.config/dunst/critical.png
|
||||
|
||||
# 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 (discouraged, see desktop_entry)
|
||||
# body
|
||||
# category
|
||||
# desktop_entry
|
||||
# icon
|
||||
# match_transient
|
||||
# msg_urgency
|
||||
# stack_tag
|
||||
# summary
|
||||
#
|
||||
# and you can override the
|
||||
# background
|
||||
# foreground
|
||||
# format
|
||||
# frame_color
|
||||
# fullscreen
|
||||
# new_icon
|
||||
# set_stack_tag
|
||||
# set_transient
|
||||
# timeout
|
||||
# urgency
|
||||
#
|
||||
# Shell-like globbing will get expanded.
|
||||
#
|
||||
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
|
||||
# GLib based applications export their desktop-entry name. In comparison to the appname,
|
||||
# the desktop-entry won't get localized.
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Disable the transient hint so that idle_threshold cannot be bypassed from the
|
||||
# client
|
||||
#[transient_disable]
|
||||
# match_transient = yes
|
||||
# set_transient = no
|
||||
#
|
||||
# Make the handling of transient notifications more strict by making them not
|
||||
# be placed in history.
|
||||
#[transient_history_ignore]
|
||||
# match_transient = yes
|
||||
# history_ignore = yes
|
||||
|
||||
# fullscreen values
|
||||
# show: show the notifications, regardless if there is a fullscreen window opened
|
||||
# delay: displays the new notification, if there is no fullscreen window active
|
||||
# If the notification is already drawn, it won't get undrawn.
|
||||
# pushback: same as delay, but when switching into fullscreen, the notification will get
|
||||
# withdrawn from screen again and will get delayed like a new notification
|
||||
#[fullscreen_delay_everything]
|
||||
# fullscreen = delay
|
||||
#[fullscreen_show_critical]
|
||||
# msg_urgency = critical
|
||||
# fullscreen = show
|
||||
|
||||
#[espeak]
|
||||
# summary = "*"
|
||||
# script = dunst_espeak.sh
|
||||
|
||||
#[script-test]
|
||||
# summary = "*script*"
|
||||
# script = dunst_test.sh
|
||||
|
||||
#[ignore]
|
||||
# # This notification will not be displayed
|
||||
# summary = "foobar"
|
||||
# format = ""
|
||||
|
||||
#[history-ignore]
|
||||
# # This notification will not be saved in history
|
||||
# summary = "foobar"
|
||||
# history_ignore = yes
|
||||
|
||||
#[skip-display]
|
||||
# # This notification will not be displayed, but will be included in the history
|
||||
# summary = "foobar"
|
||||
# skip_display = yes
|
||||
|
||||
#[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
|
||||
#
|
||||
#[stack-volumes]
|
||||
# appname = "some_volume_notifiers"
|
||||
# set_stack_tag = "volume"
|
||||
#
|
||||
# vim: ft=cfg
|
||||
|
Before Width: | Height: | Size: 3.8 KiB |
|
@ -1,241 +0,0 @@
|
|||
## ____ __
|
||||
## / __ \_________ _/ /_____
|
||||
## / / / / ___/ __ `/ //_/ _ \
|
||||
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
## /_____/_/ \__,_/_/|_|\___/ My custom fish config
|
||||
##
|
||||
|
||||
### ADDING TO THE PATH
|
||||
# First line removes the path; second line sets it. Without the first line,
|
||||
# your path gets massive and fish becomes very slow.
|
||||
set -e fish_user_paths
|
||||
set -U fish_user_paths $HOME/.bin $HOME/.local/bin $HOME/.config/emacs/bin $HOME/Applications /var/lib/flatpak/exports/bin/ $fish_user_paths
|
||||
|
||||
### EXPORT ###
|
||||
set fish_greeting # Supresses fish's intro message
|
||||
set TERM "xterm-256color" # Sets the terminal type
|
||||
set EDITOR "$HOME/.local/bin/lvim"
|
||||
set VISUAL "wezterm start --class editor -- $HOME/.local/bin/lvim"
|
||||
|
||||
### SET BAT AS MANPAGER
|
||||
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||
|
||||
### SET EITHER DEFAULT EMACS MODE OR VI MODE ###
|
||||
function fish_user_key_bindings
|
||||
# fish_default_key_bindings
|
||||
fish_vi_key_bindings
|
||||
end
|
||||
### END OF VI MODE ###
|
||||
|
||||
### AUTOCOMPLETE AND HIGHLIGHT COLORS ###
|
||||
set fish_color_normal brcyan
|
||||
set fish_color_autosuggestion '#504945'
|
||||
set fish_color_command brcyan
|
||||
set fish_color_error '#fb4934'
|
||||
set fish_color_param brcyan
|
||||
|
||||
|
||||
### FUNCTIONS ###
|
||||
# Functions needed for !! and !$
|
||||
function __history_previous_command
|
||||
switch (commandline -t)
|
||||
case "!"
|
||||
commandline -t $history[1]; commandline -f repaint
|
||||
case "*"
|
||||
commandline -i !
|
||||
end
|
||||
end
|
||||
|
||||
function __history_previous_command_arguments
|
||||
switch (commandline -t)
|
||||
case "!"
|
||||
commandline -t ""
|
||||
commandline -f history-token-search-backward
|
||||
case "*"
|
||||
commandline -i '$'
|
||||
end
|
||||
end
|
||||
|
||||
# The bindings for !! and !$
|
||||
if [ "$fish_key_bindings" = "fish_vi_key_bindings" ];
|
||||
bind -Minsert ! __history_previous_command
|
||||
bind -Minsert '$' __history_previous_command_arguments
|
||||
else
|
||||
bind ! __history_previous_command
|
||||
bind '$' __history_previous_command_arguments
|
||||
end
|
||||
|
||||
# Function for creating a backup file
|
||||
# ex: backup file.txt
|
||||
# result: copies file as file.txt.bak
|
||||
function backup --argument filename
|
||||
cp $filename $filename.bak
|
||||
end
|
||||
|
||||
# Function for copying files and directories, even recursively.
|
||||
# ex: copy DIRNAME LOCATIONS
|
||||
# result: copies the directory and all of its contents.
|
||||
function copy
|
||||
set count (count $argv | tr -d \n)
|
||||
if test "$count" = 2; and test -d "$argv[1]"
|
||||
set from (echo $argv[1] | trim-right /)
|
||||
set to (echo $argv[2])
|
||||
command cp -r $from $to
|
||||
else
|
||||
command cp $argv
|
||||
end
|
||||
end
|
||||
|
||||
# Function for printing a column (splits input on whitespace)
|
||||
# ex: echo 1 2 3 | coln 3
|
||||
# output: 3
|
||||
function coln
|
||||
while read -l input
|
||||
echo $input | awk '{print $'$argv[1]'}'
|
||||
end
|
||||
end
|
||||
|
||||
# Function for printing a row
|
||||
# ex: seq 3 | rown 3
|
||||
# output: 3
|
||||
function rown --argument index
|
||||
sed -n "$index p"
|
||||
end
|
||||
|
||||
# Function for ignoring the first 'n' lines
|
||||
# ex: seq 10 | skip 5
|
||||
# results: prints everything but the first 5 lines
|
||||
function skip --argument n
|
||||
tail +(math 1 + $n)
|
||||
end
|
||||
|
||||
# Function for taking the first 'n' lines
|
||||
# ex: seq 10 | take 5
|
||||
# results: prints only the first 5 lines
|
||||
function take --argument number
|
||||
head -$number
|
||||
end
|
||||
### END OF FUNCTIONS ###
|
||||
|
||||
### ALIASES ###
|
||||
# navigation
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
alias .3='cd ../../..'
|
||||
alias .4='cd ../../../..'
|
||||
alias .5='cd ../../../../..'
|
||||
|
||||
# neovim as vim
|
||||
alias vim="$HOME/.local/bin/lvim"
|
||||
|
||||
# newsboat
|
||||
alias newsboat='newsboat -u ~/.config/newsboat/urls'
|
||||
|
||||
# bat as cat
|
||||
alias cat='bat'
|
||||
|
||||
# pfetch as neofetch
|
||||
alias neofetch='pfetch'
|
||||
|
||||
# Changing "ls" to "exa"
|
||||
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
|
||||
alias la='exa -a --color=always --group-directories-first' # all files and dirs
|
||||
alias ll='exa -l --color=always --group-directories-first' # long format
|
||||
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
||||
alias l.='exa -a | egrep "^\."'
|
||||
|
||||
# package management
|
||||
alias pac-up='paru -Syu'
|
||||
alias pac-get='paru -S'
|
||||
alias pac-rmv='paru -Rcns'
|
||||
alias pac-rmv-sec='paru -R'
|
||||
alias pac-qry='paru -Ss'
|
||||
alias pac-cln='paru -Scc && paru -Rns (pacman -Qtdq)'
|
||||
|
||||
# Colorize grep output (good for log files)
|
||||
alias grep='grep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
|
||||
# file management
|
||||
alias fm="vifm"
|
||||
alias file="vifm"
|
||||
alias flm="vifm"
|
||||
alias cp='cp -iv'
|
||||
alias mv='mv -iv'
|
||||
alias rm='rm -vI'
|
||||
alias mkd='mkdir -pv'
|
||||
alias mkdir='mkdir -pv'
|
||||
|
||||
# audio
|
||||
alias mx='pulsemixer'
|
||||
alias amx='alsamixer'
|
||||
alias mk='cmus'
|
||||
alias ms='cmus'
|
||||
alias music='cmus'
|
||||
|
||||
# multimedia scripts
|
||||
alias fli='flix-cli'
|
||||
alias ani='ani-cli'
|
||||
alias aniq='ani-cli -q'
|
||||
|
||||
# adding flags
|
||||
alias df='df -h' # human-readable sizes
|
||||
alias free='free -m' # show sizes in MB
|
||||
|
||||
# ps
|
||||
alias psa="ps auxf"
|
||||
alias psgrep="ps aux | grep -v grep | grep -i -e VSZ -e"
|
||||
alias psmem='ps auxf | sort -nr -k 4'
|
||||
alias pscpu='ps auxf | sort -nr -k 3'
|
||||
|
||||
# git
|
||||
alias addup='git add -u'
|
||||
alias addall='git add .'
|
||||
alias branch='git branch'
|
||||
alias checkout='git checkout'
|
||||
alias clone='git clone'
|
||||
alias commit='git commit -m'
|
||||
alias fetch='git fetch'
|
||||
alias pull='git pull origin'
|
||||
alias push='git push origin'
|
||||
alias tag='git tag'
|
||||
alias newtag='git tag -a'
|
||||
|
||||
# power management
|
||||
alias po='systemctl poweroff'
|
||||
alias sp='systemctl suspend'
|
||||
alias rb='systemctl reboot'
|
||||
|
||||
# youtube-
|
||||
alias yta-aac="yt-dlp --extract-audio --audio-format aac "
|
||||
alias yta-best="yt-dlp --extract-audio --audio-format best "
|
||||
alias yta-flac="yt-dlp --extract-audio --audio-format flac "
|
||||
alias yta-m4a="yt-dlp --extract-audio --audio-format m4a "
|
||||
alias yta-mp3="yt-dlp --extract-audio --audio-format mp3 "
|
||||
alias yta-opus="yt-dlp --extract-audio --audio-format opus "
|
||||
alias yta-vorbis="yt-dlp --extract-audio --audio-format vorbis "
|
||||
alias yta-wav="yt-dlp --extract-audio --audio-format wav "
|
||||
alias ytv-best="yt-dlp -f bestvideo+bestaudio "
|
||||
alias yt='ytfzf -ftsl'
|
||||
alias youtube='ytfzf -ftsl'
|
||||
alias ytm='ytfzf -mtsl'
|
||||
alias youtube-music='ytfzf -mtsl'
|
||||
|
||||
# the terminal rickroll
|
||||
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
|
||||
|
||||
# Mocp must be launched with bash instead of Fish!
|
||||
alias mocp="bash -c mocp"
|
||||
|
||||
# network and bluetooth
|
||||
alias netstats='nmcli dev'
|
||||
alias wfi='nmtui-connect'
|
||||
alias wfi-scan='nmcli dev wifi rescan && nmcli dev wifi list'
|
||||
alias wfi-edit='nmtui-edit'
|
||||
alias wfi-on='nmcli radio wifi on'
|
||||
alias wfi-off='nmcli radio wifi off'
|
||||
alias blt='bluetoothctl'
|
||||
|
||||
### SETTING THE STARSHIP PROMPT ###
|
||||
starship init fish | source
|
|
@ -1,11 +0,0 @@
|
|||
[Filechooser Settings]
|
||||
LocationMode=path-bar
|
||||
ShowHidden=false
|
||||
ShowSizeColumn=true
|
||||
GeometryX=0
|
||||
GeometryY=0
|
||||
GeometryWidth=772
|
||||
GeometryHeight=560
|
||||
SortColumn=name
|
||||
SortOrder=ascending
|
||||
StartupMode=recent
|
|
@ -1,17 +0,0 @@
|
|||
[Settings]
|
||||
gtk-theme-name=gruvbox-dark-gtk
|
||||
gtk-icon-theme-name=gruvbox-dark-icons-gtk
|
||||
gtk-font-name=Cantarell 10
|
||||
gtk-cursor-theme-name=Simp1e-Gruvbox-Dark
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=1
|
||||
gtk-menu-images=1
|
||||
gtk-enable-event-sounds=1
|
||||
gtk-enable-input-feedback-sounds=0
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintslight
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-application-prefer-dark-theme=1
|
|
@ -1,75 +0,0 @@
|
|||
-- nvim options
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.relativenumber = true
|
||||
vim.cmd('autocmd FileType markdown setlocal nospell')
|
||||
vim.opt.wrap = true -- wrap lines
|
||||
vim.opt.spell = false
|
||||
vim.o.shell = '/usr/bin/bash'
|
||||
|
||||
-- general
|
||||
lvim.use_icons = false
|
||||
lvim.log.level = "info"
|
||||
lvim.format_on_save = {
|
||||
enabled = true,
|
||||
pattern = "*.lua",
|
||||
timeout = 1000,
|
||||
}
|
||||
|
||||
-- change theme settings
|
||||
lvim.colorscheme = "gruvbox"
|
||||
lvim.transparent_window = true
|
||||
lvim.builtin.alpha.active = true
|
||||
lvim.builtin.alpha.mode = "dashboard"
|
||||
lvim.builtin.terminal.active = true
|
||||
lvim.builtin.nvimtree.setup.view.side = "left"
|
||||
lvim.builtin.nvimtree.setup.renderer.icons.show.git = false
|
||||
|
||||
-- automatically install missing parsers when entering buffer
|
||||
lvim.builtin.treesitter.auto_install = true
|
||||
|
||||
-- additional Plugins
|
||||
lvim.plugins = {
|
||||
{ "lunarvim/colorschemes" },
|
||||
{ "ellisonleao/gruvbox.nvim" },
|
||||
{ "puremourning/vimspector" },
|
||||
{ "OmniSharp/omnisharp-vim" },
|
||||
{ "SirVer/ultisnips" },
|
||||
{ "CRAG666/code_runner.nvim" },
|
||||
}
|
||||
|
||||
-- vimspector options
|
||||
vim.g.vimspector_enable_mappings = 'HUMAN'
|
||||
vim.g.vimspector_enable_mappings_for_mode = {
|
||||
['<leader><leader>'] = { 'n', 'v' },
|
||||
}
|
||||
|
||||
-- code runner options
|
||||
require('code_runner').setup({
|
||||
filetype = {
|
||||
java = {
|
||||
"cd $dir &&",
|
||||
"javac $fileName &&",
|
||||
"java $fileNameWithoutExt"
|
||||
},
|
||||
python = "python3 -u",
|
||||
typescript = "deno run",
|
||||
rust = {
|
||||
"cd $dir &&",
|
||||
"rustc $fileName &&",
|
||||
"$dir/$fileNameWithoutExt"
|
||||
},
|
||||
cs = function(...)
|
||||
local root_dir = require("lspconfig").util.root_pattern "*.csproj" (vim.loop.cwd())
|
||||
return "cd " .. root_dir .. " && dotnet run$end"
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set('n', '<leader>r', ':RunCode<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>rf', ':RunFile<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>rft', ':RunFile tab<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>rp', ':RunProject<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>rc', ':RunClose<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>crf', ':CRFiletype<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>crp', ':CRProjects<CR>', { noremap = true, silent = false })
|
|
@ -1,12 +0,0 @@
|
|||
## ____ __
|
||||
## / __ \_________ _/ /_____
|
||||
## / / / / ___/ __ `/ //_/ _ \
|
||||
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
## /_____/_/ \__,_/_/|_|\___/ My custom mpv config
|
||||
##
|
||||
|
||||
l seek 5
|
||||
h seek -5
|
||||
j seek -60
|
||||
k seek 60
|
||||
S cycle sub
|
|
@ -1,51 +0,0 @@
|
|||
## ____ __
|
||||
## / __ \_________ _/ /_____
|
||||
## / / / / ___/ __ `/ //_/ _ \
|
||||
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
## /_____/_/ \__,_/_/|_|\___/ My custom newsboat config
|
||||
##
|
||||
show-read-feeds yes
|
||||
auto-reload yes
|
||||
reload-threads 10
|
||||
|
||||
bind-key j down
|
||||
bind-key k up
|
||||
bind-key j next articlelist
|
||||
bind-key k prev articlelist
|
||||
bind-key J next-feed articlelist
|
||||
bind-key K prev-feed articlelist
|
||||
bind-key G end
|
||||
bind-key g home
|
||||
bind-key d pagedown
|
||||
bind-key u pageup
|
||||
bind-key l open
|
||||
bind-key h quit
|
||||
bind-key a toggle-article-read
|
||||
bind-key n next-unread
|
||||
bind-key N prev-unread
|
||||
bind-key D pb-download
|
||||
bind-key U show-urls
|
||||
bind-key x pb-delete
|
||||
|
||||
color listnormal cyan default
|
||||
color listfocus black yellow standout bold
|
||||
color listnormal_unread blue default
|
||||
color listfocus_unread yellow default bold
|
||||
color info red black bold
|
||||
color article white default bold
|
||||
|
||||
highlight all "---.*---" yellow
|
||||
highlight feedlist ".*(0/0))" black
|
||||
highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold
|
||||
highlight article "(^Link:.*|^Date:.*)" default default
|
||||
highlight article "https?://[^ ]+" green default
|
||||
highlight article "^(Title):.*$" blue default
|
||||
highlight article "\\[[0-9][0-9]*\\]" magenta default bold
|
||||
highlight article "\\[image\\ [0-9]+\\]" green default bold
|
||||
highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold
|
||||
highlight article ":.*\\(link\\)$" cyan default
|
||||
highlight article ":.*\\(image\\)$" blue default
|
||||
highlight article ":.*\\(embedded flash\\)$" magenta default
|
||||
|
||||
browser w3m
|
||||
macro v set browser "mpv %u" ; open-in-browser ; set browser "elinks %u"
|
|
@ -1,99 +0,0 @@
|
|||
http://static.fsf.org/fsforg/rss/news.xml "~FSF News"
|
||||
http://static.fsf.org/fsforg/rss/blogs.xml "~FSF Blogs"
|
||||
https://fsfe.org/news/news.en.rss "~FSFE News"
|
||||
https://dot.kde.org/rss.xml "~KDE Dot News"
|
||||
https://planet.kde.org/global/atom.xml "~Planet KDE"
|
||||
https://pointieststick.com/feed/ "~This Week on KDE"
|
||||
https://www.kdeblog.com/rss "~KDE Blog"
|
||||
https://thisweek.gnome.org/index.xml "~This Week on GNOME"
|
||||
https://www.omgubuntu.co.uk/feed "~OMG Ubuntu!"
|
||||
https://www.omglinux.com/feed "~OMG!Linux"
|
||||
https://blog.thunderbird.net/feed/ "~The Thunderbird Blog"
|
||||
https://thelinuxexp.com/feed.xml "~The Linux Experiment"
|
||||
https://techhut.tv/feed/ "~TechHut Media"
|
||||
https://itsfoss.com/rss/ "~Its FOSS!"
|
||||
https://thelinuxcast.org/feed/feed.xml "~The Linux Cast"
|
||||
https://9to5linux.com/feed/atom "~9to5Linux"
|
||||
https://blog.elementary.io/feed.xml "~elementary OS Blog"
|
||||
https://blog.zorin.com/index.xml "~Zorin OS Blog"
|
||||
http://blog.linuxmint.com/?feed=rss2 "~Linux Mint Blog"
|
||||
https://www.gamingonlinux.com/article_rss.php "~Gaming on linux"
|
||||
https://hackaday.com/blog/feed/ "~Hackaday"
|
||||
https://opensource.com/feed "~Opensource"
|
||||
https://linux.softpedia.com/backend.xml "~Softpedia Linux"
|
||||
https://www.phoronix.com/rss.php "~Phoronix"
|
||||
https://www.computerworld.com/index.rss "~Computerworld"
|
||||
https://www.networkworld.com/category/linux/index.rss "~Networkworld Linux"
|
||||
https://betanews.com/feed "~Betanews Linux"
|
||||
http://lxer.com/module/newswire/headlines.rss "~Lxer"
|
||||
https://theevilskeleton.gitlab.io/feed.xml "~TheEvilSkeleton"
|
||||
https://tutanota.com/blog/feed.xml "~Tutanota Blogs"
|
||||
https://vanillaos.org/feed.xml "~Vanilla OS"
|
||||
https://techcrunch.com/feed/ "~TechCrunch"
|
||||
http://www.techradar.com/rss "~TechRadar"
|
||||
https://www.zdnet.com/news/rss.xml "~ZDNET - News"
|
||||
https://c3po.website/rss/ "~Blog de C3PO"
|
||||
http://yro.slashdot.org/yro.rss "~Slashdot: Your Rights Online"
|
||||
https://freedom-to-tinker.com/feed/rss/ "~Freedom to Tinker"
|
||||
https://act.eff.org/action.atom "~EFF - Action Center"
|
||||
https://www.eff.org/rss/updates.xml "~EFF - Updates"
|
||||
https://victorhckinthefreeworld.com/feed/ "~Victorhck in the free world"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCHnyfMqiRRG1u-2MsSQLbXA "~YT - Veritasium"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCtMVHI3AJD4Qk4hcbZnI9ZQ "~YT - SomeOrdinaryGamers"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCl2mFZoRqjw_ELax4Yisf6w "~YT - Louis Rossmann"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UChI0q9a-ZcbZh7dAu_-J-hg "~YT - Upper Echelon"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCj8orMezFWVcoN-4S545Wtw "~YT - Max Derrat"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCkmMACUKpQeIxN9D9ARli1Q "~YT - Shadiversity"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCNYW2vfGrUE6R5mIJYzkRyQ "~YT - DrossRotzank"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC36xmz34q02JYaZYKrMwXng "~YT - Nate Gentile"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCg6gPGh8HU2U01vaFCAsvmQ "~YT - Chris Titus Tech"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCVls1GmFKf6WlTraIb_IaJg "~YT - DistroTube"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCxQKHvKbmSzGMvUrVtJYnUA "~YT - Learn Linux TV"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC5UAwBUum7CPN5buc-_N1Fw "~YT - The Linux Experiment"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCylGUf9BvQooEFjgdNudoQg "~YT - The Linux Cast"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCoryWpk4QVYKFCJul9KBdyw "~YT - Switched to Linux"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCgkyQiY_Q5AlrygIXGWO2Zw "~YT - Tux Traveler"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCxkw-TfCK1t1VKxfHwPzD6w "~YT - Our Walk in Christ"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCld68syR8Wi-GY_n4CaoJGA "~YT - Brodie Robertson"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCjSEJkpGbcZhvo0lr-44X_w "~YT - TechHut"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC2eYFnH61tmytImy1mTYvhA "~YT - Luke Smith"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC7YOGHUfC1Tb6E4pudI9STA "~YT - Mental Outlaw"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC3jSNmKWYA04R47fDcc1ImA "~YT - InfinitelyGalactic"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCONH73CdRXUjlh3-DdLGCPw "~YT - Nicco Loves Linux"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC1s1OsWNYDFgbROPV-q5arg "~YT - Michael Horn"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCOSSzBN8e3JHOxvltQbf_mQ "~YT - Jack Keifer"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC05XpvbHZUQOfA6xk4dlmcw "~YT - DJ Ware"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCAiiOTio8Yu69c3XnR7nQBQ "~YT - System Crafters"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCAYKj_peyESIMDp5LtHlH2A "~YT - unfa"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCmw-QGOHbHA5cDAvwwqUTKQ "~YT - Zaney"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCNvl_86ygZXRuXjxbONI5jA "~YT - 10leej"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC3yaWWA9FF9OBog5U9ml68A "~YT - SavvyNik"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCS97tchJDq17Qms3cux8wcA "~YT - chris@machine"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCl8XUDjAOLc7GNKcDp9Nepg "~YT - Locos por Linux"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UClVi5MQZ6T0InZYT7oFs6wg "~YT - Mumbling Hugo"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCmyGZ0689ODyReHw3rsKLtQ "~YT - Michael Tunnell"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCv1Kcz-CuGM6mxzL3B1_Eiw "~YT - Gardiner Bryant"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCcf2Mr1qNoX51XXDUd3Rquw "~YT - ByteSeb"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCCIHOP7e271SIumQgyl6XBQ "~YT - OldTechBloke"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCIFzjAer2W9gTWVECZgtDzg "~YT - GaryH Tech"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCMiyV_Ib77XLpzHPQH_q0qQ "~YT - Veronica Explains"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCsnGwSIHyoYN0kiINAGUKxg "~YT - Wolfgang's Channel"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCnIfca4LPFVn8-FjpPVc1ow "~YT - Fedora Project"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCH5DsMZAgdx5Fkk9wwMNwCA "~YT - The New Oil"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCs6KfncB4OV6Vug4o_bzijg "~YT - Techlore"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCYVU6rModlGxvJbszCclGGw "~YT - Rob Braxman Tech"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCSuHzQ3GrHSzoBbwrIq3LLA "~YT - Naomi Brockwell: NBTV"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCvFGf8HZGZWFzpcDCqb3Lhw "~YT - All Things Secured"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCvjgXvBlbQiydffZU7m1_aw "~YT - The Coding Train"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC9-y-6csu5WGm29I7JiwpnA "~YT - Computerphile"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCbiGcwDWZjz05njNPrJU7jA "~YT - ExplainingComputers"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCy0tKL1T7wFoYcxCe0xjN6Q "~YT - Technology Connections"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC8uT9cgJorJPWu7ITLGo9Ww "~YT - The 8-Bit Guy"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCoL8olX-259lS1N6QPyP4IQ "~YT - Action Retro"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCW-HHEyt67RhZ6q21n4p2zQ "~YT - Mac84"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UChT0QzAGfz_pUIbQnePV6KQ "~YT - Pendleton 115"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC-ErgHYY0_Yjhjz2MN1E1lg "~YT - RETRO Hardware"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCjgS6Uyg8ok4Jd_lH_MUKgg "~YT - Claus Kellerman"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC0W_BIuwk8D0Bv4THbVZZOQ "~YT - Surveillance Report"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCBq5p-xOla8xhnrbhu8AIAg "~YT - Tech Over Tea"
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
[Appearance]
|
||||
color_scheme_path=/usr/share/qt5ct/colors/airy.conf
|
||||
custom_palette=false
|
||||
standard_dialogs=gtk2
|
||||
style=gtk2
|
||||
|
||||
[Fonts]
|
||||
fixed="Mononoki Nerd Font,10,-1,5,50,0,0,0,0,0,Regular"
|
||||
general="Cantarell,10,-1,5,50,0,0,0,0,0,Regular"
|
||||
|
||||
[Interface]
|
||||
activate_item_on_single_click=1
|
||||
buttonbox_layout=0
|
||||
cursor_flash_time=1000
|
||||
dialog_buttons_have_icons=1
|
||||
double_click_interval=400
|
||||
gui_effects=@Invalid()
|
||||
keyboard_scheme=2
|
||||
menus_have_icons=true
|
||||
show_shortcuts_in_context_menus=true
|
||||
stylesheets=@Invalid()
|
||||
toolbutton_style=4
|
||||
underline_shortcut=1
|
||||
wheel_scroll_lines=3
|
||||
|
||||
[SettingsWindow]
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\0\0\x2\xde\0\0\x2\x84\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc)
|
||||
|
||||
[Troubleshooting]
|
||||
force_raster_widgets=1
|
||||
ignored_applications=@Invalid()
|
|
@ -1,32 +0,0 @@
|
|||
[Appearance]
|
||||
color_scheme_path=/usr/share/qt6ct/colors/airy.conf
|
||||
custom_palette=false
|
||||
icon_theme=gruvbox-dark-icons-gtk
|
||||
standard_dialogs=gtk2
|
||||
style=qt6gtk2
|
||||
|
||||
[Fonts]
|
||||
fixed="Mononoki Nerd Font,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular"
|
||||
general="Cantarell,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular"
|
||||
|
||||
[Interface]
|
||||
activate_item_on_single_click=1
|
||||
buttonbox_layout=0
|
||||
cursor_flash_time=1000
|
||||
dialog_buttons_have_icons=1
|
||||
double_click_interval=400
|
||||
gui_effects=@Invalid()
|
||||
keyboard_scheme=2
|
||||
menus_have_icons=true
|
||||
show_shortcuts_in_context_menus=true
|
||||
stylesheets=@Invalid()
|
||||
toolbutton_style=4
|
||||
underline_shortcut=1
|
||||
wheel_scroll_lines=3
|
||||
|
||||
[SettingsWindow]
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc)
|
||||
|
||||
[Troubleshooting]
|
||||
force_raster_widgets=1
|
||||
ignored_applications=@Invalid()
|
|
@ -1,104 +0,0 @@
|
|||
configuration{
|
||||
modi: "run,drun,window";
|
||||
lines: 10;
|
||||
font: "mononoki Nerd Font 14";
|
||||
show-icons: true;
|
||||
icon-theme: "gruvbox-dark-icons-gtk";
|
||||
terminal: "alacritty";
|
||||
drun-display-format: "{icon} {name}";
|
||||
location: 0;
|
||||
disable-history: false;
|
||||
hide-scrollbar: true;
|
||||
display-drun: " Apps ";
|
||||
display-run: " Run ";
|
||||
display-window: " Window ";
|
||||
display-Network: " Network ";
|
||||
sidebar-mode: true;
|
||||
dpi: 100;
|
||||
}
|
||||
|
||||
@theme "gruvbox-dark"
|
||||
|
||||
element-text, element-icon , mode-switcher {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
window {
|
||||
height: 380;
|
||||
width: 1000;
|
||||
border: 3px;
|
||||
border-color: @border-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [prompt,entry];
|
||||
background-color: @bg-col;
|
||||
border-radius: 5px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
background-color: @red;
|
||||
padding: 3px;
|
||||
text-color: @bg-col;
|
||||
border-radius: 3px;
|
||||
margin: 20px 0px 0px 20px;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 6px;
|
||||
margin: 20px 0px 0px 10px;
|
||||
text-color: @fg-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
listview {
|
||||
border: 0px 0px 0px;
|
||||
padding: 2px 2px 2px;
|
||||
margin: 10px 20px 0px 20px;
|
||||
columns: 1;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 5px;
|
||||
background-color: @bg-col;
|
||||
text-color: @grey;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 28px;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @selected-col;
|
||||
text-color: @fg-col2;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
background-color: @bg-col;
|
||||
text-color: @inactive;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @selected-col;
|
||||
text-color: @red;
|
||||
}
|
|
@ -1,68 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# ***This script was made by Clay Gomera (Drake)***
|
||||
# - Description: A simple power menu rofi script
|
||||
# - Dependencies: rofi, power-profiles-daemon, swaylock
|
||||
#
|
||||
|
||||
## MENU PROMPT ##
|
||||
menu="rofi -dmenu -i -p"
|
||||
|
||||
## CURRENT WALLPAPER FOR LOCKSCREEN ##
|
||||
currwall=$(tail --l 1 "$HOME/.wbg" | awk '{print $3}')
|
||||
|
||||
## OPTIONS ##
|
||||
option1=" Logout"
|
||||
option2=" Reboot"
|
||||
option3=" Power off"
|
||||
option4=" Suspend"
|
||||
option5=" Lock"
|
||||
option6=" Change power profile"
|
||||
option7=" Cancel"
|
||||
options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6\n$option7"
|
||||
|
||||
## POWER PROFILE OPTIONS ##
|
||||
pwr1=" Performance"
|
||||
pwr2=" Balanced"
|
||||
pwr3=" Power Saver"
|
||||
pwr4=" Cancel"
|
||||
pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4"
|
||||
|
||||
## MAIN ACTION COMMAND ##
|
||||
action=$(echo -e "$options" | $menu " Power Options ")
|
||||
case "$action" in
|
||||
$option1)
|
||||
pkill Hyprland;;
|
||||
$option2)
|
||||
systemctl reboot || loginctl reboot;;
|
||||
$option3)
|
||||
systemctl poweroff || loginctl poweroff;;
|
||||
$option4)
|
||||
swaylock -i "$currwall" &
|
||||
sleep 0.1
|
||||
systemctl suspend;;
|
||||
$option5)
|
||||
swaylock -i "$currwall";;
|
||||
$option6)
|
||||
currentpwr=$(powerprofilesctl get)
|
||||
if [ "$currentpwr" = "performance" ]; then
|
||||
currentpwr="$pwr1"
|
||||
elif [ "$currentpwr" = "balanced" ]; then
|
||||
currentpwr="$pwr2"
|
||||
elif [ "$currentpwr" = "power-saver" ]; then
|
||||
currentpwr="$pwr3"
|
||||
fi
|
||||
pwraction=$(echo -e "$pwrs" | $menu " Power Profile Menu - Currently set to: ${currentpwr} ")
|
||||
case "$pwraction" in
|
||||
$pwr1*)
|
||||
powerprofilesctl set performance && notify-send "Power profile switched to performance";;
|
||||
$pwr2*)
|
||||
powerprofilesctl set balanced && notify-send "Power profile switched to balanced";;
|
||||
$pwr3*)
|
||||
powerprofilesctl set power-saver && notify-send "Power profile switched to power saver";;
|
||||
$pwr4*)
|
||||
exit 0
|
||||
esac;;
|
||||
$option7)
|
||||
exit 0
|
||||
esac
|
|
@ -1,93 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# ***This script was made by Clay Gomera (Drake)***
|
||||
# - Description: A simple screenshot menu rofi script
|
||||
# - Dependencies: rofi, grim, slurp, wf-recorder
|
||||
#
|
||||
|
||||
# screenshot directory
|
||||
scrdir="$HOME/Pictures/Screenshots"
|
||||
mkdir -p "$scrdir"
|
||||
cd "$scrdir" || exit 1
|
||||
filename=$(date "+%d-%m-%Y_%H:%M:%S")
|
||||
|
||||
# options array
|
||||
option1=" Capture the screen"
|
||||
option2=" Capture region"
|
||||
option3=" Record the screen"
|
||||
option4=" Record region"
|
||||
option5=" Record the screen and audio"
|
||||
option6="Exit"
|
||||
options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6"
|
||||
|
||||
# countdown function
|
||||
countdown() {
|
||||
notify-send "Screenshot" "Executing in 3 seconds" -t 1000
|
||||
sleep 1
|
||||
notify-send "Screenshot" "Executing in 2 seconds" -t 1000
|
||||
sleep 1
|
||||
notify-send "Screenshot" "Executing in 1 seconds" -t 1000
|
||||
sleep 2
|
||||
}
|
||||
|
||||
# show the help output with --help or -h arguments
|
||||
if [[ $1 == '--help' ]] || [[ $1 = '-h' ]]
|
||||
then
|
||||
echo ### rofi-screenshot
|
||||
echo USAGE: rofi-screenshot [OPTION]
|
||||
echo \(no option\)
|
||||
echo " show the screenshot menu"
|
||||
echo -s, --stop
|
||||
echo " stop recording"
|
||||
echo -h, --help
|
||||
echo " this screen"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# stop recording with -s or --stop arguments
|
||||
if [[ $1 = '--stop' ]] || [[ $1 = '-s' ]]
|
||||
then
|
||||
killall -s SIGINT wf-recorder
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# run the selected command
|
||||
choice=$(echo -e "$options" | rofi -dmenu -p " Screenshot " )
|
||||
case $choice in
|
||||
$option1)
|
||||
countdown
|
||||
grim "$filename.jpg"
|
||||
notify-send "Screenshot" "Screenshot saved to $scrdir"
|
||||
;;
|
||||
$option2)
|
||||
notify-send "Screenshot" "Select a region to capture"
|
||||
grim -g "$(slurp)" "$filename.jpg"
|
||||
notify-send "Screenshot" "Region saved to $scrdir"
|
||||
;;
|
||||
$option3)
|
||||
countdown
|
||||
wf-recorder --codec=h264_vaapi -d /dev/dri/renderD128 -f "$filename.mp4"
|
||||
notify-send "Screenshot" "Recording saved to $scrdir"
|
||||
;;
|
||||
$option4)
|
||||
notify-send "Screenshot" "Select a region to record"
|
||||
wf-recorder --codec=h264_vaapi -d /dev/dri/renderD128 -g "$(slurp)" -f "$filename.mp4"
|
||||
notify-send "Screenshot" "Recording saved to $scrdir"
|
||||
;;
|
||||
$option5)
|
||||
devices=$(pactl list sources | grep "Name" | awk '{print $2}')
|
||||
chosendevice=$(echo -e "$devices" | rofi -dmenu -p " Select audio input ")
|
||||
if [ "$chosendevice" ]; then
|
||||
device="$chosendevice"
|
||||
countdown
|
||||
wf-recorder --audio="$device" --codec=h264_vaapi -d /dev/dri/renderD128 -f "$filename.mp4"
|
||||
else
|
||||
notify-send "Please select an audio input device"
|
||||
exit 1
|
||||
fi
|
||||
notify-send "Screenshot" "Recording saved to $scrdir"
|
||||
;;
|
||||
$option6)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
|
@ -1,24 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# ***This script was made by Clay Gomera (Drake)***
|
||||
# - Description: A simple wallpaper changer script
|
||||
# - Dependencies: rofi, fd, swaybg
|
||||
|
||||
## MENU PROMPT ##
|
||||
menu="rofi -dmenu -i -p"
|
||||
|
||||
## WALLPAPER DIRECTORY ##
|
||||
walldir="$HOME/Pictures/Wallpapers" # wallpapers folder, change it to yours
|
||||
|
||||
## SELECT PICTURE ##
|
||||
cd "$walldir" || exit 1
|
||||
wallpaper=$(fd -p "$walldir" | $menu " Wallpaper Selector ")
|
||||
if [ "$wallpaper" ]; then
|
||||
chosenwall=$wallpaper
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
swww img "$chosenwall"
|
||||
echo -e "#!/bin/sh\nswww img $walldir/$chosenwall" > "$HOME/.wbg"
|
||||
exit 0
|
|
@ -1,91 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# ***This script was made by Clay Gomera (Drake)***
|
||||
# - Description: A simple wifi rofi script
|
||||
# - Dependencies: rofi, NetworkManager, io.elementary.capnet-assist
|
||||
|
||||
## MENU PROMPT ##
|
||||
menu="rofi -dmenu -i -p"
|
||||
|
||||
## MAIN OPTIONS ##
|
||||
option1=" Turn on WiFi"
|
||||
option2=" Turn off WiFi"
|
||||
option3=" Disconnect WiFi"
|
||||
option4=" Connect WiFi"
|
||||
option5=" Setup captive portal"
|
||||
option6=" Exit"
|
||||
options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6"
|
||||
|
||||
## GRAB WIFI INTERFACE ##
|
||||
wlan=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f1 | head -1)
|
||||
|
||||
## TURN OFF WIFI FUNCTION ##
|
||||
turnoff() {
|
||||
nmcli radio wifi off
|
||||
notify-send "WiFi has been turned off"
|
||||
}
|
||||
|
||||
## TURN ON WIFI FUNCTION ##
|
||||
turnon() {
|
||||
nmcli radio wifi on
|
||||
notify-send "WiFi has been turned on"
|
||||
}
|
||||
|
||||
## DISCONNECT WIFI FUNCTION ##
|
||||
disconnect() {
|
||||
nmcli device disconnect "$wlan"
|
||||
sleep 1
|
||||
constate=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f3 | head -1)
|
||||
if [ "$constate" = "disconnected" ]; then
|
||||
notify-send "WiFi has been disconnected"
|
||||
fi
|
||||
}
|
||||
|
||||
## CONNECT FUNCTION ##
|
||||
connect() {
|
||||
notify-send "Scannig networks, please wait"
|
||||
sleep 1
|
||||
bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | $menu " Select a Wifi Network " | cut -d' ' -f1)
|
||||
}
|
||||
|
||||
## SELECT PASSWORD FUNCTION ##
|
||||
password() {
|
||||
pass=$(echo " " | $menu " Enter Password " -password)
|
||||
}
|
||||
|
||||
## MAIN CONNECTION COMMAND ##
|
||||
action() {
|
||||
nmcli device wifi connect "$bssid" password "$pass" || nmcli device wifi connect "$bssid"
|
||||
}
|
||||
|
||||
## CHECKING IF WIFI IS WORKING
|
||||
check() {
|
||||
notify-send "Checking if connection was successful"
|
||||
sleep 1
|
||||
currentwfi=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f4 | head -1)
|
||||
if ping -q -c 2 -W 2 google.com >/dev/null; then
|
||||
notify-send "You are now connected to $currentwfi and internet is working properly"
|
||||
else
|
||||
notify-send "Your internet is not working :("
|
||||
fi
|
||||
}
|
||||
|
||||
## MAIN ACTION COMMANDS ##
|
||||
cases=$(echo -e "$options" | $menu " Wifi Settings " )
|
||||
case "$cases" in
|
||||
$option1*)
|
||||
turnon;;
|
||||
$option2*)
|
||||
turnoff;;
|
||||
$option3*)
|
||||
disconnect;;
|
||||
$option4*)
|
||||
connect;
|
||||
password;
|
||||
action;
|
||||
check;;
|
||||
$option5*)
|
||||
io.elementary.capnet-assist;;
|
||||
$option6*)
|
||||
exit 0
|
||||
esac
|
|
@ -1,16 +0,0 @@
|
|||
* {
|
||||
bg-col: #1d2021;
|
||||
bg-col-light: #282828;
|
||||
border-col: #504945;
|
||||
selected-col: #3c3836;
|
||||
blue: #458588;
|
||||
fg-col: #ebdbb2;
|
||||
fg-col2: #ebdbb2;
|
||||
grey: #928374;
|
||||
width: 600;
|
||||
selected: #ebdbb2;
|
||||
red: #fb4934;
|
||||
green: #98971a;
|
||||
empty: #3c3836;
|
||||
inactive: #928374;
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
## ____ __
|
||||
## / __ \_________ _/ /_____
|
||||
## / / / / ___/ __ `/ //_/ _ \
|
||||
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
## /_____/_/ \__,_/_/|_|\___/ My custom starship prompt config
|
||||
##
|
||||
|
||||
add_newline = false
|
||||
|
||||
[line_break]
|
||||
disabled = true
|
||||
|
||||
[character]
|
||||
error_symbol = "[](bold red) "
|
||||
success_symbol = "[](bold green)"
|
||||
|
||||
[directory]
|
||||
truncation_length = 5
|
||||
home_symbol = " "
|
||||
format = "[$path](bold italic yellow) "
|
||||
|
||||
[hostname]
|
||||
ssh_only = false
|
||||
disabled = false
|
||||
style = "italic #87A752"
|
||||
|
||||
[package]
|
||||
disabled = true
|
||||
|
||||
[username]
|
||||
show_always = true
|
||||
style_user = "bold red"
|
||||
format = "[$user]($style)[ in ](white)"
|
|
@ -1,487 +0,0 @@
|
|||
" ____ __
|
||||
" / __ \_________ _/ /_____
|
||||
" / / / / ___/ __ `/ //_/ _ \
|
||||
" / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
" /_____/_/ \__,_/_/|_|\___/ My custom vifm config
|
||||
|
||||
" vim: filetype=vifm :
|
||||
" My config file for the vifm terminal file manager.
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" This is the actual command used to start vi. The default is vim.
|
||||
" If you would like to use emacs or emacsclient, you can use them.
|
||||
" Since emacs is a GUI app and not a terminal app like vim, append the command
|
||||
" with an ampersand (&).
|
||||
|
||||
set vicmd=~/.local/bin/lvim
|
||||
|
||||
" This makes vifm perform file operations on its own instead of relying on
|
||||
" standard utilities like `cp`. While using `cp` and alike is a more universal
|
||||
" solution, it's also much slower when processing large amounts of files and
|
||||
" doesn't support progress measuring.
|
||||
|
||||
set syscalls
|
||||
|
||||
" Trash Directory
|
||||
" The default is to move files that are deleted with dd or :d to
|
||||
" the trash directory. If you change this you will not be able to move
|
||||
" files by deleting them and then using p to put the file in the new location.
|
||||
" I recommend not changing this until you are familiar with vifm.
|
||||
" This probably shouldn't be an option.
|
||||
|
||||
set trash
|
||||
|
||||
" This is how many directories to store in the directory history.
|
||||
|
||||
set history=100
|
||||
|
||||
" Automatically resolve symbolic links on l or Enter.
|
||||
|
||||
set nofollowlinks
|
||||
|
||||
" With this option turned on you can run partially entered commands with
|
||||
" unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te<tab>).
|
||||
|
||||
" set fastrun
|
||||
|
||||
" Natural sort of (version) numbers within text.
|
||||
|
||||
set sortnumbers
|
||||
|
||||
" Maximum number of changes that can be undone.
|
||||
|
||||
set undolevels=100
|
||||
|
||||
" If you installed the vim.txt help file set vimhelp.
|
||||
" If would rather use a plain text help file set novimhelp.
|
||||
|
||||
set novimhelp
|
||||
|
||||
" If you would like to run an executable file when you
|
||||
" press return on the file name set this.
|
||||
|
||||
set norunexec
|
||||
|
||||
" Selected color scheme
|
||||
" The following line will cause issues if using vifm.vim with regular vim.
|
||||
" Either use neovim or comment out the following line.
|
||||
colorscheme gruvbox-dark
|
||||
|
||||
" Format for displaying time in file list. For example:
|
||||
" TIME_STAMP_FORMAT=%m/%d-%H:%M
|
||||
" See man date or man strftime for details.
|
||||
|
||||
set timefmt=%m/%d\ %H:%M
|
||||
|
||||
" Show list of matches on tab completion in command-line mode
|
||||
|
||||
set wildmenu
|
||||
|
||||
" Display completions in a form of popup with descriptions of the matches
|
||||
|
||||
set wildstyle=popup
|
||||
|
||||
" Display suggestions in normal, visual and view modes for keys, marks and
|
||||
" registers (at most 5 files). In other view, when available.
|
||||
|
||||
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
|
||||
|
||||
" Ignore case in search patterns unless it contains at least one uppercase
|
||||
" letter
|
||||
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
" Don't highlight search results automatically
|
||||
|
||||
set nohlsearch
|
||||
|
||||
" Use increment searching (search while typing)
|
||||
set incsearch
|
||||
|
||||
" Try to leave some space from cursor to upper/lower border in lists
|
||||
|
||||
set scrolloff=4
|
||||
|
||||
" Don't do too many requests to slow file systems
|
||||
|
||||
if !has('win')
|
||||
set slowfs=curlftpfs
|
||||
endif
|
||||
|
||||
" Set custom status line look
|
||||
|
||||
set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d "
|
||||
|
||||
" Set line numbers to show
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" :mark mark /full/directory/path [filename]
|
||||
|
||||
mark h ~/
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" :com[mand][!] command_name action
|
||||
" The following macros can be used in a command
|
||||
" %a is replaced with the user arguments.
|
||||
" %c the current file under the cursor.
|
||||
" %C the current file under the cursor in the other directory.
|
||||
" %f the current selected file, or files.
|
||||
" %F the current selected file, or files in the other directory.
|
||||
" %b same as %f %F.
|
||||
" %d the current directory name.
|
||||
" %D the other window directory name.
|
||||
" %m run the command in a menu window
|
||||
|
||||
command! df df -h %m 2> /dev/null
|
||||
command! diff vim -d %f %F
|
||||
command! zip zip -r %f.zip %f
|
||||
command! run !! ./%f
|
||||
command! make !!make %a
|
||||
command! mkcd :mkdir %a | cd %a
|
||||
command! vgrep vim "+grep %a"
|
||||
command! reload :write | restart
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" The file type is for the default programs to be used with
|
||||
" a file extension.
|
||||
" :filetype pattern1,pattern2 defaultprogram,program2
|
||||
" :fileviewer pattern1,pattern2 consoleviewer
|
||||
" The other programs for the file type can be accessed with the :file command
|
||||
" The command macros %f, %F, %d, %F may be used in the commands.
|
||||
" The %a macro is ignored. To use a % you must put %%.
|
||||
|
||||
" For automated FUSE mounts, you must register an extension with :file[x]type
|
||||
" in one of following formats:
|
||||
"
|
||||
" :filetype extensions FUSE_MOUNT|some_mount_command using %SOURCE_FILE and %DESTINATION_DIR variables
|
||||
" %SOURCE_FILE and %DESTINATION_DIR are filled in by vifm at runtime.
|
||||
" A sample line might look like this:
|
||||
" :filetype *.zip,*.jar,*.war,*.ear FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR
|
||||
"
|
||||
" :filetype extensions FUSE_MOUNT2|some_mount_command using %PARAM and %DESTINATION_DIR variables
|
||||
" %PARAM and %DESTINATION_DIR are filled in by vifm at runtime.
|
||||
" A sample line might look like this:
|
||||
" :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR
|
||||
" %PARAM value is filled from the first line of file (whole line).
|
||||
" Example first line for SshMount filetype: root@127.0.0.1:/
|
||||
"
|
||||
" You can also add %CLEAR if you want to clear screen before running FUSE
|
||||
" program.
|
||||
|
||||
" Pdf
|
||||
filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c
|
||||
fileviewer *.pdf
|
||||
\ pdftotext -nopgbrk %c -
|
||||
|
||||
" PostScript
|
||||
filextype *.ps,*.eps,*.ps.gz
|
||||
\ {View in zathura}
|
||||
\ zathura %f,
|
||||
\ {View in gv}
|
||||
\ gv %c %i &,
|
||||
|
||||
" Djvu
|
||||
filextype *.djvu
|
||||
\ {View in zathura}
|
||||
\ zathura %f,
|
||||
\ {View in apvlv}
|
||||
\ apvlv %f,
|
||||
|
||||
" Audio
|
||||
filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus
|
||||
\ {Play using mpv}
|
||||
\ mpv %f,
|
||||
fileviewer *.mp3 mp3info
|
||||
fileviewer *.flac soxi
|
||||
|
||||
" Video
|
||||
filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||
\*.as[fx]
|
||||
\ {View using mplayer}
|
||||
\ mpv %f,
|
||||
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||
\*.as[fx]
|
||||
\ ffprobe -pretty %c 2>&1
|
||||
|
||||
" Web
|
||||
filextype *.html,*.htm
|
||||
\ {Open with emacs}
|
||||
\ emacsclient -c %c &,
|
||||
\ {Open with vim}
|
||||
\ vim %c &,
|
||||
\ {Open with dwb}
|
||||
\ dwb %f %i &,
|
||||
\ {Open with firefox}
|
||||
\ firefox %f &,
|
||||
\ {Open with uzbl}
|
||||
\ uzbl-browser %f %i &,
|
||||
filetype *.html,*.htm links, lynx
|
||||
|
||||
" Object
|
||||
filetype *.o nm %f | less
|
||||
|
||||
" Man page
|
||||
filetype *.[1-8] man ./%c
|
||||
fileviewer *.[1-8] man ./%c | col -b
|
||||
|
||||
" Images
|
||||
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
||||
\ {View in imv}
|
||||
\ imv %f &,
|
||||
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm,*.gif
|
||||
\ wezterm imgcat --width %pw --height %ph %c:p %pd
|
||||
|
||||
" OpenRaster
|
||||
filextype *.ora
|
||||
\ {Edit in MyPaint}
|
||||
\ mypaint %f,
|
||||
|
||||
" Mindmap
|
||||
filextype *.vym
|
||||
\ {Open with VYM}
|
||||
\ vym %f &,
|
||||
|
||||
" MD5
|
||||
filetype *.md5
|
||||
\ {Check MD5 hash sum}
|
||||
\ md5sum -c %f %S,
|
||||
|
||||
" SHA1
|
||||
filetype *.sha1
|
||||
\ {Check SHA1 hash sum}
|
||||
\ sha1sum -c %f %S,
|
||||
|
||||
" SHA256
|
||||
filetype *.sha256
|
||||
\ {Check SHA256 hash sum}
|
||||
\ sha256sum -c %f %S,
|
||||
|
||||
" SHA512
|
||||
filetype *.sha512
|
||||
\ {Check SHA512 hash sum}
|
||||
\ sha512sum -c %f %S,
|
||||
|
||||
" GPG signature
|
||||
filetype *.asc
|
||||
\ {Check signature}
|
||||
\ !!gpg --verify %c,
|
||||
|
||||
" Torrent
|
||||
filetype *.torrent ktorrent %f &
|
||||
fileviewer *.torrent dumptorrent -v %c
|
||||
|
||||
" FuseZipMount
|
||||
filetype *.zip,*.jar,*.war,*.ear,*.oxt,*.apkg
|
||||
\ {Mount with fuse-zip}
|
||||
\ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR,
|
||||
\ {View contents}
|
||||
\ zip -sf %c | less,
|
||||
\ {Extract here}
|
||||
\ tar -xf %c,
|
||||
fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c
|
||||
|
||||
" ArchiveMount
|
||||
filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz
|
||||
\ {Mount with archivemount}
|
||||
\ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR,
|
||||
fileviewer *.tgz,*.tar.gz tar -tzf %c
|
||||
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
|
||||
fileviewer *.tar.txz,*.txz xz --list %c
|
||||
fileviewer *.tar tar -tf %c
|
||||
|
||||
" Rar2FsMount and rar archives
|
||||
filetype *.rar
|
||||
\ {Mount with rar2fs}
|
||||
\ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR,
|
||||
fileviewer *.rar unrar v %c
|
||||
|
||||
" IsoMount
|
||||
filetype *.iso
|
||||
\ {Mount with fuseiso}
|
||||
\ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR,
|
||||
|
||||
" SshMount
|
||||
filetype *.ssh
|
||||
\ {Mount with sshfs}
|
||||
\ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND,
|
||||
|
||||
" FtpMount
|
||||
filetype *.ftp
|
||||
\ {Mount with curlftpfs}
|
||||
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND,
|
||||
|
||||
" Fuse7z and 7z archives
|
||||
filetype *.7z
|
||||
\ {Mount with fuse-7z}
|
||||
\ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR,
|
||||
fileviewer *.7z 7z l %c
|
||||
|
||||
" Office files
|
||||
filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx libreoffice %f &
|
||||
fileviewer *.doc catdoc %c
|
||||
fileviewer *.docx docx2txt.pl %f -
|
||||
|
||||
" TuDu files
|
||||
filetype *.tudu tudu -f %c
|
||||
|
||||
" Qt projects
|
||||
filextype *.pro qtcreator %f &
|
||||
|
||||
" Directories
|
||||
filextype */
|
||||
\ {View in thunar}
|
||||
\ Thunar %f &,
|
||||
|
||||
" Syntax highlighting in preview
|
||||
"
|
||||
" Explicitly set highlight type for some extensions
|
||||
"
|
||||
" 256-color terminal
|
||||
" fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c
|
||||
" fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c
|
||||
"
|
||||
" 16-color terminal
|
||||
" fileviewer *.c,*.h highlight -O ansi -s dante %c
|
||||
"
|
||||
" Or leave it for automatic detection
|
||||
"
|
||||
" fileviewer *[^/] pygmentize -O style=monokai -f console256 -g
|
||||
|
||||
" Displaying pictures in terminal
|
||||
"
|
||||
" fileviewer *.jpg,*.png shellpic %c
|
||||
|
||||
" Open all other files with default system programs (you can also remove all
|
||||
" :file[x]type commands above to ensure they don't interfere with system-wide
|
||||
" settings). By default all unknown files are opened with 'vi[x]cmd'
|
||||
" uncommenting one of lines below will result in ignoring 'vi[x]cmd' option
|
||||
" for unknown file types.
|
||||
" For *nix:
|
||||
" filetype * xdg-open
|
||||
" For OS X:
|
||||
" filetype * open
|
||||
" For Windows:
|
||||
" filetype * start, explorer
|
||||
|
||||
" GETTING ICONS TO DISPLAY IN VIFM
|
||||
" You need the next 14 lines!
|
||||
|
||||
" file types
|
||||
set classify=' :dir:/, :exe:, :reg:, :link:'
|
||||
" various file names
|
||||
set classify+=' ::../::, ::*.sh::, ::*.[hc]pp::, ::*.[hc]::, ::/^copying|license$/::, ::.git/,,*.git/::, ::*.epub,,*.fb2,,*.djvu::, ::*.pdf::, ::*.htm,,*.html,,**.[sx]html,,*.xml::'
|
||||
" archives
|
||||
set classify+=' ::*.7z,,*.ace,,*.arj,,*.bz2,,*.cpio,,*.deb,,*.dz,,*.gz,,*.jar,,*.lzh,,*.lzma,,*.rar,,*.rpm,,*.rz,,*.tar,,*.taz,,*.tb2,,*.tbz,,*.tbz2,,*.tgz,,*.tlz,,*.trz,,*.txz,,*.tz,,*.tz2,,*.xz,,*.z,,*.zip,,*.zoo::'
|
||||
" images
|
||||
set classify+=' ::*.bmp,,*.gif,,*.jpeg,,*.jpg,,*.ico,,*.png,,*.ppm,,*.svg,,*.svgz,,*.tga,,*.tif,,*.tiff,,*.xbm,,*.xcf,,*.xpm,,*.xspf,,*.xwd::'
|
||||
" audio
|
||||
set classify+=' ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::'
|
||||
" media
|
||||
set classify+=' ::*.avi,,*.ts,,*.axv,,*.divx,,*.m2v,,*.m4p,,*.m4v,,.mka,,*.mkv,,*.mov,,*.mp4,,*.flv,,*.mp4v,,*.mpeg,,*.mpg,,*.nuv,,*.ogv,,*.pbm,,*.pgm,,*.qt,,*.vob,,*.wmv,,*.xvid::'
|
||||
" office files
|
||||
set classify+=' ::*.doc,,*.docx::, ::*.xls,,*.xls[mx]::, ::*.pptx,,*.ppt::'
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" What should be saved automatically between vifm runs
|
||||
" Like in previous versions of vifm
|
||||
" set vifminfo=options,filetypes,commands,bookmarks,dhistory,state,cs
|
||||
" Like in vi
|
||||
set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
|
||||
\phistory,fhistory,dirstack,registers,bookmarks,bmarks
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" Examples of configuring both panels
|
||||
|
||||
" Customize view columns a bit (enable ellipsis for truncated file names)
|
||||
"
|
||||
" set viewcolumns=-{name}..,6{}.
|
||||
|
||||
" Filter-out build and temporary files
|
||||
"
|
||||
" filter! /^.*\.(lo|o|d|class|py[co])$|.*~$/
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" Sample mappings
|
||||
|
||||
"Open all images in current directory in sxiv thumbnail mode
|
||||
nnoremap sx :!sxiv -t %d & <cr>
|
||||
|
||||
"Open selected images in gimp
|
||||
nnoremap gp :!gimp %f & <cr>
|
||||
|
||||
" Start shell in current directory
|
||||
nnoremap s :shell<cr>
|
||||
|
||||
" Display sorting dialog
|
||||
nnoremap S :sort<cr>
|
||||
|
||||
" Toggle visibility of preview window
|
||||
nnoremap w :view<cr>
|
||||
vnoremap w :view<cr>gv
|
||||
|
||||
" Open file in the background using its default program
|
||||
nnoremap gb :file &<cr>l
|
||||
|
||||
" Yank current directory path into the clipboard
|
||||
nnoremap yd :!echo %d | xclip %i<cr>
|
||||
|
||||
" Yank current file path into the clipboard
|
||||
nnoremap yf :!echo %c:p | xclip %i<cr>
|
||||
|
||||
" Mappings for faster renaming
|
||||
nnoremap I cw<c-a>
|
||||
nnoremap cc cw<c-u>
|
||||
nnoremap A cw
|
||||
|
||||
" Open console in current directory
|
||||
nnoremap ,t :!xterm &<cr>
|
||||
|
||||
" Open editor to edit vifmrc and apply settings after returning to vifm
|
||||
nnoremap ,c :write | edit $MYVIFMRC | restart<cr>
|
||||
" Open gvim to edit vifmrc
|
||||
nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC &<cr>
|
||||
|
||||
" Toggle wrap setting on ,w key
|
||||
nnoremap ,w :set wrap!<cr>
|
||||
|
||||
" Example of standard two-panel file managers mappings
|
||||
nnoremap <f3> :!less %f<cr>
|
||||
nnoremap <f4> :edit<cr>
|
||||
nnoremap <f5> :copy<cr>
|
||||
nnoremap <f6> :move<cr>
|
||||
nnoremap <f7> :mkdir<space>
|
||||
nnoremap <f8> :delete<cr>
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" Various customization examples
|
||||
|
||||
" Use ag (the silver searcher) instead of grep
|
||||
"
|
||||
" set grepprg='ag --line-numbers %i %a %s'
|
||||
|
||||
" Add additional place to look for executables
|
||||
"
|
||||
" let $PATH = $HOME.'/bin/fuse:'.$PATH
|
||||
|
||||
" Block particular shortcut
|
||||
"
|
||||
" nnoremap <left> <nop>
|
||||
|
||||
" Export IPC name of current instance as environment variable and use it to
|
||||
" communicate with the instance later.
|
||||
"
|
||||
" It can be used in some shell script that gets run from inside vifm, for
|
||||
" example, like this:
|
||||
" vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'"
|
||||
"
|
||||
" let $VIFM_SERVER_NAME = v:servername
|
|
@ -1,33 +0,0 @@
|
|||
local wezterm = require 'wezterm'
|
||||
local gpus = wezterm.gui.enumerate_gpus()
|
||||
|
||||
return {
|
||||
enable_wayland = true,
|
||||
font = wezterm.font {
|
||||
family = 'mononoki Nerd Font',
|
||||
weight = 'Medium'
|
||||
},
|
||||
color_scheme = 'Gruvbox dark, hard (base16)',
|
||||
default_prog = { '/usr/bin/fish' },
|
||||
default_cursor_style = "BlinkingUnderline",
|
||||
font_size = 12,
|
||||
check_for_updates = false,
|
||||
use_dead_keys = false,
|
||||
warn_about_missing_glyphs = false,
|
||||
enable_kitty_graphics = true,
|
||||
animation_fps = 1,
|
||||
cursor_blink_rate = 175,
|
||||
hide_tab_bar_if_only_one_tab = true,
|
||||
adjust_window_size_when_changing_font_size = false,
|
||||
window_padding = {
|
||||
left = 10,
|
||||
right = 10,
|
||||
top = 10,
|
||||
bottom = 10,
|
||||
},
|
||||
use_fancy_tab_bar = false,
|
||||
exit_behavior = "Close",
|
||||
window_close_confirmation = 'NeverPrompt',
|
||||
tab_bar_at_bottom = false,
|
||||
window_background_opacity = 0.9,
|
||||
}
|
|
@ -1,54 +0,0 @@
|
|||
## ____ __
|
||||
## / __ \_________ _/ /_____
|
||||
## / / / / ___/ __ `/ //_/ _ \
|
||||
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
## /_____/_/ \__,_/_/|_|\___/ My custom zathura config
|
||||
##
|
||||
|
||||
set font "mononoki Nerd Font 9"
|
||||
set default-bg "#262626" #00
|
||||
set default-fg "#ebdbb2" #01
|
||||
|
||||
set statusbar-fg "#ebdbb2" #04
|
||||
set statusbar-bg "#262626" #01
|
||||
|
||||
set inputbar-bg "#262626" #00 currently not used
|
||||
set inputbar-fg "#ebdbb2" #02
|
||||
|
||||
set notification-error-bg "#262626" #08
|
||||
set notification-error-fg "#cc241d" #00
|
||||
|
||||
set notification-warning-bg "#262626" #08
|
||||
set notification-warning-fg "#d79921" #00
|
||||
|
||||
set highlight-color "#262626" #0A
|
||||
set highlight-active-color "#ebdbb2" #0D
|
||||
|
||||
set completion-highlight-fg "#4e4e4e" #02
|
||||
set completion-highlight-bg "#87afaf" #0C
|
||||
|
||||
set completion-bg "#4e4e4e" #02
|
||||
set completion-fg "#ebdbb2" #0C
|
||||
|
||||
set notification-bg "#262626" #0B
|
||||
set notification-fg "#458588" #00
|
||||
|
||||
set recolor-lightcolor "#262626" #00
|
||||
set recolor-darkcolor "#ebdbb2" #06
|
||||
set recolor "false"
|
||||
|
||||
# setting recolor-keep true will keep any color your pdf has.
|
||||
# if it is false, it'll just be black and white
|
||||
set recolor-keephue "false"
|
||||
|
||||
set selection-clipboard "clipboard"
|
||||
|
||||
# keybindings
|
||||
map [fullscreen] a adjust_window best-fit
|
||||
map [fullscreen] s adjust_window width
|
||||
map [fullscreen] f follow
|
||||
map [fullscreen] <Tab> toggle_index
|
||||
map [fullscreen] j scroll down
|
||||
map [fullscreen] k scroll up
|
||||
map [fullscreen] h navigate previous
|
||||
map [fullscreen] l navigate next
|
|
@ -1,5 +0,0 @@
|
|||
# This file is written by nwg-look. Do not edit.
|
||||
[Icon Theme]
|
||||
Name=Default
|
||||
Comment=Default Cursor Theme
|
||||
Inherits=Simp1e-Gruvbox-Dark
|
|
@ -1,3 +0,0 @@
|
|||
# ~/.bash_logout
|
||||
clear
|
||||
|
|
@ -9,16 +9,22 @@
|
|||
### STARTING XSESSION
|
||||
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]
|
||||
then
|
||||
startx -- vt1 -keeptty &>/dev/null
|
||||
sh $HOME/.winitrc
|
||||
logout
|
||||
fi
|
||||
|
||||
### ENVIRONMENT VARIABLES
|
||||
export EDITOR="lvim" # $EDITOR use lunarvim in terminal
|
||||
export VISUAL="neovide --neovim-bin ./.local/bin/lvim" # $VISUAL use neovide for lunarvim in GUI
|
||||
export XDG_DATA_HOME="${XDG_DATA_HOME:="$HOME/.local/share"}"
|
||||
export XDG_CACHE_HOME="${XDG_CACHE_HOME:="$HOME/.cache"}"
|
||||
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:="$HOME/.config"}"
|
||||
|
||||
# clean home
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export W3M_DIR="$XDG_DATA_HOME/w3m"
|
||||
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
|
||||
export WGETRC="$HOME/.config/wget/wgetrc"
|
||||
export INPUTRC="$HOME/.config/inputrc"
|
||||
export GNUPGHOME="$HOME/.local/share/gnupg"
|
||||
|
||||
### BASHRC
|
||||
source "$HOME"/.bashrc # Load the bashrc
|
||||
source "$HOME"/.bashrc # Load the bashrc
|
||||
|
|
56
user/.bashrc
|
@ -8,6 +8,11 @@
|
|||
### EXPORT ###
|
||||
export TERM="xterm-256color" # getting proper colors
|
||||
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
|
||||
export EDITOR="$HOME/.local/bin/lvim"
|
||||
export VISUAL="wezterm start --class editor -- $HOME/.local/bin/lvim"
|
||||
|
||||
### "bat" as manpager
|
||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
|
||||
# use bash-completion, if available
|
||||
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
|
||||
|
@ -17,10 +22,7 @@ export HISTCONTROL=ignoredups:erasedups # no duplicate entries
|
|||
[[ $- != *i* ]] && return
|
||||
|
||||
# use neovim for vim if present.
|
||||
[ -x "$(command -v lvim)" ] && alias vim="lvim" vimdiff="lvim -d"
|
||||
|
||||
# use $XINITRC variable if file exists.
|
||||
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
|
||||
[ -x "$(command -v $HOME/.local/bin/lvim)" ] && alias vim="lvim"
|
||||
|
||||
### SET VI MODE ###
|
||||
# Comment this line out to enable default emacs-like bindings
|
||||
|
@ -38,9 +40,6 @@ fi
|
|||
if [ -d "$HOME/Applications" ] ;
|
||||
then PATH="$HOME/Applications:$PATH"
|
||||
fi
|
||||
if [ -d "$HOME/.config/emacs/bin" ] ;
|
||||
then PATH="$HOME/.config/emacs/bin:$PATH"
|
||||
fi
|
||||
|
||||
### CHANGE TITLE OF TERMINALS ###
|
||||
case ${TERM} in
|
||||
|
@ -128,6 +127,9 @@ alias \
|
|||
# bat as cat
|
||||
[ -x "$(command -v bat)" ] && alias cat="bat"
|
||||
|
||||
# pfetch as neofetch
|
||||
[ -x "$(command -v pfetch)" ] && alias neofetch="pfetch"
|
||||
|
||||
# Changing "ls" to "exa"
|
||||
alias \
|
||||
ls="exa -al --icons --color=always --group-directories-first" \
|
||||
|
@ -136,14 +138,14 @@ alias \
|
|||
lt="exa -aT --icons --color=always --group-directories-first" \
|
||||
l.='exa -a | grep -E "^\."'
|
||||
|
||||
# function to detect os and assign aliases to package managers
|
||||
# pacman
|
||||
alias \
|
||||
pac-up="paru -Syyu" \
|
||||
pac-up="paru -Syu" \
|
||||
pac-get="paru -S" \
|
||||
pac-rmv="paru -Rcns" \
|
||||
pac-rmv-sec="paru -R" \
|
||||
pac-qry="paru -Ss" \
|
||||
pac-cln="paru -Scc"
|
||||
pac-cln="paru -Scc && sudo pacman -Rns $(pacman -Qtdq)"
|
||||
|
||||
# colorize grep output (good for log files)
|
||||
alias \
|
||||
|
@ -153,27 +155,24 @@ alias \
|
|||
|
||||
# git
|
||||
alias \
|
||||
addup="git add -u" \
|
||||
addall="git add ." \
|
||||
branch="git branch" \
|
||||
checkout="git checkout" \
|
||||
clone="git clone" \
|
||||
commit="git commit -m" \
|
||||
fetch="git fetch" \
|
||||
pull="git pull origin" \
|
||||
push="git push origin" \
|
||||
stat="git status" \
|
||||
tag="git tag" \
|
||||
newtag="git tag -a"
|
||||
git-adu="git add -u" \
|
||||
git-adl="git add ." \
|
||||
git-brn="git branch" \
|
||||
git-chk="git checkout" \
|
||||
git-cln="git clone" \
|
||||
git-cmt="git commit -m" \
|
||||
git-fth="git fetch" \
|
||||
git-pll="git pull origin" \
|
||||
git-psh="git push origin" \
|
||||
git-sts="git status" \
|
||||
git-tag="git tag" \
|
||||
git-ntg="git tag -a"
|
||||
|
||||
# adding flags
|
||||
alias \
|
||||
df="df -h" \
|
||||
free="free -m"
|
||||
|
||||
# newsboat
|
||||
[ -x "$(command -v newsboat)" ] && alias newsboat="newsboat -u ~/.config/newsboat/urls"
|
||||
|
||||
# multimedia scripts
|
||||
alias \
|
||||
fli="flix-cli" \
|
||||
|
@ -196,10 +195,9 @@ alias \
|
|||
|
||||
# file management
|
||||
alias \
|
||||
fm="$HOME/.config/vifm/scripts/vifmrun" \
|
||||
file="$HOME/.config/vifm/scripts/vifmrun" \
|
||||
flm="$HOME/.config/vifm/scripts/vifmrun" \
|
||||
vifm="$HOME/.config/vifm/scripts/vifmrun" \
|
||||
fm="vifm" \
|
||||
file="vifm" \
|
||||
flm="vifm" \
|
||||
rm="rm -vI" \
|
||||
mv="mv -iv" \
|
||||
cp="cp -iv" \
|
||||
|
|
|
@ -1,447 +0,0 @@
|
|||
## ____ __
|
||||
## / __ \_________ _/ /_____
|
||||
## / / / / ___/ __ `/ //_/ _ \
|
||||
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
## /_____/_/ \__,_/_/|_|\___/ My custom alacritty config
|
||||
##
|
||||
|
||||
## Set colorschemes
|
||||
|
||||
#######################################
|
||||
## Alacritty colorschemes ##
|
||||
#######################################
|
||||
schemes:
|
||||
### Doom One ###
|
||||
doom-one: &doom-one
|
||||
primary:
|
||||
background: '#282c34'
|
||||
foreground: '#bbc2cf'
|
||||
cursor:
|
||||
text: CellBackground
|
||||
cursor: '#528bff'
|
||||
selection:
|
||||
text: CellForeground
|
||||
background: '#3e4451'
|
||||
normal:
|
||||
black: '#1c1f24'
|
||||
red: '#ff6c6b'
|
||||
green: '#98be65'
|
||||
yellow: '#da8548'
|
||||
blue: '#51afef'
|
||||
magenta: '#c678dd'
|
||||
cyan: '#5699af'
|
||||
white: '#202328'
|
||||
bright:
|
||||
black: '#5b6268'
|
||||
red: '#da8548'
|
||||
green: '#4db5bd'
|
||||
yellow: '#ecbe7b'
|
||||
blue: '#3071db' # This is 2257a0 in Doom Emacs but I lightened it.
|
||||
magenta: '#a9a1e1'
|
||||
cyan: '#46d9ff'
|
||||
white: '#dfdfdf'
|
||||
|
||||
### Tokyo Night ###
|
||||
tokyo-night: &tokyo-night
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#1a1b26'
|
||||
foreground: '#a9b1d6'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#32344a'
|
||||
red: '#f7768e'
|
||||
green: '#9ece6a'
|
||||
yellow: '#e0af68'
|
||||
blue: '#34548a'
|
||||
magenta: '#ad8ee6'
|
||||
cyan: '#449dab'
|
||||
white: '#9699a8'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#444b6a'
|
||||
red: '#ff7a93'
|
||||
green: '#b9f27c'
|
||||
yellow: '#ff9e64'
|
||||
blue: '#7da6ff'
|
||||
magenta: '#bb9af7'
|
||||
cyan: '#0db9d7'
|
||||
white: '#acb0d0'
|
||||
|
||||
|
||||
### Dracula ###
|
||||
dracula: &dracula
|
||||
primary:
|
||||
background: '#282a36'
|
||||
foreground: '#f8f8f2'
|
||||
cursor:
|
||||
text: CellBackground
|
||||
cursor: CellForeground
|
||||
vi_mode_cursor:
|
||||
text: CellBackground
|
||||
cursor: CellForeground
|
||||
search:
|
||||
matches:
|
||||
foreground: '#44475a'
|
||||
background: '#50fa7b'
|
||||
focused_match:
|
||||
foreground: '#44475a'
|
||||
background: '#ffb86c'
|
||||
bar:
|
||||
background: '#282a36'
|
||||
foreground: '#f8f8f2'
|
||||
line_indicator:
|
||||
foreground: None
|
||||
background: None
|
||||
selection:
|
||||
text: CellForeground
|
||||
background: '#44475a'
|
||||
normal:
|
||||
black: '#000000'
|
||||
red: '#ff5555'
|
||||
green: '#50fa7b'
|
||||
yellow: '#f1fa8c'
|
||||
blue: '#bd93f9'
|
||||
magenta: '#ff79c6'
|
||||
cyan: '#8be9fd'
|
||||
white: '#bfbfbf'
|
||||
bright:
|
||||
black: '#4d4d4d'
|
||||
red: '#ff6e67'
|
||||
green: '#5af78e'
|
||||
yellow: '#f4f99d'
|
||||
blue: '#caa9fa'
|
||||
magenta: '#ff92d0'
|
||||
cyan: '#9aedfe'
|
||||
white: '#e6e6e6'
|
||||
dim:
|
||||
black: '#14151b'
|
||||
red: '#ff2222'
|
||||
green: '#1ef956'
|
||||
yellow: '#ebf85b'
|
||||
blue: '#4d5b86'
|
||||
magenta: '#ff46b0'
|
||||
cyan: '#59dffc'
|
||||
white: '#e6e6d1'
|
||||
|
||||
### Gruvbox dark ###
|
||||
gruvbox-dark: &gruvbox-dark
|
||||
# Default colors
|
||||
primary:
|
||||
# hard contrast: background = '0x1d2021'
|
||||
background: '#1d2021'
|
||||
# soft contrast: background = '0x32302f'
|
||||
foreground: '#ebdbb2'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#282828'
|
||||
red: '#cc241d'
|
||||
green: '#98971a'
|
||||
yellow: '#d79921'
|
||||
blue: '#458588'
|
||||
magenta: '#b16286'
|
||||
cyan: '#689d6a'
|
||||
white: '#a89984'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#928374'
|
||||
red: '#fb4934'
|
||||
green: '#b8bb26'
|
||||
yellow: '#fabd2f'
|
||||
blue: '#83a598'
|
||||
magenta: '#d3869b'
|
||||
cyan: '#8ec07c'
|
||||
white: '#ebdbb2'
|
||||
|
||||
### Monokai ###
|
||||
monokai-pro: &monokai-pro
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#2D2A2E'
|
||||
foreground: '#FCFCFA'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#403E41'
|
||||
red: '#FF6188'
|
||||
green: '#A9DC76'
|
||||
yellow: '#FFD866'
|
||||
blue: '#FC9867'
|
||||
magenta: '#AB9DF2'
|
||||
cyan: '#78DCE8'
|
||||
white: '#FCFCFA'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#727072'
|
||||
red: '#FF6188'
|
||||
green: '#A9DC76'
|
||||
yellow: '#FFD866'
|
||||
blue: '#FC9867'
|
||||
magenta: '#AB9DF2'
|
||||
cyan: '#78DCE8'
|
||||
white: '#FCFCFA'
|
||||
|
||||
### Nord ###
|
||||
nord: &nord
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#2E3440'
|
||||
foreground: '#D8DEE9'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#3B4252'
|
||||
red: '#BF616A'
|
||||
green: '#A3BE8C'
|
||||
yellow: '#EBCB8B'
|
||||
blue: '#81A1C1'
|
||||
magenta: '#B48EAD'
|
||||
cyan: '#88C0D0'
|
||||
white: '#E5E9F0'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#4C566A'
|
||||
red: '#BF616A'
|
||||
green: '#A3BE8C'
|
||||
yellow: '#EBCB8B'
|
||||
blue: '#81A1C1'
|
||||
magenta: '#B48EAD'
|
||||
cyan: '#8FBCBB'
|
||||
white: '#ECEFF4'
|
||||
|
||||
### Oceanic Next ###
|
||||
oceanic-next: &oceanic-next
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#1b2b34'
|
||||
foreground: '#d8dee9'
|
||||
|
||||
# Colors the cursor will use if `custom_cursor_colors` is true
|
||||
cursor:
|
||||
text: '#1b2b34'
|
||||
cursor: '#ffffff'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#343d46'
|
||||
red: '#EC5f67'
|
||||
green: '#99C794'
|
||||
yellow: '#FAC863'
|
||||
blue: '#6699cc'
|
||||
magenta: '#c594c5'
|
||||
cyan: '#5fb3b3'
|
||||
white: '#d8dee9'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#343d46'
|
||||
red: '#EC5f67'
|
||||
green: '#99C794'
|
||||
yellow: '#FAC863'
|
||||
blue: '#6699cc'
|
||||
magenta: '#c594c5'
|
||||
cyan: '#5fb3b3'
|
||||
white: '#d8dee9'
|
||||
|
||||
### Palenight ###
|
||||
palenight: &palenight
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#292d3e'
|
||||
foreground: '#d0d0d0'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#292d3e'
|
||||
red: '#f07178'
|
||||
green: '#c3e88d'
|
||||
yellow: '#ffcb6b'
|
||||
blue: '#82aaff'
|
||||
magenta: '#c792ea'
|
||||
cyan: '#89ddff'
|
||||
white: '#d0d0d0'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#434758'
|
||||
red: '#ff8b92'
|
||||
green: '#ddffa7'
|
||||
yellow: '#ffe585'
|
||||
blue: '#9cc4ff'
|
||||
magenta: '#e1acff'
|
||||
cyan: '#a3f7ff'
|
||||
white: '#ffffff'
|
||||
|
||||
### Solarized Dark ###
|
||||
solarized-dark: &solarized-dark
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#002b36' # base03
|
||||
foreground: '#839496' # base0
|
||||
|
||||
# Cursor colors
|
||||
cursor:
|
||||
text: '#002b36' # base03
|
||||
cursor: '#839496' # base0
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#073642' # base02
|
||||
red: '#dc322f' # red
|
||||
green: '#859900' # green
|
||||
yellow: '#b58900' # yellow
|
||||
blue: '#268bd2' # blue
|
||||
magenta: '#d33682' # magenta
|
||||
cyan: '#2aa198' # cyan
|
||||
white: '#eee8d5' # base2
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#002b36' # base03
|
||||
red: '#cb4b16' # orange
|
||||
green: '#586e75' # base01
|
||||
yellow: '#657b83' # base00
|
||||
blue: '#839496' # base0
|
||||
magenta: '#6c71c4' # violet
|
||||
cyan: '#93a1a1' # base1
|
||||
white: '#fdf6e3' # base3
|
||||
|
||||
### Solarized Light ###
|
||||
solarized-light: &solarized-light
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#fdf6e3' # base3
|
||||
foreground: '#657b83' # base00
|
||||
|
||||
# Cursor colors
|
||||
cursor:
|
||||
text: '#fdf6e3' # base3
|
||||
cursor: '#657b83' # base00
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#073642' # base02
|
||||
red: '#dc322f' # red
|
||||
green: '#859900' # green
|
||||
yellow: '#b58900' # yellow
|
||||
blue: '#268bd2' # blue
|
||||
magenta: '#d33682' # magenta
|
||||
cyan: '#2aa198' # cyan
|
||||
white: '#eee8d5' # base2
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#002b36' # base03
|
||||
red: '#cb4b16' # orange
|
||||
green: '#586e75' # base01
|
||||
yellow: '#657b83' # base00
|
||||
blue: '#839496' # base0
|
||||
magenta: '#6c71c4' # violet
|
||||
cyan: '#93a1a1' # base1
|
||||
white: '#fdf6e3' # base3
|
||||
|
||||
### Tomorrow Night ###
|
||||
tomorrow-night: &tomorrow-night
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#1d1f21'
|
||||
foreground: '#c5c8c6'
|
||||
|
||||
# Colors the cursor will use if `custom_cursor_colors` is true
|
||||
cursor:
|
||||
text: '#1d1f21'
|
||||
cursor: '#ffffff'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#1d1f21'
|
||||
red: '#cc6666'
|
||||
green: '#b5bd68'
|
||||
yellow: '#e6c547'
|
||||
blue: '#81a2be'
|
||||
magenta: '#b294bb'
|
||||
cyan: '#70c0ba'
|
||||
white: '#373b41'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#666666'
|
||||
red: '#ff3334'
|
||||
green: '#9ec400'
|
||||
yellow: '#f0c674'
|
||||
blue: '#81a2be'
|
||||
magenta: '#b77ee0'
|
||||
cyan: '#54ced6'
|
||||
white: '#282a2e'
|
||||
|
||||
colors: *gruvbox-dark
|
||||
|
||||
## Set environment variables
|
||||
env:
|
||||
TERM: xterm-256color
|
||||
|
||||
## Window settigns
|
||||
window:
|
||||
opacity: 0.95
|
||||
padding:
|
||||
x: 6
|
||||
y: 6
|
||||
dynamic_padding: false
|
||||
title: Alacritty
|
||||
class:
|
||||
instance: Alacritty
|
||||
general: Alacritty
|
||||
dimensions:
|
||||
columns: 160
|
||||
lines: 44
|
||||
|
||||
## Scrolling settings
|
||||
scrolling:
|
||||
history: 5000
|
||||
|
||||
## Font settings
|
||||
font:
|
||||
normal:
|
||||
family: mononoki Nerd Font
|
||||
style: Regular
|
||||
bold:
|
||||
family: mononoki Nerd Font
|
||||
style: Bold
|
||||
italic:
|
||||
family: mononoki Nerd Font
|
||||
style: Italic
|
||||
bold_italic:
|
||||
family: mononoki Nerd Font
|
||||
style: Bold Italic
|
||||
size: 8
|
||||
offset:
|
||||
x: 0
|
||||
y: 1
|
||||
draw_bold_text_with_bright_colors: true
|
||||
|
||||
cursor:
|
||||
style: Underline
|
||||
|
||||
shell:
|
||||
program: /bin/fish
|
||||
|
||||
key_bindings:
|
||||
# (Windows, Linux, and BSD only)
|
||||
- { key: V, mods: Control|Shift, action: Paste }
|
||||
- { key: C, mods: Control|Shift, action: Copy }
|
||||
- { key: Insert, mods: Shift, action: PasteSelection }
|
||||
- { key: Key0, mods: Control, action: ResetFontSize }
|
||||
- { key: Equals, mods: Control, action: IncreaseFontSize }
|
||||
- { key: Plus, mods: Control, action: IncreaseFontSize }
|
||||
- { key: Minus, mods: Control, action: DecreaseFontSize }
|
||||
- { key: F11, mods: None, action: ToggleFullscreen }
|
||||
- { key: L, mods: Control, action: ClearLogNotice }
|
||||
- { key: L, mods: Control, chars: "\x0c" }
|
||||
- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt }
|
||||
- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt }
|
|
@ -1,28 +0,0 @@
|
|||
-- Apps config, see keymaps/keyboard.lua to see how this is handled in keybindings
|
||||
local apps = {
|
||||
terminal = "wezterm", -- Selected terminal emulator
|
||||
-- Rofi settings
|
||||
drunner = "rofi -show drun -show-icons", -- Desktop runner
|
||||
runner = "rofi -show run", -- Normal runner
|
||||
runner_power = "$HOME/.config/rofi/scripts/rofi_power", -- Power manager
|
||||
runner_wifi = "$HOME/.config/rofi/scripts/rofi_wifi", -- Wifi manager
|
||||
runner_scrot = "$HOME/.config/rofi/scripts/rofi_scrot", -- Screenshots manager
|
||||
runner_emoji = "$HOME/.config/rofi/scripts/rofi_emoji", -- Emojis manager
|
||||
runner_wall = "$HOME/.config/rofi/scripts/rofi_wall", -- Wallpapers manager
|
||||
-- Other scripts
|
||||
ytfzf = "wezterm start --class ytfzf -- ytfzf -flstT chafa", -- Youtube
|
||||
ytfzf_music = "wezterm start --class ytfzf_music -- ytfzf -mlstT chafa", -- Youtube Music
|
||||
ani_cli = "wezterm start --class ani-cli -- ani-cli", -- Anime
|
||||
flix_cli = "wezterm start --class flix-cli -- flix-cli", -- Movies
|
||||
tut = "wezterm start --class tut -- tut", -- Mastodon
|
||||
newsboat = "wezterm start --class newsboat -- newsboat -u ~/.config/newsboat/urls", -- Newsboat
|
||||
-- Selected apps
|
||||
editor = "neovide --neovim-bin ./.local/bin/lvim", -- TAG 1
|
||||
file = "wezterm start --class vifm -- ./.config/vifm/scripts/vifmrun", -- TAG 2
|
||||
browser = "firefox", -- TAG 3
|
||||
chat = "revolt-desktop", -- TAG 4
|
||||
music = "wezterm start --class cmus -- cmus", -- TAG 5
|
||||
office = "libreoffice", -- TAG 8
|
||||
game = "retroarch" -- TAG 9
|
||||
}
|
||||
return apps
|
|
@ -1,21 +0,0 @@
|
|||
local awful = require("awful")
|
||||
-- Session manager
|
||||
awful.util.spawn_with_shell(
|
||||
"lxpolkit &"
|
||||
)
|
||||
-- Wallpapers manager
|
||||
awful.util.spawn_with_shell(
|
||||
"$HOME/.fehbg &"
|
||||
)
|
||||
-- Automatically hide the cursor
|
||||
awful.util.spawn_with_shell(
|
||||
"unclutter --hide-on-touch &"
|
||||
)
|
||||
-- Compositor
|
||||
awful.util.spawn_with_shell(
|
||||
"picom --experimental-backends --config ~/.config/picom/picom.conf &"
|
||||
)
|
||||
-- Power manager
|
||||
awful.util.spawn_with_shell(
|
||||
"xfce4-power-manager &"
|
||||
)
|
|
@ -1,35 +0,0 @@
|
|||
local naughty = require("naughty")
|
||||
local ruled = require("ruled")
|
||||
local beautiful = require("beautiful")
|
||||
|
||||
-- {{{ Error handling
|
||||
naughty.connect_signal(
|
||||
"request::display_error",
|
||||
function(message, startup)
|
||||
naughty.notification {
|
||||
urgency = "critical",
|
||||
title = "Oops, an error happened".. ( startup and " during startup!" or "!" ),
|
||||
message = message
|
||||
}
|
||||
end
|
||||
)
|
||||
-- }}}
|
||||
|
||||
-- {{{ Signals
|
||||
-- No borders when rearranging only 1 non-floating or maximized client
|
||||
screen.connect_signal(
|
||||
"arrange",
|
||||
function (s)
|
||||
local max = s.selected_tag.layout.name == "max"
|
||||
local only_one = #s.tiled_clients == 1 -- use tiled_clients so that other floating windows don't affect the count
|
||||
-- but iterate over clients instead of tiled_clients as tiled_clients doesn't include maximized windows
|
||||
for _, c in pairs(s.clients) do
|
||||
if (max or only_one) and not c.floating or c.maximized then
|
||||
c.border_width = 0
|
||||
else
|
||||
c.border_width = beautiful.border_width
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
||||
-- }}}
|
|
@ -1,723 +0,0 @@
|
|||
local awful = require("awful")
|
||||
local hotkeys_popup = require("awful.hotkeys_popup"); require("awful.hotkeys_popup.keys")
|
||||
local apps = require("apps")
|
||||
require("awful.autofocus")
|
||||
|
||||
-- Modkeys.
|
||||
altkey = "Mod1"
|
||||
modkey = "Mod4"
|
||||
conkey = "Control"
|
||||
shikey = "Shift"
|
||||
|
||||
--[[ Main keybinds ]]--
|
||||
awful.keyboard.append_global_keybindings(
|
||||
{
|
||||
-- Show the help menu
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"s",
|
||||
hotkeys_popup.show_help,
|
||||
{ description =
|
||||
"Show Help Menu",
|
||||
group =
|
||||
"Main keybinds"
|
||||
}
|
||||
),
|
||||
-- Reload awesome
|
||||
awful.key(
|
||||
{ modkey, conkey },
|
||||
"r",
|
||||
awesome.restart,
|
||||
{ description =
|
||||
"Reload Awesome",
|
||||
group =
|
||||
"Main keybinds"
|
||||
}
|
||||
),
|
||||
-- Open a terminal
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"Return",
|
||||
function ()
|
||||
awful.spawn(apps.terminal)
|
||||
end,
|
||||
{ description =
|
||||
"Open a terminal",
|
||||
group =
|
||||
"Main keybinds"
|
||||
}
|
||||
),
|
||||
}
|
||||
)
|
||||
--[[ ]]--
|
||||
|
||||
--[[ Tags related keybindings ]]--
|
||||
awful.keyboard.append_global_keybindings(
|
||||
{
|
||||
-- Switch to previous tag
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"Left",
|
||||
awful.tag.viewprev,
|
||||
{ description =
|
||||
"Quickly switch to previous tag",
|
||||
group =
|
||||
"Tag keybinds"
|
||||
}
|
||||
),
|
||||
-- Switch to next tag
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"Right",
|
||||
awful.tag.viewnext,
|
||||
{ description =
|
||||
"Quickly switch to next tag",
|
||||
group =
|
||||
"Tag keybinds"
|
||||
}
|
||||
),
|
||||
-- Switch back to the previous tag
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"Escape",
|
||||
awful.tag.history.restore,
|
||||
{ description =
|
||||
"Go back to previus tag (from history)",
|
||||
group =
|
||||
"Tag keybinds"
|
||||
}
|
||||
),
|
||||
-- Switch tags by numbers 1-9
|
||||
awful.key {
|
||||
modifiers = { modkey },
|
||||
keygroup = "numrow",
|
||||
description = "Switch tags with number keys from {1 to 9}",
|
||||
group = "Tag keybinds",
|
||||
on_press = function (index)
|
||||
local screen = awful.screen.focused()
|
||||
local tag = screen.tags[index]
|
||||
if tag then
|
||||
tag:view_only()
|
||||
end
|
||||
end,
|
||||
},
|
||||
-- Toggle tags by numbers 1-9
|
||||
awful.key {
|
||||
modifiers = { modkey, conkey },
|
||||
keygroup = "numrow",
|
||||
description = "Quickly view contents in another tag with number keys from {1 to 9}",
|
||||
group = "Tag keybinds",
|
||||
on_press = function (index)
|
||||
local screen = awful.screen.focused()
|
||||
local tag = screen.tags[index]
|
||||
if tag then
|
||||
awful.tag.viewtoggle(tag)
|
||||
end
|
||||
end,
|
||||
},
|
||||
-- Move focused window to tag by numbers 1-9
|
||||
awful.key {
|
||||
modifiers = { modkey, shikey },
|
||||
keygroup = "numrow",
|
||||
description = "Move focused window to another tag with number keys from {1 to 9}",
|
||||
group = "Tag keybinds",
|
||||
on_press = function (index)
|
||||
if client.focus then
|
||||
local tag = client.focus.screen.tags[index]
|
||||
if tag then
|
||||
client.focus:move_to_tag(tag)
|
||||
end
|
||||
end
|
||||
end,
|
||||
},
|
||||
-- Toggle focused window on tag by numbers 1-9
|
||||
awful.key {
|
||||
modifiers = { modkey, conkey, shikey },
|
||||
keygroup = "numrow",
|
||||
description = "View focused window on more than one tag with number keys from {1 to 9}",
|
||||
group = "Tag keybinds",
|
||||
on_press = function (index)
|
||||
if client.focus then
|
||||
local tag = client.focus.screen.tags[index]
|
||||
if tag then
|
||||
client.focus:toggle_tag(tag)
|
||||
end
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
)
|
||||
--[[ ]]--
|
||||
|
||||
--[[ Focus related keybindings ]]--
|
||||
awful.keyboard.append_global_keybindings(
|
||||
{
|
||||
-- Focus next window by index
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"j",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
end,
|
||||
{ description =
|
||||
"Focus the next window by index",
|
||||
group =
|
||||
"Focus keybinds"
|
||||
}
|
||||
),
|
||||
-- Focus previous window by index
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"k",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
end,
|
||||
{ description =
|
||||
"Focus the previous window by index",
|
||||
group =
|
||||
"Focus keybinds"
|
||||
}
|
||||
),
|
||||
-- Focus last focused window
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"Tab",
|
||||
function ()
|
||||
awful.client.focus.history.previous()
|
||||
if client.focus then
|
||||
client.focus:raise()
|
||||
end
|
||||
end,
|
||||
{ description =
|
||||
"Focus back the previous focused window",
|
||||
group =
|
||||
"Focus keybinds"
|
||||
}
|
||||
),
|
||||
-- Focus next screen
|
||||
awful.key(
|
||||
{ modkey, conkey },
|
||||
"j",
|
||||
function ()
|
||||
awful.screen.focus_relative(1)
|
||||
end,
|
||||
{ description =
|
||||
"Focus the next screen",
|
||||
group =
|
||||
"Focus keybinds"
|
||||
}
|
||||
),
|
||||
-- Focus previous screen
|
||||
awful.key(
|
||||
{ modkey, conkey },
|
||||
"k",
|
||||
function ()
|
||||
awful.screen.focus_relative(-1)
|
||||
end,
|
||||
{ description =
|
||||
"Focus the previous screen",
|
||||
group =
|
||||
"Focus keybinds"
|
||||
}
|
||||
),
|
||||
}
|
||||
)
|
||||
--[[ ]]--
|
||||
|
||||
--[[ Layout keybinds ]]--
|
||||
awful.keyboard.append_global_keybindings(
|
||||
{
|
||||
-- Swap with next window by index
|
||||
awful.key(
|
||||
{ modkey, shikey },
|
||||
"j",
|
||||
function ()
|
||||
awful.client.swap.byidx(1)
|
||||
end,
|
||||
{ description =
|
||||
"Swap with next window in current layout by index",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
-- Swap with previous window by index
|
||||
awful.key(
|
||||
{ modkey, shikey },
|
||||
"k",
|
||||
function ()
|
||||
awful.client.swap.byidx(-1)
|
||||
end,
|
||||
{ description =
|
||||
"Swap with previous window in current layout by index",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
-- Increase master width
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"l",
|
||||
function ()
|
||||
awful.tag.incmwfact(0.05)
|
||||
end,
|
||||
{ description =
|
||||
"Increase master window width size",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
-- Decrease master width
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"h",
|
||||
function ()
|
||||
awful.tag.incmwfact(-0.05)
|
||||
end,
|
||||
{ description =
|
||||
"Decrease master window width size",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
-- Increase the number of master window
|
||||
awful.key(
|
||||
{ modkey, shikey },
|
||||
"h",
|
||||
function ()
|
||||
awful.tag.incnmaster(1, nil, true)
|
||||
end,
|
||||
{ description =
|
||||
"Increase the number of master windows",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
-- Decrease the number of master windows
|
||||
awful.key(
|
||||
{ modkey, shikey },
|
||||
"l",
|
||||
function ()
|
||||
awful.tag.incnmaster(-1, nil, true)
|
||||
end,
|
||||
{ description =
|
||||
"Decrease the number of master windows",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
-- Increase the number of columns
|
||||
awful.key(
|
||||
{ modkey, conkey },
|
||||
"h",
|
||||
function ()
|
||||
awful.tag.incncol(1, nil, true)
|
||||
end,
|
||||
{ description =
|
||||
"Increase the number of columns in layout",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
-- Decrease the number of columns
|
||||
awful.key(
|
||||
{ modkey, conkey },
|
||||
"l",
|
||||
function ()
|
||||
awful.tag.incncol(-1, nil, true)
|
||||
end,
|
||||
{ description =
|
||||
"Decrease the number of columns in layout",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
-- Switch to next layout
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"space",
|
||||
function ()
|
||||
awful.layout.inc(1)
|
||||
end,
|
||||
{ description =
|
||||
"Switch to the next layout",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
-- Switch to previous layout
|
||||
awful.key(
|
||||
{ modkey, shikey },
|
||||
"space",
|
||||
function ()
|
||||
awful.layout.inc(-1)
|
||||
end,
|
||||
{ description =
|
||||
"Switch to previous layout",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
-- Select layouts directly
|
||||
awful.key {
|
||||
modifiers = { modkey },
|
||||
keygroup = "numpad",
|
||||
description = "Select layouts directly using the numpad",
|
||||
group = "layout",
|
||||
on_press = function (index)
|
||||
local t = awful.screen.focused().selected_tag
|
||||
if t then
|
||||
t.layout = t.layouts[index] or t.layout
|
||||
end
|
||||
end,
|
||||
},
|
||||
-- Show/Hide Wibox
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"b",
|
||||
function ()
|
||||
for s in screen do
|
||||
s.mywibox.visible = not s.mywibox.visible
|
||||
if s.mybottomwibox then
|
||||
s.mybottomwibox.visible = not s.mybottomwibox.visible
|
||||
end
|
||||
end
|
||||
end,
|
||||
{ description =
|
||||
"Toggle the bar",
|
||||
group =
|
||||
"Layout keybinds"
|
||||
}
|
||||
),
|
||||
}
|
||||
)
|
||||
--[[ ]]--
|
||||
|
||||
--[[ Window keybinds ]]--
|
||||
client.connect_signal(
|
||||
"request::default_keybindings",
|
||||
function()
|
||||
awful.keyboard.append_client_keybindings(
|
||||
{
|
||||
-- Set focused window to fullscreen
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"f",
|
||||
function (c)
|
||||
c.fullscreen = not c.fullscreen
|
||||
c:raise()
|
||||
end,
|
||||
{ description =
|
||||
"Toggle fullscreen",
|
||||
group =
|
||||
"Window keybinds"
|
||||
}
|
||||
),
|
||||
-- Close focused window
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"q",
|
||||
function (c)
|
||||
c:kill()
|
||||
end,
|
||||
{ description =
|
||||
"Close focused window",
|
||||
group =
|
||||
"Window keybinds" }
|
||||
),
|
||||
-- Toggle floating mode on focused window
|
||||
awful.key(
|
||||
{ modkey, conkey },
|
||||
"space",
|
||||
awful.client.floating.toggle,
|
||||
{ description =
|
||||
"Toggle floating mode on focused window",
|
||||
group =
|
||||
"Window keybinds"
|
||||
}
|
||||
),
|
||||
-- Move focused window to master
|
||||
awful.key(
|
||||
{ modkey, conkey },
|
||||
"Return",
|
||||
function (c)
|
||||
c:swap(
|
||||
awful.client.getmaster()
|
||||
)
|
||||
end,
|
||||
{ description =
|
||||
"Move focused window to master",
|
||||
group =
|
||||
"Window keybinds"
|
||||
}
|
||||
),
|
||||
-- Move focused window to the other screen
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"o",
|
||||
function (c)
|
||||
c:move_to_screen()
|
||||
end,
|
||||
{ description =
|
||||
"Move focused window to the next screen",
|
||||
group =
|
||||
"Window keybinds"
|
||||
}
|
||||
),
|
||||
-- Toggle focused window to be on top
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"t",
|
||||
function (c)
|
||||
c.ontop = not c.ontop
|
||||
end,
|
||||
{ description =
|
||||
"Toggle keep on top for focused window",
|
||||
group =
|
||||
"Window keybinds"
|
||||
}
|
||||
),
|
||||
-- Jump to urgent window
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"u",
|
||||
awful.client.urgent.jumpto,
|
||||
{ description =
|
||||
"Quickly jump to urgent window",
|
||||
group =
|
||||
"Window keybinds"
|
||||
}
|
||||
),
|
||||
}
|
||||
)
|
||||
end
|
||||
)
|
||||
--[[ ]]--
|
||||
|
||||
--[[ Quick keybinds ]]
|
||||
awful.keyboard.append_global_keybindings(
|
||||
{
|
||||
-- Volume
|
||||
awful.key(
|
||||
{ },
|
||||
"XF86AudioRaiseVolume",
|
||||
function()
|
||||
awful.spawn("pamixer -i 5")
|
||||
end,
|
||||
{ description =
|
||||
"Increase volume by +5%",
|
||||
group =
|
||||
"Quick keybinds"
|
||||
}
|
||||
),
|
||||
awful.key(
|
||||
{ },
|
||||
"XF86AudioLowerVolume",
|
||||
function()
|
||||
awful.spawn("pamixer -d 5")
|
||||
end,
|
||||
{ description =
|
||||
"Decrease volume by +5%",
|
||||
group =
|
||||
"Quick keybinds"
|
||||
}
|
||||
),
|
||||
awful.key(
|
||||
{ },
|
||||
"XF86AudioMute",
|
||||
function()
|
||||
awful.spawn("pamixer -t")
|
||||
end,
|
||||
{ description =
|
||||
"Mute volume",
|
||||
group =
|
||||
"Quick keybinds"
|
||||
}
|
||||
),
|
||||
awful.key(
|
||||
{ },
|
||||
"XF86AudioMicMute",
|
||||
function()
|
||||
awful.spawn("pamixer --default-source -t")
|
||||
end,
|
||||
{ description =
|
||||
"Mute microphone",
|
||||
group =
|
||||
"Quick keybinds"
|
||||
}
|
||||
),
|
||||
-- Brightness
|
||||
awful.key(
|
||||
{ },
|
||||
"XF86MonBrightnessUp",
|
||||
function ()
|
||||
awful.spawn("xbacklight -inc 10")
|
||||
end,
|
||||
{ description =
|
||||
"Increase brightness by +10%",
|
||||
group =
|
||||
"Quick keybinds"
|
||||
}
|
||||
),
|
||||
awful.key(
|
||||
{ },
|
||||
"XF86MonBrightnessDown",
|
||||
function ()
|
||||
awful.spawn("xbacklight -dec 10")
|
||||
end,
|
||||
{ description =
|
||||
"Decrease brightness by +10%",
|
||||
group =
|
||||
"Quick keybinds"
|
||||
}
|
||||
),
|
||||
-- Display configuration
|
||||
awful.key(
|
||||
{ },
|
||||
"XF86Display",
|
||||
function ()
|
||||
awful.spawn("arandr")
|
||||
end,
|
||||
{ description =
|
||||
"Configure the display using arandr",
|
||||
group = "Quick keybinds"
|
||||
}
|
||||
),
|
||||
-- Apps (Super + a followed by KEY)
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"a",
|
||||
function()
|
||||
local grabber
|
||||
grabber =
|
||||
awful.keygrabber.run(
|
||||
function(_, key, event)
|
||||
if event == "release" then
|
||||
return
|
||||
end
|
||||
if key == "1" then
|
||||
awful.util.spawn(apps.editor) -- TAG 1
|
||||
elseif key == "2" then
|
||||
awful.util.spawn(apps.file) -- TAG 2
|
||||
elseif key == "3" then
|
||||
awful.util.spawn(apps.browser) -- TAG 3
|
||||
elseif key == "4" then
|
||||
awful.util.spawn(apps.chat) -- TAG 4
|
||||
elseif key == "5" then
|
||||
awful.util.spawn(apps.music) -- TAG 5
|
||||
elseif key == "8" then
|
||||
awful.util.spawn(apps.office) -- TAG 8
|
||||
elseif key == "9" then
|
||||
awful.util.spawn(apps.game) -- TAG 9
|
||||
end
|
||||
awful.keygrabber.stop(grabber)
|
||||
end
|
||||
)
|
||||
end,
|
||||
{ description =
|
||||
"Launch apps with {Super + a} keychord and then numbers from {1 to 9}",
|
||||
group =
|
||||
"Quick keybinds"
|
||||
}
|
||||
),
|
||||
-- Keyboard layouts (Super + x followed by KEY)
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"x",
|
||||
function()
|
||||
local grabber
|
||||
grabber =
|
||||
awful.keygrabber.run(
|
||||
function(_, key, event)
|
||||
if event == "release" then
|
||||
return
|
||||
end
|
||||
if key == "e" then
|
||||
awful.util.spawn("setxkbmap es")
|
||||
elseif key == "u" then
|
||||
awful.util.spawn("setxkbmap us")
|
||||
end
|
||||
awful.keygrabber.stop(grabber)
|
||||
end
|
||||
)
|
||||
end,
|
||||
{ description =
|
||||
"Change keyboard layout with {Super + x} keychord and then {e} for spanish and {u} for english",
|
||||
group =
|
||||
"Quick keybinds"
|
||||
}
|
||||
),
|
||||
-- Runners (Super + p followed by KEY)
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"p",
|
||||
function()
|
||||
local grabber
|
||||
grabber =
|
||||
awful.keygrabber.run(
|
||||
function(_, key, event)
|
||||
if event == "release" then
|
||||
return
|
||||
end
|
||||
if key == "d" then
|
||||
awful.util.spawn(apps.drunner)
|
||||
elseif key == "r" then
|
||||
awful.util.spawn(apps.runner)
|
||||
elseif key == "q" then
|
||||
awful.spawn.with_shell(apps.runner_power)
|
||||
elseif key == "i" then
|
||||
awful.spawn.with_shell(apps.runner_wifi)
|
||||
elseif key == "s" then
|
||||
awful.spawn.with_shell(apps.runner_scrot)
|
||||
elseif key == "z" then
|
||||
awful.spawn.with_shell(apps.runner_emoji)
|
||||
elseif key == "w" then
|
||||
awful.spawn.with_shell(apps.runner_wall)
|
||||
end
|
||||
awful.keygrabber.stop(grabber)
|
||||
end
|
||||
)
|
||||
end,
|
||||
{ description =
|
||||
"Launch quick action menus with {Super + p} keychord and then {d, r, e, q, i, b, s, z, w}",
|
||||
group =
|
||||
"Quick keybinds" }
|
||||
),
|
||||
-- Multimedia scripts (Super + t followed by KEY)
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"t",
|
||||
function()
|
||||
local grabber
|
||||
grabber =
|
||||
awful.keygrabber.run(
|
||||
function(_, key, event)
|
||||
if event == "release" then
|
||||
return
|
||||
end
|
||||
if key == "y" then
|
||||
awful.util.spawn(apps.ytfzf)
|
||||
elseif key == "y" then
|
||||
awful.util.spawn(apps.ytfzf_music)
|
||||
elseif key == "a" then
|
||||
awful.util.spawn(apps.ani_cli)
|
||||
elseif key == "f" then
|
||||
awful.util.spawn(apps.flix_cli)
|
||||
elseif key == "t" then
|
||||
awful.util.spawn(apps.tut)
|
||||
elseif key == "n" then
|
||||
awful.util.spawn(apps.newsboat)
|
||||
end
|
||||
awful.keygrabber.stop(grabber)
|
||||
end
|
||||
)
|
||||
end,
|
||||
{ description =
|
||||
"Launch multimedia terminal scripts with {Super + t} and then {m, y, a, f}",
|
||||
group =
|
||||
"Quick keybinds"
|
||||
}
|
||||
),
|
||||
}
|
||||
)
|
||||
--[[ ]]
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
local awful = require("awful")
|
||||
-- Window related mouse bindings
|
||||
client.connect_signal(
|
||||
"request::default_mousebindings",
|
||||
function()
|
||||
awful.mouse.append_client_mousebindings(
|
||||
{
|
||||
awful.button(
|
||||
{ },
|
||||
1,
|
||||
function(c)
|
||||
c:activate {context = "mouse_click"}
|
||||
end
|
||||
),
|
||||
awful.button(
|
||||
{ modkey },
|
||||
1,
|
||||
function(c)
|
||||
c:activate {context = "mouse_click", action = "mouse_move"}
|
||||
end
|
||||
),
|
||||
awful.button(
|
||||
{ modkey },
|
||||
3,
|
||||
function(c)
|
||||
c:activate {context = "mouse_click", action = "mouse_resize"}
|
||||
end
|
||||
)
|
||||
}
|
||||
)
|
||||
end
|
||||
)
|
||||
-- Mouse bindings on desktop
|
||||
awful.mouse.append_global_mousebindings(
|
||||
{
|
||||
awful.button(
|
||||
{ },
|
||||
4,
|
||||
awful.tag.viewprev
|
||||
),
|
||||
awful.button(
|
||||
{ },
|
||||
5,
|
||||
awful.tag.viewnext
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
-- Enable sloppy focus, so that focus follows mouse.
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
c:emit_signal("request::activate", "mouse_enter", {raise = false})
|
||||
end)
|
|
@ -1,264 +0,0 @@
|
|||
local floor = math.floor
|
||||
local max = math.max
|
||||
local mouse = mouse
|
||||
local mousegrabber = mousegrabber
|
||||
local screen = screen
|
||||
|
||||
local centerwork = {
|
||||
name = "centerwork",
|
||||
horizontal = { name = "centerworkh" }
|
||||
}
|
||||
|
||||
local function arrange(p, layout)
|
||||
local t = p.tag or screen[p.screen].selected_tag
|
||||
local wa = p.workarea
|
||||
local cls = p.clients
|
||||
|
||||
if #cls == 0 then return end
|
||||
|
||||
local g = {}
|
||||
|
||||
-- Main column, fixed width and height
|
||||
local mwfact = t.master_width_factor
|
||||
local mainhei = floor(wa.height * mwfact)
|
||||
local mainwid = floor(wa.width * mwfact)
|
||||
local slavewid = wa.width - mainwid
|
||||
local slaveLwid = floor(slavewid / 2)
|
||||
local slaveRwid = slavewid - slaveLwid
|
||||
local slavehei = wa.height - mainhei
|
||||
local slaveThei = floor(slavehei / 2)
|
||||
local slaveBhei = slavehei - slaveThei
|
||||
local nbrFirstSlaves = floor(#cls / 2)
|
||||
local nbrSecondSlaves = floor((#cls - 1) / 2)
|
||||
|
||||
local slaveFirstDim, slaveSecondDim = 0, 0
|
||||
|
||||
if layout.name == "centerwork" then -- vertical
|
||||
if nbrFirstSlaves > 0 then slaveFirstDim = floor(wa.height / nbrFirstSlaves) end
|
||||
if nbrSecondSlaves > 0 then slaveSecondDim = floor(wa.height / nbrSecondSlaves) end
|
||||
|
||||
g.height = wa.height
|
||||
g.width = mainwid
|
||||
|
||||
g.x = wa.x + slaveLwid
|
||||
g.y = wa.y
|
||||
else -- horizontal
|
||||
if nbrFirstSlaves > 0 then slaveFirstDim = floor(wa.width / nbrFirstSlaves) end
|
||||
if nbrSecondSlaves > 0 then slaveSecondDim = floor(wa.width / nbrSecondSlaves) end
|
||||
|
||||
g.height = mainhei
|
||||
g.width = wa.width
|
||||
|
||||
g.x = wa.x
|
||||
g.y = wa.y + slaveThei
|
||||
end
|
||||
|
||||
g.width = max(g.width, 1)
|
||||
g.height = max(g.height, 1)
|
||||
|
||||
p.geometries[cls[1]] = g
|
||||
|
||||
-- Auxiliary clients
|
||||
if #cls <= 1 then return end
|
||||
for i = 2, #cls do
|
||||
g = {}
|
||||
local idxChecker, dimToAssign
|
||||
|
||||
local rowIndex = floor(i/2)
|
||||
|
||||
if layout.name == "centerwork" then
|
||||
if i % 2 == 0 then -- left slave
|
||||
g.x = wa.x
|
||||
g.y = wa.y + (rowIndex - 1) * slaveFirstDim
|
||||
g.width = slaveLwid
|
||||
|
||||
idxChecker, dimToAssign = nbrFirstSlaves, slaveFirstDim
|
||||
else -- right slave
|
||||
g.x = wa.x + slaveLwid + mainwid
|
||||
g.y = wa.y + (rowIndex - 1) * slaveSecondDim
|
||||
g.width = slaveRwid
|
||||
|
||||
idxChecker, dimToAssign = nbrSecondSlaves, slaveSecondDim
|
||||
end
|
||||
|
||||
-- if last slave in row, use remaining space for it
|
||||
if rowIndex == idxChecker then
|
||||
g.height = wa.y + wa.height - g.y
|
||||
else
|
||||
g.height = dimToAssign
|
||||
end
|
||||
else
|
||||
if i % 2 == 0 then -- top slave
|
||||
g.x = wa.x + (rowIndex - 1) * slaveFirstDim
|
||||
g.y = wa.y
|
||||
g.height = slaveThei
|
||||
|
||||
idxChecker, dimToAssign = nbrFirstSlaves, slaveFirstDim
|
||||
else -- bottom slave
|
||||
g.x = wa.x + (rowIndex - 1) * slaveSecondDim
|
||||
g.y = wa.y + slaveThei + mainhei
|
||||
g.height = slaveBhei
|
||||
|
||||
idxChecker, dimToAssign = nbrSecondSlaves, slaveSecondDim
|
||||
end
|
||||
|
||||
-- if last slave in row, use remaining space for it
|
||||
if rowIndex == idxChecker then
|
||||
g.width = wa.x + wa.width - g.x
|
||||
else
|
||||
g.width = dimToAssign
|
||||
end
|
||||
end
|
||||
|
||||
g.width = max(g.width, 1)
|
||||
g.height = max(g.height, 1)
|
||||
|
||||
p.geometries[cls[i]] = g
|
||||
end
|
||||
end
|
||||
|
||||
local function mouse_resize_handler(c, _, _, _, orientation)
|
||||
local wa = c.screen.workarea
|
||||
local mwfact = c.screen.selected_tag.master_width_factor
|
||||
local g = c:geometry()
|
||||
local offset = 0
|
||||
local cursor = "cross"
|
||||
|
||||
local corner_coords
|
||||
|
||||
if orientation == 'vertical' then
|
||||
if g.height + 15 >= wa.height then
|
||||
offset = g.height * .5
|
||||
cursor = "sb_h_double_arrow"
|
||||
elseif g.y + g.height + 15 <= wa.y + wa.height then
|
||||
offset = g.height
|
||||
end
|
||||
corner_coords = { x = wa.x + wa.width * (1 - mwfact) / 2, y = g.y + offset }
|
||||
else
|
||||
if g.width + 15 >= wa.width then
|
||||
offset = g.width * .5
|
||||
cursor = "sb_v_double_arrow"
|
||||
elseif g.x + g.width + 15 <= wa.x + wa.width then
|
||||
offset = g.width
|
||||
end
|
||||
corner_coords = { y = wa.y + wa.height * (1 - mwfact) / 2, x = g.x + offset }
|
||||
end
|
||||
|
||||
mouse.coords(corner_coords)
|
||||
|
||||
local prev_coords = {}
|
||||
|
||||
mousegrabber.run(function(m)
|
||||
if not c.valid then return false end
|
||||
for _, v in ipairs(m.buttons) do
|
||||
if v then
|
||||
prev_coords = { x = m.x, y = m.y }
|
||||
local new_mwfact
|
||||
if orientation == 'vertical' then
|
||||
new_mwfact = 1 - (m.x - wa.x) / wa.width * 2
|
||||
else
|
||||
new_mwfact = 1 - (m.y - wa.y) / wa.height * 2
|
||||
end
|
||||
c.screen.selected_tag.master_width_factor = math.min(math.max(new_mwfact, 0.01), 0.99)
|
||||
return true
|
||||
end
|
||||
end
|
||||
return prev_coords.x == m.x and prev_coords.y == m.y
|
||||
end, cursor)
|
||||
end
|
||||
|
||||
function centerwork.arrange(p)
|
||||
return arrange(p, centerwork)
|
||||
end
|
||||
|
||||
function centerwork.horizontal.arrange(p)
|
||||
return arrange(p, centerwork.horizontal)
|
||||
end
|
||||
|
||||
function centerwork.mouse_resize_handler(c, corner, x, y)
|
||||
return mouse_resize_handler(c, corner, x, y, 'vertical')
|
||||
end
|
||||
|
||||
function centerwork.horizontal.mouse_resize_handler(c, corner, x, y)
|
||||
return mouse_resize_handler(c, corner, x, y, 'horizontal')
|
||||
end
|
||||
|
||||
|
||||
--[[
|
||||
Make focus.byidx and swap.byidx behave more consistently with other layouts.
|
||||
--]]
|
||||
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local client = client
|
||||
|
||||
local function compare_position(a, b)
|
||||
if a.x == b.x then
|
||||
return a.y < b.y
|
||||
else
|
||||
return a.x < b.x
|
||||
end
|
||||
end
|
||||
|
||||
local function clients_by_position()
|
||||
local this = client.focus
|
||||
if this then
|
||||
local sorted = {}
|
||||
for _, c in ipairs(client.focus.first_tag:clients()) do
|
||||
if not c.minimized then sorted[#sorted+1] = c end
|
||||
end
|
||||
table.sort(sorted, compare_position)
|
||||
|
||||
local idx = 0
|
||||
for i, that in ipairs(sorted) do
|
||||
if this.window == that.window then
|
||||
idx = i
|
||||
end
|
||||
end
|
||||
|
||||
if idx > 0 then
|
||||
return { sorted = sorted, idx = idx }
|
||||
end
|
||||
end
|
||||
return {}
|
||||
end
|
||||
|
||||
local function in_centerwork()
|
||||
return client.focus and client.focus.first_tag.layout.name == "centerwork"
|
||||
end
|
||||
|
||||
centerwork.focus = {}
|
||||
|
||||
|
||||
--[[
|
||||
Drop in replacements for awful.client.focus.byidx and awful.client.swap.byidx
|
||||
that behaves consistently with other layouts.
|
||||
--]]
|
||||
|
||||
function centerwork.focus.byidx(i)
|
||||
if in_centerwork() then
|
||||
local cls = clients_by_position()
|
||||
if cls.idx then
|
||||
local target = cls.sorted[gears.math.cycle(#cls.sorted, cls.idx + i)]
|
||||
awful.client.focus.byidx(0, target)
|
||||
end
|
||||
else
|
||||
awful.client.focus.byidx(i)
|
||||
end
|
||||
end
|
||||
|
||||
centerwork.swap = {}
|
||||
|
||||
function centerwork.swap.byidx(i)
|
||||
if in_centerwork() then
|
||||
local cls = clients_by_position()
|
||||
if cls.idx then
|
||||
local target = cls.sorted[gears.math.cycle(#cls.sorted, cls.idx + i)]
|
||||
client.focus:swap(target)
|
||||
end
|
||||
else
|
||||
awful.client.swap.byidx(i)
|
||||
end
|
||||
end
|
||||
|
||||
return centerwork
|
|
@ -1,12 +0,0 @@
|
|||
-- Imports
|
||||
local beautiful = require("beautiful")
|
||||
beautiful.init(string.format("%s/.config/awesome/ui/theme.lua", os.getenv("HOME"))) -- Selected theme
|
||||
require("helpers") -- Some aditional code for handling
|
||||
require("apps") -- Selected apps & scripts
|
||||
require("ui.layouts") -- Predifined tiling layouts
|
||||
require("ui.bar") -- The bar on the top
|
||||
require("ui.notif") -- The notification manager
|
||||
require("keymaps.keyboard") -- Keyboard shortcuts
|
||||
require("keymaps.mouse") -- Mouse shortcuts
|
||||
require("ui.rules") -- Window manager rules
|
||||
require("autostart") -- Startup applications
|
|
@ -1,224 +0,0 @@
|
|||
--- {{{ Imports
|
||||
local wibox = require("wibox")
|
||||
local gears = require("gears")
|
||||
local awful = require("awful")
|
||||
local theme = require("ui.theme")
|
||||
-- Textclock widget
|
||||
local mytextclock = wibox.widget.textclock()
|
||||
screen.connect_signal("request::desktop_decoration", function(s)
|
||||
-- Tag names for each screen
|
||||
awful.tag(
|
||||
{
|
||||
"", -- EDITOR
|
||||
"", -- FILE MANAGER
|
||||
"", -- WEB BROWSER
|
||||
"", -- CHAT
|
||||
"", -- MUSIC
|
||||
"", -- VIDEO
|
||||
"", -- IMAGE/EDIT TOOLS
|
||||
"", -- OFFICE
|
||||
"" -- GAMES
|
||||
},
|
||||
s,
|
||||
awful.layout.layouts[1]
|
||||
)
|
||||
|
||||
-- Layoutbox widget
|
||||
s.mylayoutbox = {
|
||||
widget = wibox.container.background,
|
||||
bg = theme.bg_normal,
|
||||
shape = gears.shape.circle,
|
||||
awful.widget.layoutbox {
|
||||
screen = s,
|
||||
buttons = {
|
||||
awful.button(
|
||||
{ },
|
||||
1,
|
||||
function ()
|
||||
awful.layout.inc(1)
|
||||
end
|
||||
),
|
||||
awful.button(
|
||||
{ },
|
||||
3,
|
||||
function ()
|
||||
awful.layout.inc(-1)
|
||||
end
|
||||
),
|
||||
awful.button(
|
||||
{ },
|
||||
4,
|
||||
function ()
|
||||
awful.layout.inc(-1)
|
||||
end
|
||||
),
|
||||
awful.button(
|
||||
{ },
|
||||
5,
|
||||
function ()
|
||||
awful.layout.inc(1)
|
||||
end
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- Taglist widget
|
||||
s.mytaglist = {
|
||||
widget = wibox.container.background,
|
||||
bg = theme.taglist_bg,
|
||||
shape = gears.shape.rounded_rect,
|
||||
awful.widget.taglist {
|
||||
screen = s,
|
||||
filter = awful.widget.taglist.filter.all,
|
||||
buttons = {
|
||||
awful.button(
|
||||
{ },
|
||||
1,
|
||||
function(t)
|
||||
t:view_only()
|
||||
end
|
||||
),
|
||||
awful.button(
|
||||
{ modkey },
|
||||
1,
|
||||
function(t)
|
||||
if client.focus then
|
||||
client.focus:move_to_tag(t)
|
||||
end
|
||||
end
|
||||
),
|
||||
awful.button(
|
||||
{ },
|
||||
3,
|
||||
awful.tag.viewtoggle
|
||||
),
|
||||
awful.button(
|
||||
{ modkey },
|
||||
3,
|
||||
function(t)
|
||||
if client.focus then
|
||||
client.focus:toggle_tag(t)
|
||||
end
|
||||
end
|
||||
),
|
||||
awful.button(
|
||||
{ },
|
||||
4,
|
||||
function(t)
|
||||
awful.tag.viewprev(t.screen)
|
||||
end
|
||||
),
|
||||
awful.button(
|
||||
{ },
|
||||
5,
|
||||
function(t)
|
||||
awful.tag.viewnext(t.screen)
|
||||
end
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- Prepare custom widgets
|
||||
-- Volume widget
|
||||
s.volume =
|
||||
awful.widget.watch(
|
||||
".config/awesome/ui/widgets/volume",
|
||||
1 -- Update time in seconds
|
||||
)
|
||||
-- Battery widget
|
||||
s.battery =
|
||||
awful.widget.watch(
|
||||
".config/awesome/ui/widgets/battery",
|
||||
10 -- update time in seconds
|
||||
)
|
||||
-- Wifi widget
|
||||
s.wifi =
|
||||
awful.widget.watch(
|
||||
".config/awesome/ui/widgets/wifi",
|
||||
10 -- Update time in seconds
|
||||
)
|
||||
-- Brightness widget
|
||||
s.brightness =
|
||||
awful.widget.watch(
|
||||
".config/awesome/ui/widgets/brightness",
|
||||
1 -- Update time in seconds
|
||||
)
|
||||
-- Keyboard layout widget
|
||||
s.layout =
|
||||
awful.widget.watch(
|
||||
".config/awesome/ui/widgets/layout",
|
||||
1 -- Update time in seconds
|
||||
)
|
||||
|
||||
-- Prepare custom widgets container
|
||||
local custom_widget_container = {
|
||||
-- Keyboard layout widget
|
||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_one),
|
||||
wibox.container.background(s.layout, theme.bar_bg_one),
|
||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_one),
|
||||
-- Volume widget
|
||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_two),
|
||||
wibox.container.background(s.volume, theme.bar_bg_two),
|
||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_two),
|
||||
-- Brightness widget
|
||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_tre),
|
||||
wibox.container.background(s.brightness, theme.bar_bg_tre),
|
||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_tre),
|
||||
-- Battery widget
|
||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_for),
|
||||
wibox.container.background(s.battery, theme.bar_bg_for),
|
||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_for),
|
||||
-- Wifi widget
|
||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_fiv),
|
||||
wibox.container.background(s.wifi, theme.bar_bg_fiv),
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
}
|
||||
|
||||
-- Main right widget container with pill shape
|
||||
local right_widgets = {
|
||||
custom_widget_container,
|
||||
widget = wibox.container.background,
|
||||
shape = gears.shape.rounded_rect,
|
||||
}
|
||||
|
||||
-- Wibar
|
||||
s.mywibox = awful.wibar {
|
||||
position = "top",
|
||||
height = (30),
|
||||
border_width = (10),
|
||||
border_color = theme.bg_normal,
|
||||
screen = s,
|
||||
widget = {
|
||||
layout = wibox.layout.stack,
|
||||
{
|
||||
layout = wibox.layout.align.horizontal,
|
||||
{
|
||||
-- [[ Left widgets ]]
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
-- Layoubox widget
|
||||
s.mylayoutbox,
|
||||
wibox.container.background(wibox.widget.textbox(" "), theme.bg_normal),
|
||||
-- Taglist widget
|
||||
s.mytaglist,
|
||||
},
|
||||
nil,
|
||||
{
|
||||
-- [[ Right widgets ]]
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
right_widgets
|
||||
},
|
||||
},
|
||||
{
|
||||
-- [[ Center widgets ]]
|
||||
-- Clock widget
|
||||
wibox.container.background(mytextclock, theme.bar_clock, gears.shape.rounded_rect),
|
||||
valign = "center",
|
||||
halign = "center",
|
||||
layout = wibox.container.place,
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
)
|
Before Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 866 B |
Before Width: | Height: | Size: 865 B |
Before Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 574 B |
Before Width: | Height: | Size: 581 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 265 B |
|
@ -1,29 +0,0 @@
|
|||
local awful = require("awful")
|
||||
-- Custom added layouts
|
||||
local centerwork = require("modules.custom-layouts.centerwork")
|
||||
-- {{{ Selected layouts
|
||||
tag.connect_signal(
|
||||
"request::default_layouts",
|
||||
function()
|
||||
awful.layout.append_default_layouts(
|
||||
{
|
||||
awful.layout.suit.tile,
|
||||
awful.layout.suit.tile.left,
|
||||
awful.layout.suit.tile.bottom,
|
||||
awful.layout.suit.tile.top,
|
||||
centerwork,
|
||||
-- awful.layout.suit.fair,
|
||||
-- awful.layout.suit.fair.horizontal,
|
||||
-- awful.layout.suit.spiral,
|
||||
-- awful.layout.suit.spiral.dwindle,
|
||||
awful.layout.suit.max,
|
||||
awful.layout.suit.max.fullscreen,
|
||||
-- awful.layout.suit.magnifier,
|
||||
-- awful.layout.suit.corner.nw,
|
||||
awful.layout.suit.floating,
|
||||
}
|
||||
)
|
||||
end
|
||||
)
|
||||
-- }}}
|
||||
|
|
@ -1,112 +0,0 @@
|
|||
local awful = require("awful")
|
||||
local beautiful = require("beautiful")
|
||||
local dpi = beautiful.xresources.apply_dpi
|
||||
local naughty = require("naughty")
|
||||
local wibox = require("wibox")
|
||||
local ruled = require("ruled")
|
||||
|
||||
naughty.config.defaults.ontop = true
|
||||
naughty.config.defaults.timeout = 5
|
||||
naughty.config.defaults.screen = awful.screen.focused()
|
||||
naughty.config.defaults.border_width = 0
|
||||
naughty.config.defaults.position = "top_right"
|
||||
naughty.config.defaults.title = "Notification"
|
||||
|
||||
ruled.notification.connect_signal(
|
||||
"request::rules",
|
||||
function()
|
||||
-- Critical
|
||||
ruled.notification.append_rule {
|
||||
rule = {
|
||||
urgency = "critical"
|
||||
},
|
||||
properties = {
|
||||
bg = beautiful.notification_bg,
|
||||
fg = beautiful.notification_critical,
|
||||
timeout = 0
|
||||
}
|
||||
}
|
||||
-- Normal
|
||||
ruled.notification.append_rule {
|
||||
rule = {
|
||||
urgency = "normal"
|
||||
},
|
||||
properties = {
|
||||
bg = beautiful.notification_bg,
|
||||
fg = beautiful.notification_fg,
|
||||
timeout = 5
|
||||
}
|
||||
}
|
||||
-- Low
|
||||
ruled.notification.append_rule {
|
||||
rule = {
|
||||
urgency = "low"
|
||||
},
|
||||
properties = {
|
||||
bg = beautiful.notification_bg,
|
||||
fg = beautiful.notification_fg,
|
||||
timeout = 5
|
||||
}
|
||||
}
|
||||
end
|
||||
)
|
||||
|
||||
naughty.connect_signal(
|
||||
"request::display",
|
||||
function(n)
|
||||
naughty.layout.box {
|
||||
notification = n,
|
||||
type = "notification",
|
||||
bg = beautiful.bg_normal,
|
||||
widget_template = {
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
naughty.widget.title,
|
||||
forced_height = dpi(38),
|
||||
layout = wibox.layout.align.horizontal
|
||||
},
|
||||
left = dpi(15),
|
||||
right = dpi(15),
|
||||
widget = wibox.container.margin
|
||||
},
|
||||
bg = beautiful.notification_bg_alt,
|
||||
widget = wibox.container.background
|
||||
},
|
||||
strategy = "min",
|
||||
width = dpi(300),
|
||||
widget = wibox.container.constraint
|
||||
},
|
||||
strategy = "max",
|
||||
width = dpi(400),
|
||||
widget = wibox.container.constraint
|
||||
},
|
||||
{
|
||||
{
|
||||
{
|
||||
naughty.widget.message,
|
||||
left = dpi(15),
|
||||
right = dpi(15),
|
||||
top = dpi(15),
|
||||
bottom = dpi(15),
|
||||
widget = wibox.container.margin
|
||||
},
|
||||
strategy = "min",
|
||||
height = dpi(60),
|
||||
widget = wibox.container.constraint
|
||||
},
|
||||
strategy = "max",
|
||||
width = dpi(400),
|
||||
widget = wibox.container.constraint
|
||||
},
|
||||
layout = wibox.layout.align.vertical
|
||||
},
|
||||
id = "background_role",
|
||||
widget = naughty.container.background
|
||||
}
|
||||
}
|
||||
end
|
||||
)
|
|
@ -1,185 +0,0 @@
|
|||
local awful = require("awful")
|
||||
local ruled = require("ruled")
|
||||
|
||||
-- Rules to apply to new clients.
|
||||
ruled.client.connect_signal(
|
||||
"request::rules",
|
||||
function()
|
||||
-- All clients will match this rule.
|
||||
ruled.client.append_rule {
|
||||
id = "global",
|
||||
rule = { },
|
||||
properties = {
|
||||
focus = awful.client.focus.filter,
|
||||
raise = true,
|
||||
screen = awful.screen.preferred,
|
||||
placement = awful.placement.no_overlap + awful.placement.no_offscreen,
|
||||
callback = awful.client.setslave
|
||||
}
|
||||
}
|
||||
|
||||
-- Floating clients.
|
||||
ruled.client.append_rule {
|
||||
id = "floating",
|
||||
rule_any = {
|
||||
hinstance = { "copyq", "pinentry" },
|
||||
class = {
|
||||
"Galculator",
|
||||
"Blueman-manager",
|
||||
"Gpick",
|
||||
"Kruler",
|
||||
"Tor Browser",
|
||||
"Wpa_gui",
|
||||
"veromix",
|
||||
"xtightvncviewer"
|
||||
},
|
||||
-- Note that the name property shown in xprop might be set slightly after creation of the client
|
||||
-- and the name shown there might not match defined rules here.
|
||||
name = {
|
||||
"Event Tester", -- xev.
|
||||
},
|
||||
role = {
|
||||
"AlarmWindow", -- Thunderbird's calendar.
|
||||
"ConfigManager", -- Thunderbird's about:config.
|
||||
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
|
||||
}
|
||||
},
|
||||
properties = { floating = true }
|
||||
}
|
||||
|
||||
-- TAG 1
|
||||
ruled.client.append_rule {
|
||||
rule_any = {
|
||||
class = {
|
||||
"Emacs",
|
||||
"neovide",
|
||||
"lvim",
|
||||
"Godot",
|
||||
"neovim",
|
||||
"Virt-manager"
|
||||
}
|
||||
},
|
||||
properties = { tag = "" },
|
||||
}
|
||||
-- TAG 2
|
||||
ruled.client.append_rule {
|
||||
rule_any = {
|
||||
class = {
|
||||
"vifm",
|
||||
"pcmanfm",
|
||||
"nemo"
|
||||
}
|
||||
},
|
||||
properties = { tag = "" },
|
||||
}
|
||||
-- TAG 3
|
||||
ruled.client.append_rule {
|
||||
rule_any = {
|
||||
class = {
|
||||
"Brave-browser",
|
||||
"librewolf",
|
||||
"firefox",
|
||||
"Luakit",
|
||||
"Chromium",
|
||||
"Bitwarden",
|
||||
"qutebrowser",
|
||||
"tut",
|
||||
"newsboat"
|
||||
}
|
||||
},
|
||||
properties = { tag = "" }
|
||||
}
|
||||
-- TAG 4
|
||||
ruled.client.append_rule {
|
||||
rule_any = {
|
||||
class = {
|
||||
"gomuks",
|
||||
"Signal",
|
||||
"Revolt",
|
||||
"Element"
|
||||
}
|
||||
},
|
||||
properties = { tag = "" }
|
||||
}
|
||||
-- TAG 5
|
||||
ruled.client.append_rule {
|
||||
rule_any = {
|
||||
class = {
|
||||
"cmus",
|
||||
"ytfzf_music",
|
||||
"Audacity",
|
||||
"Ardour",
|
||||
"Carla2",
|
||||
"Carla2-Control"
|
||||
}
|
||||
},
|
||||
properties = { tag = "" }
|
||||
}
|
||||
-- TAG 6
|
||||
ruled.client.append_rule {
|
||||
rule_any = {
|
||||
class = {
|
||||
"kdenlive",
|
||||
"Blender",
|
||||
"Natron",
|
||||
"SimpleScreenRecorder",
|
||||
"Ghb",
|
||||
"obs",
|
||||
"mpv",
|
||||
"ani-cli",
|
||||
"flix-cli",
|
||||
"ytfzf"
|
||||
}
|
||||
},
|
||||
properties = { tag = "" }
|
||||
}
|
||||
-- TAG 7
|
||||
ruled.client.append_rule {
|
||||
rule_any = {
|
||||
class = {
|
||||
"Qjackctl",
|
||||
"lsp-plugins",
|
||||
"qpwgraph",
|
||||
"Gimp-2.10",
|
||||
"krita",
|
||||
"Inkscape",
|
||||
"Xournalpp",
|
||||
}
|
||||
},
|
||||
properties = { tag = "" }
|
||||
}
|
||||
-- TAG 8
|
||||
ruled.client.append_rule {
|
||||
rule_any = {
|
||||
class = {
|
||||
"DesktopEditors",
|
||||
"Soffice",
|
||||
"libreoffice-startcenter",
|
||||
"Joplin"
|
||||
}
|
||||
},
|
||||
properties = { tag = "" }
|
||||
}
|
||||
-- TAG 9
|
||||
ruled.client.append_rule {
|
||||
rule_any = {
|
||||
class = {
|
||||
"retroarch",
|
||||
"airshipper",
|
||||
"pyrogenesis",
|
||||
"DarkPlaces",
|
||||
"xonotic-sdl",
|
||||
"supertuxkart",
|
||||
"supertux2",
|
||||
"wesnoth",
|
||||
"Minetest",
|
||||
"openttd",
|
||||
"warzone2100",
|
||||
"steam"
|
||||
}
|
||||
},
|
||||
properties = { tag = "" }
|
||||
}
|
||||
--}}}
|
||||
end
|
||||
)
|
|
@ -1,101 +0,0 @@
|
|||
-- {{{ Imports
|
||||
local gears = require("gears")
|
||||
local dpi = require("beautiful.xresources").apply_dpi
|
||||
local beautiful = require("beautiful")
|
||||
-- }}}
|
||||
|
||||
local themes_path = string.format("%s/.config/awesome/ui/", os.getenv("HOME"))
|
||||
|
||||
-- {{{ Main
|
||||
local theme = {}
|
||||
-- }}}
|
||||
|
||||
-- {{{ theme font
|
||||
theme.font = "mononoki Nerd Font 13"
|
||||
--- }}}
|
||||
|
||||
-- {{{ bar colors
|
||||
theme.bar_bg_one = "#427b58"
|
||||
theme.bar_bg_two = "#076678"
|
||||
theme.bar_bg_tre = "#b57614"
|
||||
theme.bar_bg_for = "#9d0006"
|
||||
theme.bar_bg_fiv = "#8f3f71"
|
||||
theme.bar_clock = "#3c3836"
|
||||
--- }}}
|
||||
|
||||
-- {{{ Colors
|
||||
theme.fg_normal = "#ebdbb2"
|
||||
theme.fg_focus = "#dfc4a1"
|
||||
theme.fg_urgent = "#fb4934"
|
||||
theme.bg_normal = "#1d2021"
|
||||
theme.bg_focus = "#3c3836"
|
||||
theme.bg_urgent = "#a89984"
|
||||
-- }}}
|
||||
|
||||
-- {{{ Borders
|
||||
beautiful.gap_single_client = false
|
||||
theme.useless_gap = dpi(4)
|
||||
theme.border_width = dpi(1.5)
|
||||
theme.border_normal = "#504945"
|
||||
theme.border_focus = "#cc241d"
|
||||
theme.border_marked = "#cc241d"
|
||||
-- }}}
|
||||
|
||||
-- {{{ Taglist
|
||||
theme.taglist_font = "mononoki Nerd Font Mono 28"
|
||||
theme.taglist_bg = "#3c3836"
|
||||
theme.taglist_fg_focus = "#fb4934"
|
||||
theme.taglist_fg_occupied = "#8ec07c"
|
||||
theme.taglist_fg_urgent = "#504945"
|
||||
theme.taglist_fg_empty = "#a89984"
|
||||
theme.taglist_spacing = 5
|
||||
-- }}}
|
||||
|
||||
-- {{{ Notifications
|
||||
theme.notification_font = "mononoki Nerd Font 12"
|
||||
theme.notification_bg = "#1d2021"
|
||||
theme.notification_bg_alt = "#282828"
|
||||
theme.notification_fg = "#ebdbb2"
|
||||
theme.notification_fg_alt = "#282828"
|
||||
theme.notification_critical = "#fb4934"
|
||||
theme.notification_shape = gears.shape.rounded_rect
|
||||
-- }}}
|
||||
|
||||
-- {{{ Hotkeys Popup
|
||||
theme.hotkeys_bg = "#1d2021"
|
||||
theme.hotkeys_fg = "#ebdbb2"
|
||||
theme.hotkeys_modifiers_fg = "#458588"
|
||||
theme.hotkeys_label_bg = "#d79921"
|
||||
theme.hotkeys_label_fg = "#1d2021"
|
||||
theme.hotkeys_group_margin = dpi(20)
|
||||
theme.hotkeys_description_font = "mononoki Nerd Font 12"
|
||||
theme.hotkeys_font = "mononoki Nerd Font 12"
|
||||
-- }}}
|
||||
|
||||
-- {{{ Mouse finder
|
||||
theme.mouse_finder_color = "#fb4934"
|
||||
theme.mouse_finder_radius = dpi(5)
|
||||
theme.mouse_finder_timeout = 10
|
||||
-- }}}
|
||||
|
||||
-- {{{ Layout Icons
|
||||
theme.layout_tile = gears.color.recolor_image(themes_path .. "icons/tilew.png", theme.fg_urgent)
|
||||
theme.layout_centerwork = gears.color.recolor_image(themes_path .. "icons/centerworkw.png", theme.fg_urgent)
|
||||
theme.layout_tileleft = gears.color.recolor_image(themes_path .. "icons/tileleftw.png", theme.fg_urgent)
|
||||
theme.layout_tilebottom = gears.color.recolor_image(themes_path .. "icons/tilebottomw.png", theme.fg_urgent)
|
||||
theme.layout_tiletop = gears.color.recolor_image(themes_path .. "icons/tiletopw.png", theme.fg_urgent)
|
||||
theme.layout_fairv = gears.color.recolor_image(themes_path .. "icons/fairvw.png", theme.fg_urgent)
|
||||
theme.layout_fairh = gears.color.recolor_image(themes_path .. "icons/fairhw.png", theme.fg_urgent)
|
||||
theme.layout_spiral = gears.color.recolor_image(themes_path .. "icons/spiralw.png", theme.fg_urgent)
|
||||
theme.layout_dwindle = gears.color.recolor_image(themes_path .. "icons/dwindlew.png", theme.fg_urgent)
|
||||
theme.layout_max = gears.color.recolor_image(themes_path .. "icons/maxw.png", theme.fg_urgent)
|
||||
theme.layout_fullscreen = gears.color.recolor_image(themes_path .. "icons/fullscreenw.png", theme.fg_urgent)
|
||||
theme.layout_magnifier = gears.color.recolor_image(themes_path .. "icons/magnifierw.png", theme.fg_urgent)
|
||||
theme.layout_floating = gears.color.recolor_image(themes_path .. "icons/floatingw.png", theme.fg_urgent)
|
||||
theme.layout_cornernw = gears.color.recolor_image(themes_path .. "icons/cornernw.png", theme.fg_urgent)
|
||||
theme.layout_cornerne = gears.color.recolor_image(themes_path .. "icons/cornerne.png", theme.fg_urgent)
|
||||
theme.layout_cornersw = gears.color.recolor_image(themes_path .. "icons/cornersw.png", theme.fg_urgent)
|
||||
theme.layout_cornerse = gears.color.recolor_image(themes_path .. "icons/cornerse.png", theme.fg_urgent)
|
||||
-- }}}
|
||||
|
||||
return theme
|
|
@ -1,28 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Loop through all attached batteries and format the info
|
||||
currntpwr=$(powerprofilesctl get)
|
||||
if [ "${currntpwr}" = "performance" ]; then
|
||||
pwr=" - Performance"
|
||||
elif [ "${currntpwr}" = "balanced" ]; then
|
||||
pwr=" - Balanced"
|
||||
elif [ "${currntpwr}" = "power-saver" ]; then
|
||||
pwr=" - PowerSaver"
|
||||
fi
|
||||
for battery in /sys/class/power_supply/BAT?*; do
|
||||
# If non-first battery, print a space separator.
|
||||
[ -n "${capacity+x}" ] && printf " "
|
||||
# Sets up the status and capacity
|
||||
case "$(cat "$battery/status" 2>&1)" in
|
||||
"Full") status="" ;;
|
||||
"Discharging") status="" ;;
|
||||
"Charging") status="" ;;
|
||||
"Not charging") status="" ;;
|
||||
"Unknown") status="" ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
capacity="$(cat "$battery/capacity" 2>&1)"
|
||||
# Will make a warn variable if discharging and low
|
||||
[ "$status" = "" ] && [ "$capacity" -le 100 ] && warn=""
|
||||
# Prints the info
|
||||
printf "%s%s%d%%%s" "$status" "$warn " "$capacity" "$pwr"; unset warn
|
||||
done && printf "\\n"
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
brt=$(xbacklight -get)
|
||||
if [ "$brt" = "100.000000" ]; then
|
||||
icon=""
|
||||
elif [ "$brt" \> "50%.*" ]; then
|
||||
icon=""
|
||||
elif [ "$brt" \< "49%.*" ]; then
|
||||
icon=""
|
||||
fi
|
||||
echo "$icon ${brt%.*}%"
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
layout=$(setxkbmap -query | grep -oP 'layout:\s*\K\w+');
|
||||
echo " $layout" | tr '[:lower:]' '[:upper:]';
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Prints the current volume or 🔇 if muted.
|
||||
[ "$(pamixer --get-mute)" = true ] && echo "x" && exit
|
||||
vol="$(pamixer --get-volume)"
|
||||
if [ "$vol" -gt "50" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "10" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "0" ]; then
|
||||
icon=""
|
||||
else
|
||||
echo "x" && exit
|
||||
fi
|
||||
echo -e "$icon $vol%"
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
constate=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f3 | head -1)
|
||||
currentwfi=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f4 | head -1)
|
||||
|
||||
if [ "$constate" = "disconnected" ]; then
|
||||
echo " "
|
||||
elif [ "$constate" = "connected" ]; then
|
||||
echo " $currentwfi"
|
||||
else
|
||||
echo " "
|
||||
fi
|
|
@ -209,4 +209,4 @@ selected_battery = "Auto"
|
|||
|
||||
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
||||
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
|
||||
log_level = "WARNING"
|
||||
log_level = "WARNING"
|
||||
|
|
|
@ -163,7 +163,7 @@
|
|||
dmenu = /usr/bin/dmenu -p dunst:
|
||||
|
||||
# Browser for opening urls in context menu.
|
||||
browser = /usr/bin/qutebrowser
|
||||
browser = /usr/bin/firefox
|
||||
|
||||
# Always run rule-defined scripts, even if the notification is suppressed
|
||||
always_run_script = true
|
||||
|
@ -356,3 +356,4 @@
|
|||
# set_stack_tag = "volume"
|
||||
#
|
||||
# vim: ft=cfg
|
||||
|
||||
|
|
|
@ -12,10 +12,10 @@ set -e fish_user_paths
|
|||
set -U fish_user_paths $HOME/.bin $HOME/.local/bin $HOME/.config/emacs/bin $HOME/Applications /var/lib/flatpak/exports/bin/ $fish_user_paths
|
||||
|
||||
### EXPORT ###
|
||||
set fish_greeting # Supresses fish's intro message
|
||||
set TERM "xterm-256color" # Sets the terminal type
|
||||
set EDITOR "lvim" # $EDITOR use lvim in terminal
|
||||
set VISUAL "neovide --neovim-bin ./.local/bin/lvim" # $VISUAL use neovide for lvim in GUI mode
|
||||
set fish_greeting # Supresses fish's intro message
|
||||
set TERM "xterm-256color" # Sets the terminal type
|
||||
set EDITOR "$HOME/.local/bin/lvim"
|
||||
set VISUAL "wezterm start --class editor -- $HOME/.local/bin/lvim"
|
||||
|
||||
### SET BAT AS MANPAGER
|
||||
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||
|
@ -125,9 +125,8 @@ alias .3='cd ../../..'
|
|||
alias .4='cd ../../../..'
|
||||
alias .5='cd ../../../../..'
|
||||
|
||||
# vim and emacs
|
||||
alias vim='lvim'
|
||||
alias vimdiff='lvim -d'
|
||||
# neovim as vim
|
||||
alias vim="$HOME/.local/bin/lvim"
|
||||
|
||||
# newsboat
|
||||
alias newsboat='newsboat -u ~/.config/newsboat/urls'
|
||||
|
@ -135,6 +134,9 @@ alias newsboat='newsboat -u ~/.config/newsboat/urls'
|
|||
# bat as cat
|
||||
alias cat='bat'
|
||||
|
||||
# pfetch as neofetch
|
||||
alias neofetch='pfetch'
|
||||
|
||||
# Changing "ls" to "exa"
|
||||
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
|
||||
alias la='exa -a --color=always --group-directories-first' # all files and dirs
|
||||
|
@ -142,16 +144,13 @@ alias ll='exa -l --color=always --group-directories-first' # long format
|
|||
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
||||
alias l.='exa -a | egrep "^\."'
|
||||
|
||||
# pacman and yay
|
||||
alias pac-up='paru' # update the system
|
||||
alias pac-get='paru -S' # install a program
|
||||
alias pac-rmv='paru -Rcns' # remove a program
|
||||
alias pac-rmv-sec='paru -R' # remove a program (secure way)
|
||||
alias pac-qry='paru -Ss' # search for a program
|
||||
alias pac-cln='paru -Scc && paru -Rns (pacman -Qtdq)' # clean cache & remove orphaned packages
|
||||
|
||||
# neofetch is f***** slow
|
||||
alias neofetch="pfetch"
|
||||
# package management
|
||||
alias pac-up='paru -Syu'
|
||||
alias pac-get='paru -S'
|
||||
alias pac-rmv='paru -Rcns'
|
||||
alias pac-rmv-sec='paru -R'
|
||||
alias pac-qry='paru -Ss'
|
||||
alias pac-cln='paru -Scc && paru -Rns (pacman -Qtdq)'
|
||||
|
||||
# Colorize grep output (good for log files)
|
||||
alias grep='grep --color=auto'
|
||||
|
@ -159,15 +158,14 @@ alias egrep='egrep --color=auto'
|
|||
alias fgrep='fgrep --color=auto'
|
||||
|
||||
# file management
|
||||
alias fm="vifm"
|
||||
alias file="vifm"
|
||||
alias flm="vifm"
|
||||
alias cp='cp -iv'
|
||||
alias mv='mv -iv'
|
||||
alias rm='rm -vI'
|
||||
alias mkd='mkdir -pv'
|
||||
alias mkdir='mkdir -pv'
|
||||
alias fm='./.config/vifm/scripts/vifmrun'
|
||||
alias vifm='./.config/vifm/scripts/vifmrun'
|
||||
alias file='./.config/vifm/scripts/vifmrun'
|
||||
alias flm='./.config/vifm/scripts/vifmrun'
|
||||
|
||||
# audio
|
||||
alias mx='pulsemixer'
|
||||
|
|
|
@ -4,8 +4,8 @@ ShowHidden=false
|
|||
ShowSizeColumn=true
|
||||
GeometryX=0
|
||||
GeometryY=0
|
||||
GeometryWidth=780
|
||||
GeometryHeight=585
|
||||
GeometryWidth=772
|
||||
GeometryHeight=560
|
||||
SortColumn=name
|
||||
SortOrder=ascending
|
||||
StartupMode=recent
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
[Settings]
|
||||
gtk-theme-name=gruvbox-dark-gtk
|
||||
gtk-icon-theme-name=gruvbox-dark-icons-gtk
|
||||
gtk-font-name=mononoki Nerd Font 10
|
||||
gtk-font-name=Cantarell 10
|
||||
gtk-cursor-theme-name=Simp1e-Gruvbox-Dark
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=1
|
||||
gtk-menu-images=1
|
||||
gtk-enable-event-sounds=1
|
||||
gtk-enable-input-feedback-sounds=1
|
||||
gtk-enable-input-feedback-sounds=0
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintfull
|
||||
gtk-xft-hintstyle=hintslight
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-application-prefer-dark-theme=1
|
||||
|
|
|
@ -1,118 +0,0 @@
|
|||
-- Default Hilbish config
|
||||
local hilbish = require 'hilbish'
|
||||
local lunacolors = require 'lunacolors'
|
||||
local bait = require 'bait'
|
||||
local ansikit = require 'ansikit'
|
||||
|
||||
local function doPrompt(fail)
|
||||
hilbish.prompt(
|
||||
lunacolors.format(
|
||||
'{yellow}%u {white}in {red}%h {white}in {italic}{blue}%d ' .. (fail and '{red}' or '{green}') .. ' '
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
doPrompt()
|
||||
|
||||
bait.catch('command.exit', function(code)
|
||||
doPrompt(code ~= 0)
|
||||
end)
|
||||
|
||||
|
||||
bait.catch(
|
||||
'hilbish.vimMode',
|
||||
function(mode)
|
||||
if mode ~= 'insert' then
|
||||
ansikit.cursorStyle(ansikit.blockCursor)
|
||||
else
|
||||
ansikit.cursorStyle(ansikit.lineCursor)
|
||||
end
|
||||
end
|
||||
)
|
||||
|
||||
local aliases = {
|
||||
cat = "bat",
|
||||
vim = "lvim",
|
||||
ls = 'exa -al --icons --color=always --group-directories-first',
|
||||
la = 'exa -a --icons --color=always --group-directories-first',
|
||||
ll = 'exa -l --icons --color=always --group-directories-first',
|
||||
lt = 'exa -aT --icons --color=always --group-directories-first',
|
||||
pkupd = 'paru -Syyu',
|
||||
pkget = 'paru -S',
|
||||
pkrmv = 'paru -Rcns',
|
||||
pksrc = 'paru -Ss',
|
||||
pkcln = 'paru -Scc',
|
||||
tree = 'ls --tree',
|
||||
grep = 'grep --color=auto',
|
||||
egrep = 'egrep --color=auto',
|
||||
fgrep = 'fgrep --color=auto',
|
||||
neofetch = 'pfetch',
|
||||
addup = 'git add -u',
|
||||
addall = 'git add .',
|
||||
branch = 'git branch',
|
||||
checkout = 'git checkout',
|
||||
clone = 'git clone',
|
||||
commit = 'git commit -m',
|
||||
fetch = 'git fetch',
|
||||
pull = 'git pull origin',
|
||||
push = 'git push origin',
|
||||
stat = 'git status',
|
||||
tag = 'git tag',
|
||||
newtag = 'git tag -a',
|
||||
df = 'df -h',
|
||||
free = 'free -m',
|
||||
newsboat = 'newsboat -u ~/.config/newsboat/urls',
|
||||
fli = 'flix-cli',
|
||||
ani = 'ani-cli',
|
||||
aniq = 'ani-cli -q',
|
||||
mx = 'pulsemixer',
|
||||
amx = 'alsamixer',
|
||||
mk = 'cmus',
|
||||
ms = 'cmus',
|
||||
music = 'cmus',
|
||||
po = 'systemctl poweroff',
|
||||
sp = 'systemctl suspend',
|
||||
rb = 'systemctl reboot',
|
||||
fm ='$HOME/.config/vifm/scripts/vifmrun',
|
||||
file ='$HOME/.config/vifm/scripts/vifmrun',
|
||||
flm = '$HOME/.config/vifm/scripts/vifmrun',
|
||||
vifm = '$HOME/.config/vifm/scripts/vifmrun',
|
||||
rm = 'rm -vI',
|
||||
mv = 'mv -iv',
|
||||
cp = 'cp -iv',
|
||||
mkd = 'mkdir -pv',
|
||||
psa = 'ps auxf',
|
||||
psgrep = 'ps aux | grep -v grep | grep -i -e VSZ -e',
|
||||
psmem = 'ps auxf | sort -nr -k 4',
|
||||
pscpu = 'ps auxf | sort -nr -k 3',
|
||||
yta_aac = 'yt-dlp --extract-audio --audio-format aac',
|
||||
yta_best = 'yt-dlp --extract-audio --audio-format best',
|
||||
yta_flac = 'yt-dlp --extract-audio --audio-format flac',
|
||||
yta_m4a = 'yt-dlp --extract-audio --audio-format m4a',
|
||||
yta_mp3 = 'yt-dlp --extract-audio --audio-format mp3',
|
||||
yta_opus = 'yt-dlp --extract-audio --audio-format opus',
|
||||
yta_vorbis = 'yt-dlp --extract-audio --audio-format vorbis',
|
||||
yta_wav = 'yt-dlp --extract-audio --audio-format wav',
|
||||
ytv_best = 'yt-dlp -f bestvideo+bestaudio',
|
||||
yt = 'ytfzf -ftsl',
|
||||
ytm = 'ytfzf -mts',
|
||||
netstats = 'nmcli dev',
|
||||
wfi = 'nmtui-connect',
|
||||
wfi_scan = 'nmcli dev wifi rescan && nmcli dev wifi list',
|
||||
wfi_edit = 'nmtui-edit',
|
||||
wfi_on = 'nmcli radio wifi on',
|
||||
wfi_off = 'nmcli radio wifi off',
|
||||
blt = 'bluetoothct',
|
||||
}
|
||||
|
||||
local function load_table (table)
|
||||
for cmd, new_cmd in pairs(table) do
|
||||
hilbish.alias(cmd, new_cmd)
|
||||
end
|
||||
end
|
||||
|
||||
local function load_aliases ()
|
||||
load_table(aliases)
|
||||
end
|
||||
|
||||
load_aliases()
|
|
@ -50,10 +50,10 @@ input {
|
|||
|
||||
# GENERAL
|
||||
general {
|
||||
gaps_in = 4
|
||||
gaps_out = 6
|
||||
border_size = 3
|
||||
col.active_border = rgb(cc241d) rgb(d79921) 45deg
|
||||
gaps_in = 2
|
||||
gaps_out = 4
|
||||
border_size = 2
|
||||
col.active_border = rgb(cc241d) #rgb(d79921) 45deg
|
||||
col.inactive_border = rgb(504945)
|
||||
layout = master
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ animations {
|
|||
# window movement
|
||||
animation = windowsMove,1, 3,default,popin
|
||||
animation = border, 1, 2, linear
|
||||
animation = borderangle, 1, 25, linear, loop
|
||||
#animation = borderangle, 1, 25, linear, loop
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 4, default, slide
|
||||
}
|
|
@ -1,186 +1,75 @@
|
|||
--[[
|
||||
lvim is the global options object
|
||||
|
||||
Linters should be
|
||||
filled in as strings with either
|
||||
a global executable or a path to
|
||||
an executable
|
||||
]]
|
||||
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
|
||||
-- nvim options
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.relativenumber = true
|
||||
vim.cmd('autocmd FileType markdown setlocal nospell')
|
||||
vim.opt.wrap = true -- wrap lines
|
||||
vim.opt.spell = false
|
||||
vim.o.shell = '/usr/bin/bash'
|
||||
|
||||
-- general
|
||||
vim.opt.guifont = { "mononoki Nerd Font", ":h7" }
|
||||
lvim.log.level = "warn"
|
||||
lvim.format_on_save.enabled = false
|
||||
lvim.use_icons = false
|
||||
lvim.log.level = "info"
|
||||
lvim.format_on_save = {
|
||||
enabled = true,
|
||||
pattern = "*.lua",
|
||||
timeout = 1000,
|
||||
}
|
||||
|
||||
-- change theme settings
|
||||
lvim.colorscheme = "gruvbox"
|
||||
lvim.transparent_window = false
|
||||
-- to disable icons and use a minimalist setup, uncomment the following
|
||||
-- lvim.use_icons = false
|
||||
|
||||
-- keymappings [view all the defaults by pressing <leader>Lk]
|
||||
lvim.leader = "space"
|
||||
-- add your own keymapping
|
||||
lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
|
||||
-- lvim.keys.normal_mode["<S-l>"] = ":BufferLineCycleNext<CR>"
|
||||
-- lvim.keys.normal_mode["<S-h>"] = ":BufferLineCyclePrev<CR>"
|
||||
-- unmap a default keymapping
|
||||
-- vim.keymap.del("n", "<C-Up>")
|
||||
-- override a default keymapping
|
||||
-- lvim.keys.normal_mode["<C-q>"] = ":q<cr>" -- or vim.keymap.set("n", "<C-q>", ":q<cr>" )
|
||||
|
||||
-- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode.
|
||||
-- we use protected-mode (pcall) just in case the plugin wasn't loaded yet.
|
||||
-- local _, actions = pcall(require, "telescope.actions")
|
||||
-- lvim.builtin.telescope.defaults.mappings = {
|
||||
-- -- for input mode
|
||||
-- i = {
|
||||
-- ["<C-j>"] = actions.move_selection_next,
|
||||
-- ["<C-k>"] = actions.move_selection_previous,
|
||||
-- ["<C-n>"] = actions.cycle_history_next,
|
||||
-- ["<C-p>"] = actions.cycle_history_prev,
|
||||
-- },
|
||||
-- -- for normal mode
|
||||
-- n = {
|
||||
-- ["<C-j>"] = actions.move_selection_next,
|
||||
-- ["<C-k>"] = actions.move_selection_previous,
|
||||
-- },
|
||||
-- }
|
||||
|
||||
-- Change theme settings
|
||||
-- lvim.builtin.theme.options.dim_inactive = true
|
||||
-- lvim.builtin.theme.options.style = "storm"
|
||||
|
||||
-- Use which-key to add extra bindings with the leader-key prefix
|
||||
-- lvim.builtin.which_key.mappings["P"] = { "<cmd>Telescope projects<CR>", "Projects" }
|
||||
-- lvim.builtin.which_key.mappings["t"] = {
|
||||
-- name = "+Trouble",
|
||||
-- r = { "<cmd>Trouble lsp_references<cr>", "References" },
|
||||
-- f = { "<cmd>Trouble lsp_definitions<cr>", "Definitions" },
|
||||
-- d = { "<cmd>Trouble document_diagnostics<cr>", "Diagnostics" },
|
||||
-- q = { "<cmd>Trouble quickfix<cr>", "QuickFix" },
|
||||
-- l = { "<cmd>Trouble loclist<cr>", "LocationList" },
|
||||
-- w = { "<cmd>Trouble workspace_diagnostics<cr>", "Workspace Diagnostics" },
|
||||
-- }
|
||||
|
||||
-- TODO: User Config for predefined plugins
|
||||
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
|
||||
lvim.transparent_window = true
|
||||
lvim.builtin.alpha.active = true
|
||||
lvim.builtin.alpha.mode = "dashboard"
|
||||
lvim.builtin.terminal.active = true
|
||||
lvim.builtin.nvimtree.setup.view.side = "left"
|
||||
lvim.builtin.nvimtree.setup.renderer.icons.show.git = false
|
||||
|
||||
-- if you don't want all the parsers change this to a table of the ones you want
|
||||
lvim.builtin.treesitter.ensure_installed = {
|
||||
"bash",
|
||||
"c",
|
||||
"javascript",
|
||||
"json",
|
||||
"lua",
|
||||
"python",
|
||||
"typescript",
|
||||
"tsx",
|
||||
"css",
|
||||
"rust",
|
||||
"java",
|
||||
"yaml",
|
||||
"toml",
|
||||
}
|
||||
-- automatically install missing parsers when entering buffer
|
||||
lvim.builtin.treesitter.auto_install = true
|
||||
|
||||
lvim.builtin.treesitter.ignore_install = { "haskell" }
|
||||
lvim.builtin.treesitter.highlight.enable = true
|
||||
|
||||
-- generic LSP settings
|
||||
|
||||
-- -- make sure server will always be installed even if the server is in skipped_servers list
|
||||
-- lvim.lsp.installer.setup.ensure_installed = {
|
||||
-- "sumneko_lua",
|
||||
-- "jsonls",
|
||||
-- }
|
||||
-- -- change UI setting of `LspInstallInfo`
|
||||
-- -- see <https://github.com/williamboman/nvim-lsp-installer#default-configuration>
|
||||
-- lvim.lsp.installer.setup.ui.check_outdated_servers_on_open = false
|
||||
-- lvim.lsp.installer.setup.ui.border = "rounded"
|
||||
-- lvim.lsp.installer.setup.ui.keymaps = {
|
||||
-- uninstall_server = "d",
|
||||
-- toggle_server_expand = "o",
|
||||
-- }
|
||||
|
||||
-- ---@usage disable automatic installation of servers
|
||||
-- lvim.lsp.installer.setup.automatic_installation = false
|
||||
|
||||
-- ---configure a server manually. !!Requires `:LvimCacheReset` to take effect!!
|
||||
-- ---see the full default list `:lua print(vim.inspect(lvim.lsp.automatic_configuration.skipped_servers))`
|
||||
-- vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "pyright" })
|
||||
-- local opts = {} -- check the lspconfig documentation for a list of all possible options
|
||||
-- require("lvim.lsp.manager").setup("pyright", opts)
|
||||
|
||||
-- ---remove a server from the skipped list, e.g. eslint, or emmet_ls. !!Requires `:LvimCacheReset` to take effect!!
|
||||
-- ---`:LvimInfo` lists which server(s) are skipped for the current filetype
|
||||
-- lvim.lsp.automatic_configuration.skipped_servers = vim.tbl_filter(function(server)
|
||||
-- return server ~= "emmet_ls"
|
||||
-- end, lvim.lsp.automatic_configuration.skipped_servers)
|
||||
|
||||
-- -- you can set a custom on_attach function that will be used for all the language servers
|
||||
-- -- See <https://github.com/neovim/nvim-lspconfig#keybindings-and-completion>
|
||||
-- lvim.lsp.on_attach_callback = function(client, bufnr)
|
||||
-- local function buf_set_option(...)
|
||||
-- vim.api.nvim_buf_set_option(bufnr, ...)
|
||||
-- end
|
||||
-- --Enable completion triggered by <c-x><c-o>
|
||||
-- buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
|
||||
-- end
|
||||
|
||||
-- -- set a formatter, this will override the language server formatting capabilities (if it exists)
|
||||
-- local formatters = require "lvim.lsp.null-ls.formatters"
|
||||
-- formatters.setup {
|
||||
-- { command = "black", filetypes = { "python" } },
|
||||
-- { command = "isort", filetypes = { "python" } },
|
||||
-- {
|
||||
-- -- each formatter accepts a list of options identical to https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#Configuration
|
||||
-- command = "prettier",
|
||||
-- ---@usage arguments to pass to the formatter
|
||||
-- -- these cannot contain whitespaces, options such as `--line-width 80` become either `{'--line-width', '80'}` or `{'--line-width=80'}`
|
||||
-- extra_args = { "--print-with", "100" },
|
||||
-- ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports.
|
||||
-- filetypes = { "typescript", "typescriptreact" },
|
||||
-- },
|
||||
-- }
|
||||
|
||||
-- -- set additional linters
|
||||
-- local linters = require "lvim.lsp.null-ls.linters"
|
||||
-- linters.setup {
|
||||
-- { command = "flake8", filetypes = { "python" } },
|
||||
-- {
|
||||
-- -- each linter accepts a list of options identical to https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#Configuration
|
||||
-- command = "shellcheck",
|
||||
-- ---@usage arguments to pass to the formatter
|
||||
-- -- these cannot contain whitespaces, options such as `--line-width 80` become either `{'--line-width', '80'}` or `{'--line-width=80'}`
|
||||
-- extra_args = { "--severity", "warning" },
|
||||
-- },
|
||||
-- {
|
||||
-- command = "codespell",
|
||||
-- ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports.
|
||||
-- filetypes = { "javascript", "python" },
|
||||
-- },
|
||||
-- }
|
||||
|
||||
-- Additional Plugins
|
||||
-- additional Plugins
|
||||
lvim.plugins = {
|
||||
{"lunarvim/colorschemes"},
|
||||
{"ellisonleao/gruvbox.nvim"},
|
||||
{ "lunarvim/colorschemes" },
|
||||
{ "ellisonleao/gruvbox.nvim" },
|
||||
{ "puremourning/vimspector" },
|
||||
{ "OmniSharp/omnisharp-vim" },
|
||||
{ "SirVer/ultisnips" },
|
||||
{ "CRAG666/code_runner.nvim" },
|
||||
}
|
||||
|
||||
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
|
||||
-- vim.api.nvim_create_autocmd("BufEnter", {
|
||||
-- pattern = { "*.json", "*.jsonc" },
|
||||
-- -- enable wrap mode for json files only
|
||||
-- command = "setlocal wrap",
|
||||
-- })
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- pattern = "zsh",
|
||||
-- callback = function()
|
||||
-- -- let treesitter use bash highlight for zsh files as well
|
||||
-- require("nvim-treesitter.highlight").attach(0, "bash")
|
||||
-- end,
|
||||
-- })
|
||||
-- vimspector options
|
||||
vim.g.vimspector_enable_mappings = 'HUMAN'
|
||||
vim.g.vimspector_enable_mappings_for_mode = {
|
||||
['<leader><leader>'] = { 'n', 'v' },
|
||||
}
|
||||
|
||||
-- code runner options
|
||||
require('code_runner').setup({
|
||||
filetype = {
|
||||
java = {
|
||||
"cd $dir &&",
|
||||
"javac $fileName &&",
|
||||
"java $fileNameWithoutExt"
|
||||
},
|
||||
python = "python3 -u",
|
||||
typescript = "deno run",
|
||||
rust = {
|
||||
"cd $dir &&",
|
||||
"rustc $fileName &&",
|
||||
"$dir/$fileNameWithoutExt"
|
||||
},
|
||||
cs = function(...)
|
||||
local root_dir = require("lspconfig").util.root_pattern "*.csproj" (vim.loop.cwd())
|
||||
return "cd " .. root_dir .. " && dotnet run$end"
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set('n', '<leader>r', ':RunCode<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>rf', ':RunFile<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>rft', ':RunFile tab<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>rp', ':RunProject<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>rc', ':RunClose<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>crf', ':CRFiletype<CR>', { noremap = true, silent = false })
|
||||
vim.keymap.set('n', '<leader>crp', ':CRProjects<CR>', { noremap = true, silent = false })
|
||||
|
|
|
@ -1,445 +0,0 @@
|
|||
-- Automatically generated packer.nvim plugin loader code
|
||||
|
||||
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
|
||||
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
|
||||
return
|
||||
end
|
||||
|
||||
vim.api.nvim_command('packadd packer.nvim')
|
||||
|
||||
local no_errors, error_msg = pcall(function()
|
||||
|
||||
_G._packer = _G._packer or {}
|
||||
_G._packer.inside_compile = true
|
||||
|
||||
local time
|
||||
local profile_info
|
||||
local should_profile = false
|
||||
if should_profile then
|
||||
local hrtime = vim.loop.hrtime
|
||||
profile_info = {}
|
||||
time = function(chunk, start)
|
||||
if start then
|
||||
profile_info[chunk] = hrtime()
|
||||
else
|
||||
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
||||
end
|
||||
end
|
||||
else
|
||||
time = function(chunk, start) end
|
||||
end
|
||||
|
||||
local function save_profiles(threshold)
|
||||
local sorted_times = {}
|
||||
for chunk_name, time_taken in pairs(profile_info) do
|
||||
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
|
||||
end
|
||||
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
|
||||
local results = {}
|
||||
for i, elem in ipairs(sorted_times) do
|
||||
if not threshold or threshold and elem[2] > threshold then
|
||||
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
||||
end
|
||||
end
|
||||
if threshold then
|
||||
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
|
||||
end
|
||||
|
||||
_G._packer.profile_output = results
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], true)
|
||||
local package_path_str = "/home/drk/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/drk/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/drk/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/drk/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/home/drk/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
||||
if not string.find(package.path, package_path_str, 1, true) then
|
||||
package.path = package.path .. ';' .. package_path_str
|
||||
end
|
||||
|
||||
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
|
||||
package.cpath = package.cpath .. ';' .. install_cpath_pattern
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], false)
|
||||
time([[try_loadstring definition]], true)
|
||||
local function try_loadstring(s, component, name)
|
||||
local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
|
||||
if not success then
|
||||
vim.schedule(function()
|
||||
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
|
||||
end)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
time([[try_loadstring definition]], false)
|
||||
time([[Defining packer_plugins]], true)
|
||||
_G.packer_plugins = {
|
||||
["Comment.nvim"] = {
|
||||
config = { "\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.comment\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/Comment.nvim",
|
||||
url = "https://github.com/numToStr/Comment.nvim"
|
||||
},
|
||||
LuaSnip = {
|
||||
config = { "\27LJ\2\nñ\3\0\0\v\0\23\00166\0\0\0'\2\1\0B\0\2\0024\1\0\0006\2\2\0009\2\3\0029\2\4\0029\2\5\0029\2\6\2\15\0\2\0X\3\f€\21\2\1\0\22\2\0\0029\3\a\0006\5\b\0B\5\1\2'\6\t\0'\a\n\0'\b\v\0'\t\f\0'\n\r\0B\3\a\2<\3\2\0019\2\a\0006\4\14\0B\4\1\2'\5\15\0B\2\3\0029\3\16\0\18\5\2\0B\3\2\2\15\0\3\0X\4\3€\21\3\1\0\22\3\0\3<\2\3\0016\3\0\0'\5\17\0B\3\2\0029\3\18\3B\3\1\0016\3\0\0'\5\19\0B\3\2\0029\3\18\0035\5\20\0=\1\21\5B\3\2\0016\3\0\0'\5\22\0B\3\2\0029\3\18\3B\3\1\1K\0\1\0\"luasnip.loaders.from_snipmate\npaths\1\0\0 luasnip.loaders.from_vscode\14lazy_load\29luasnip.loaders.from_lua\17is_directory\rsnippets\19get_config_dir\22friendly-snippets\nstart\vpacker\tpack\tsite\20get_runtime_dir\15join_paths\22friendly_snippets\fsources\fluasnip\fbuiltin\tlvim\15lvim.utils\frequire\2\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/LuaSnip",
|
||||
url = "https://github.com/L3MON4D3/LuaSnip"
|
||||
},
|
||||
["alpha-nvim"] = {
|
||||
config = { "\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20lvim.core.alpha\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/alpha-nvim",
|
||||
url = "https://github.com/goolord/alpha-nvim"
|
||||
},
|
||||
["bufferline.nvim"] = {
|
||||
config = { "\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.bufferline\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/bufferline.nvim",
|
||||
url = "https://github.com/akinsho/bufferline.nvim"
|
||||
},
|
||||
["cmp-buffer"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/cmp-buffer",
|
||||
url = "https://github.com/hrsh7th/cmp-buffer"
|
||||
},
|
||||
["cmp-nvim-lsp"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/cmp-nvim-lsp",
|
||||
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
|
||||
},
|
||||
["cmp-path"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/cmp-path",
|
||||
url = "https://github.com/hrsh7th/cmp-path"
|
||||
},
|
||||
cmp_luasnip = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/cmp_luasnip",
|
||||
url = "https://github.com/saadparwaiz1/cmp_luasnip"
|
||||
},
|
||||
colorschemes = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/colorschemes",
|
||||
url = "https://github.com/lunarvim/colorschemes"
|
||||
},
|
||||
["friendly-snippets"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/friendly-snippets",
|
||||
url = "https://github.com/rafamadriz/friendly-snippets"
|
||||
},
|
||||
["gitsigns.nvim"] = {
|
||||
config = { "\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23lvim.core.gitsigns\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/gitsigns.nvim",
|
||||
url = "https://github.com/lewis6991/gitsigns.nvim"
|
||||
},
|
||||
["gruvbox.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/gruvbox.nvim",
|
||||
url = "https://github.com/ellisonleao/gruvbox.nvim"
|
||||
},
|
||||
["indent-blankline.nvim"] = {
|
||||
config = { "\27LJ\2\nC\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\26lvim.core.indentlines\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/indent-blankline.nvim",
|
||||
url = "https://github.com/lukas-reineke/indent-blankline.nvim"
|
||||
},
|
||||
["lir.nvim"] = {
|
||||
config = { "\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18lvim.core.lir\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/lir.nvim",
|
||||
url = "https://github.com/christianchiarulli/lir.nvim"
|
||||
},
|
||||
["lualine.nvim"] = {
|
||||
config = { "\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.lualine\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/lualine.nvim",
|
||||
url = "https://github.com/nvim-lualine/lualine.nvim"
|
||||
},
|
||||
["lunar.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/lunar.nvim",
|
||||
url = "https://github.com/lunarvim/lunar.nvim"
|
||||
},
|
||||
["mason-lspconfig.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/mason-lspconfig.nvim",
|
||||
url = "https://github.com/williamboman/mason-lspconfig.nvim"
|
||||
},
|
||||
["mason.nvim"] = {
|
||||
config = { "\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20lvim.core.mason\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/mason.nvim",
|
||||
url = "https://github.com/williamboman/mason.nvim"
|
||||
},
|
||||
["neodev.nvim"] = {
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/neodev.nvim",
|
||||
url = "https://github.com/folke/neodev.nvim"
|
||||
},
|
||||
["nlsp-settings.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nlsp-settings.nvim",
|
||||
url = "https://github.com/tamago324/nlsp-settings.nvim"
|
||||
},
|
||||
["null-ls.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/null-ls.nvim",
|
||||
url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
|
||||
},
|
||||
["nvim-autopairs"] = {
|
||||
config = { "\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.autopairs\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-autopairs",
|
||||
url = "https://github.com/windwp/nvim-autopairs"
|
||||
},
|
||||
["nvim-cmp"] = {
|
||||
config = { "\27LJ\2\n`\0\0\3\0\6\0\v6\0\0\0009\0\1\0009\0\2\0\15\0\0\0X\1\5€6\0\3\0'\2\4\0B\0\2\0029\0\5\0B\0\1\1K\0\1\0\nsetup\18lvim.core.cmp\frequire\bcmp\fbuiltin\tlvim\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-cmp",
|
||||
url = "https://github.com/hrsh7th/nvim-cmp"
|
||||
},
|
||||
["nvim-dap"] = {
|
||||
config = { "\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18lvim.core.dap\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-dap",
|
||||
url = "https://github.com/mfussenegger/nvim-dap"
|
||||
},
|
||||
["nvim-dap-ui"] = {
|
||||
config = { "\27LJ\2\n>\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\rsetup_ui\18lvim.core.dap\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-dap-ui",
|
||||
url = "https://github.com/rcarriga/nvim-dap-ui"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-lspconfig",
|
||||
url = "https://github.com/neovim/nvim-lspconfig"
|
||||
},
|
||||
["nvim-navic"] = {
|
||||
config = { "\27LJ\2\nC\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\26lvim.core.breadcrumbs\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-navic",
|
||||
url = "https://github.com/SmiteshP/nvim-navic"
|
||||
},
|
||||
["nvim-tree.lua"] = {
|
||||
config = { "\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23lvim.core.nvimtree\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-tree.lua",
|
||||
url = "https://github.com/kyazdani42/nvim-tree.lua"
|
||||
},
|
||||
["nvim-treesitter"] = {
|
||||
config = { "\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.treesitter\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-treesitter",
|
||||
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||
},
|
||||
["nvim-ts-context-commentstring"] = {
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/nvim-ts-context-commentstring",
|
||||
url = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring"
|
||||
},
|
||||
["nvim-web-devicons"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-web-devicons",
|
||||
url = "https://github.com/kyazdani42/nvim-web-devicons"
|
||||
},
|
||||
["packer.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/packer.nvim",
|
||||
url = "https://github.com/wbthomason/packer.nvim"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/plenary.nvim",
|
||||
url = "https://github.com/nvim-lua/plenary.nvim"
|
||||
},
|
||||
["popup.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/popup.nvim",
|
||||
url = "https://github.com/nvim-lua/popup.nvim"
|
||||
},
|
||||
["project.nvim"] = {
|
||||
config = { "\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.project\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/project.nvim",
|
||||
url = "https://github.com/ahmedkhalf/project.nvim"
|
||||
},
|
||||
["schemastore.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/schemastore.nvim",
|
||||
url = "https://github.com/b0o/schemastore.nvim"
|
||||
},
|
||||
["structlog.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/structlog.nvim",
|
||||
url = "https://github.com/Tastyep/structlog.nvim"
|
||||
},
|
||||
["telescope-fzf-native.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/telescope-fzf-native.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
config = { "\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.telescope\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/telescope.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope.nvim"
|
||||
},
|
||||
["toggleterm.nvim"] = {
|
||||
config = { "\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23lvim.core.terminal\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/toggleterm.nvim",
|
||||
url = "https://github.com/akinsho/toggleterm.nvim"
|
||||
},
|
||||
["tokyonight.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/tokyonight.nvim",
|
||||
url = "https://github.com/folke/tokyonight.nvim"
|
||||
},
|
||||
["vim-illuminate"] = {
|
||||
config = { "\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.illuminate\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/vim-illuminate",
|
||||
url = "https://github.com/RRethy/vim-illuminate"
|
||||
},
|
||||
["which-key.nvim"] = {
|
||||
config = { "\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.which-key\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/which-key.nvim",
|
||||
url = "https://github.com/folke/which-key.nvim"
|
||||
}
|
||||
}
|
||||
|
||||
time([[Defining packer_plugins]], false)
|
||||
local module_lazy_loads = {
|
||||
["^neodev"] = "neodev.nvim"
|
||||
}
|
||||
local lazy_load_called = {['packer.load'] = true}
|
||||
local function lazy_load_module(module_name)
|
||||
local to_load = {}
|
||||
if lazy_load_called[module_name] then return nil end
|
||||
lazy_load_called[module_name] = true
|
||||
for module_pat, plugin_name in pairs(module_lazy_loads) do
|
||||
if not _G.packer_plugins[plugin_name].loaded and string.match(module_name, module_pat) then
|
||||
to_load[#to_load + 1] = plugin_name
|
||||
end
|
||||
end
|
||||
|
||||
if #to_load > 0 then
|
||||
require('packer.load')(to_load, {module = module_name}, _G.packer_plugins)
|
||||
local loaded_mod = package.loaded[module_name]
|
||||
if loaded_mod then
|
||||
return function(modname) return loaded_mod end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if not vim.g.packer_custom_loader_enabled then
|
||||
table.insert(package.loaders, 1, lazy_load_module)
|
||||
vim.g.packer_custom_loader_enabled = true
|
||||
end
|
||||
|
||||
-- Config for: vim-illuminate
|
||||
time([[Config for vim-illuminate]], true)
|
||||
try_loadstring("\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.illuminate\frequire\0", "config", "vim-illuminate")
|
||||
time([[Config for vim-illuminate]], false)
|
||||
-- Config for: nvim-tree.lua
|
||||
time([[Config for nvim-tree.lua]], true)
|
||||
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23lvim.core.nvimtree\frequire\0", "config", "nvim-tree.lua")
|
||||
time([[Config for nvim-tree.lua]], false)
|
||||
-- Config for: nvim-navic
|
||||
time([[Config for nvim-navic]], true)
|
||||
try_loadstring("\27LJ\2\nC\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\26lvim.core.breadcrumbs\frequire\0", "config", "nvim-navic")
|
||||
time([[Config for nvim-navic]], false)
|
||||
-- Config for: nvim-cmp
|
||||
time([[Config for nvim-cmp]], true)
|
||||
try_loadstring("\27LJ\2\n`\0\0\3\0\6\0\v6\0\0\0009\0\1\0009\0\2\0\15\0\0\0X\1\5€6\0\3\0'\2\4\0B\0\2\0029\0\5\0B\0\1\1K\0\1\0\nsetup\18lvim.core.cmp\frequire\bcmp\fbuiltin\tlvim\0", "config", "nvim-cmp")
|
||||
time([[Config for nvim-cmp]], false)
|
||||
-- Config for: nvim-autopairs
|
||||
time([[Config for nvim-autopairs]], true)
|
||||
try_loadstring("\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.autopairs\frequire\0", "config", "nvim-autopairs")
|
||||
time([[Config for nvim-autopairs]], false)
|
||||
-- Config for: nvim-treesitter
|
||||
time([[Config for nvim-treesitter]], true)
|
||||
try_loadstring("\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.treesitter\frequire\0", "config", "nvim-treesitter")
|
||||
time([[Config for nvim-treesitter]], false)
|
||||
-- Config for: alpha-nvim
|
||||
time([[Config for alpha-nvim]], true)
|
||||
try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20lvim.core.alpha\frequire\0", "config", "alpha-nvim")
|
||||
time([[Config for alpha-nvim]], false)
|
||||
-- Config for: lir.nvim
|
||||
time([[Config for lir.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18lvim.core.lir\frequire\0", "config", "lir.nvim")
|
||||
time([[Config for lir.nvim]], false)
|
||||
-- Config for: lualine.nvim
|
||||
time([[Config for lualine.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.lualine\frequire\0", "config", "lualine.nvim")
|
||||
time([[Config for lualine.nvim]], false)
|
||||
-- Config for: telescope.nvim
|
||||
time([[Config for telescope.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.telescope\frequire\0", "config", "telescope.nvim")
|
||||
time([[Config for telescope.nvim]], false)
|
||||
-- Config for: nvim-dap-ui
|
||||
time([[Config for nvim-dap-ui]], true)
|
||||
try_loadstring("\27LJ\2\n>\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\rsetup_ui\18lvim.core.dap\frequire\0", "config", "nvim-dap-ui")
|
||||
time([[Config for nvim-dap-ui]], false)
|
||||
-- Config for: nvim-dap
|
||||
time([[Config for nvim-dap]], true)
|
||||
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18lvim.core.dap\frequire\0", "config", "nvim-dap")
|
||||
time([[Config for nvim-dap]], false)
|
||||
-- Config for: project.nvim
|
||||
time([[Config for project.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.project\frequire\0", "config", "project.nvim")
|
||||
time([[Config for project.nvim]], false)
|
||||
-- Config for: indent-blankline.nvim
|
||||
time([[Config for indent-blankline.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nC\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\26lvim.core.indentlines\frequire\0", "config", "indent-blankline.nvim")
|
||||
time([[Config for indent-blankline.nvim]], false)
|
||||
-- Config for: LuaSnip
|
||||
time([[Config for LuaSnip]], true)
|
||||
try_loadstring("\27LJ\2\nñ\3\0\0\v\0\23\00166\0\0\0'\2\1\0B\0\2\0024\1\0\0006\2\2\0009\2\3\0029\2\4\0029\2\5\0029\2\6\2\15\0\2\0X\3\f€\21\2\1\0\22\2\0\0029\3\a\0006\5\b\0B\5\1\2'\6\t\0'\a\n\0'\b\v\0'\t\f\0'\n\r\0B\3\a\2<\3\2\0019\2\a\0006\4\14\0B\4\1\2'\5\15\0B\2\3\0029\3\16\0\18\5\2\0B\3\2\2\15\0\3\0X\4\3€\21\3\1\0\22\3\0\3<\2\3\0016\3\0\0'\5\17\0B\3\2\0029\3\18\3B\3\1\0016\3\0\0'\5\19\0B\3\2\0029\3\18\0035\5\20\0=\1\21\5B\3\2\0016\3\0\0'\5\22\0B\3\2\0029\3\18\3B\3\1\1K\0\1\0\"luasnip.loaders.from_snipmate\npaths\1\0\0 luasnip.loaders.from_vscode\14lazy_load\29luasnip.loaders.from_lua\17is_directory\rsnippets\19get_config_dir\22friendly-snippets\nstart\vpacker\tpack\tsite\20get_runtime_dir\15join_paths\22friendly_snippets\fsources\fluasnip\fbuiltin\tlvim\15lvim.utils\frequire\2\0", "config", "LuaSnip")
|
||||
time([[Config for LuaSnip]], false)
|
||||
-- Config for: mason.nvim
|
||||
time([[Config for mason.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20lvim.core.mason\frequire\0", "config", "mason.nvim")
|
||||
time([[Config for mason.nvim]], false)
|
||||
vim.cmd [[augroup packer_load_aucmds]]
|
||||
vim.cmd [[au!]]
|
||||
-- Event lazy-loads
|
||||
time([[Defining lazy-load event autocommands]], true)
|
||||
vim.cmd [[au BufRead * ++once lua require("packer.load")({'gitsigns.nvim', 'Comment.nvim'}, { event = "BufRead *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufReadPost * ++once lua require("packer.load")({'nvim-ts-context-commentstring'}, { event = "BufReadPost *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufWinEnter * ++once lua require("packer.load")({'which-key.nvim', 'toggleterm.nvim', 'bufferline.nvim'}, { event = "BufWinEnter *" }, _G.packer_plugins)]]
|
||||
time([[Defining lazy-load event autocommands]], false)
|
||||
vim.cmd("augroup END")
|
||||
|
||||
_G._packer.inside_compile = false
|
||||
if _G._packer.needs_bufread == true then
|
||||
vim.cmd("doautocmd BufRead")
|
||||
end
|
||||
_G._packer.needs_bufread = false
|
||||
|
||||
if should_profile then save_profiles() end
|
||||
|
||||
end)
|
||||
|
||||
if not no_errors then
|
||||
error_msg = error_msg:gsub('"', '\\"')
|
||||
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
||||
end
|
|
@ -1,68 +0,0 @@
|
|||
{
|
||||
"browse_category_filter": "^F",
|
||||
"browse_playlists_delete": "KEY_DC",
|
||||
"browse_playlists_new": "M-n",
|
||||
"browse_playlists_rename": "M-r",
|
||||
"browse_playlists_save": "M-s",
|
||||
"context_menu": "M-enter",
|
||||
"hotkeys_backup": "M-b",
|
||||
"hotkeys_reset_to_default": "M-r",
|
||||
"key_down": "j",
|
||||
"key_end": "KEY_END",
|
||||
"key_home": "KEY_HOME",
|
||||
"key_left": "h",
|
||||
"key_page_down": "KEY_NPAGE",
|
||||
"key_page_up": "KEY_PPAGE",
|
||||
"key_right": "l",
|
||||
"key_up": "k",
|
||||
"lyrics_retry": "r",
|
||||
"metadata_rescan": "^R",
|
||||
"navigate_console": "`",
|
||||
"navigate_hotkeys": "?",
|
||||
"navigate_jump_to_playing": "x",
|
||||
"navigate_library": "a",
|
||||
"navigate_library_album_artists": "4",
|
||||
"navigate_library_browse": "b",
|
||||
"navigate_library_browse_albums": "2",
|
||||
"navigate_library_browse_artists": "1",
|
||||
"navigate_library_browse_directories": "d",
|
||||
"navigate_library_browse_genres": "3",
|
||||
"navigate_library_choose_category": "6",
|
||||
"navigate_library_filter": "f",
|
||||
"navigate_library_play_queue": "n",
|
||||
"navigate_library_playlists": "5",
|
||||
"navigate_library_tracks": "t",
|
||||
"navigate_lyrics": "^L",
|
||||
"navigate_settings": "s",
|
||||
"play_queue_clear": "X",
|
||||
"play_queue_delete": "KEY_DC",
|
||||
"play_queue_hot_swap": "M-a",
|
||||
"play_queue_move_down": "M-down",
|
||||
"play_queue_move_up": "M-up",
|
||||
"play_queue_playlist_delete": "M-x",
|
||||
"play_queue_playlist_load": "M-l",
|
||||
"play_queue_playlist_rename": "M-r",
|
||||
"play_queue_playlist_save": "M-s",
|
||||
"playback_next": "M-l",
|
||||
"playback_previous": "M-j",
|
||||
"playback_seek_back": "u",
|
||||
"playback_seek_back_proportional": "y",
|
||||
"playback_seek_forward": "o",
|
||||
"playback_seek_forward_proportional": "p",
|
||||
"playback_stop": "^X",
|
||||
"playback_toggle_mute": "m",
|
||||
"playback_toggle_pause": "^P",
|
||||
"playback_toggle_repeat": ".",
|
||||
"playback_toggle_shuffle": ",",
|
||||
"playback_volume_down": "M-k",
|
||||
"playback_volume_up": "M-i",
|
||||
"search_input_toggle_match_type": "M-m",
|
||||
"show_equalizer": "^E",
|
||||
"toggle_visualizer": "v",
|
||||
"track_list_change_sort_order": "M-s",
|
||||
"track_list_next_group": "]",
|
||||
"track_list_play_from_top": "M-P",
|
||||
"track_list_previous_group": "[",
|
||||
"track_list_rate_track": "r",
|
||||
"view_refresh": "KEY_F(5)"
|
||||
}
|
|
@ -1,779 +0,0 @@
|
|||
## ____ __
|
||||
## / __ \_________ _/ /_____
|
||||
## / / / / ___/ __ `/ //_/ _ \
|
||||
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
## /_____/_/ \__,_/_/|_|\___/ My custom neofetch config
|
||||
##
|
||||
|
||||
print_info() {
|
||||
prin " "
|
||||
info "$(color 1) OS " distro
|
||||
info "$(color 2) VER" kernel
|
||||
info "$(color 3) UP " uptime
|
||||
info "$(color 4) PKG" packages
|
||||
info "$(color 5) DE " de
|
||||
info "$(color 6) CPU" cpu
|
||||
info "$(color 7) GPU" gpu
|
||||
info "$(color 8) MEM" memory
|
||||
prin "$(color 1) $(color 2) $(color 3) $(color 4) $(color 5) $(color 6) $(color 7) $(color 8)"
|
||||
}
|
||||
#### TITLE
|
||||
# Hide/Show Fully qualified domain name.
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --title_fqdn
|
||||
title_fqdn="off"
|
||||
|
||||
|
||||
#### KERNEL
|
||||
# Shorten the output of the kernel function.
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --kernel_shorthand
|
||||
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
|
||||
# Example:
|
||||
# on: '4.8.9-1-ARCH'
|
||||
# off: 'Linux 4.8.9-1-ARCH'
|
||||
kernel_shorthand="on"
|
||||
|
||||
|
||||
#### DISTRO
|
||||
# Shorten the output of the distro function
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'tiny', 'off'
|
||||
# Flag: --distro_shorthand
|
||||
# Supports: Everything except Windows and Haiku
|
||||
distro_shorthand="off"
|
||||
|
||||
# Show/Hide OS Architecture.
|
||||
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --os_arch
|
||||
# Example:
|
||||
# on: 'Arch Linux x86_64'
|
||||
# off: 'Arch Linux'
|
||||
os_arch="on"
|
||||
|
||||
|
||||
#### UPTIME
|
||||
# Shorten the output of the uptime function
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'tiny', 'off'
|
||||
# Flag: --uptime_shorthand
|
||||
# Example:
|
||||
# on: '2 days, 10 hours, 3 mins'
|
||||
# tiny: '2d 10h 3m'
|
||||
# off: '2 days, 10 hours, 3 minutes'
|
||||
uptime_shorthand="on"
|
||||
|
||||
|
||||
#### MEMORY
|
||||
# Show memory pecentage in output.
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --memory_percent
|
||||
# Example:
|
||||
# on: '1801MiB / 7881MiB (22%)'
|
||||
# off: '1801MiB / 7881MiB'
|
||||
memory_percent="off"
|
||||
|
||||
# Change memory output unit.
|
||||
# Default: 'mib'
|
||||
# Values: 'kib', 'mib', 'gib'
|
||||
# Flag: --memory_unit
|
||||
# Example:
|
||||
# kib '1020928KiB / 7117824KiB'
|
||||
# mib '1042MiB / 6951MiB'
|
||||
# gib: ' 0.98GiB / 6.79GiB'
|
||||
memory_unit="mib"
|
||||
|
||||
|
||||
#### PACKAGES
|
||||
# Show/Hide Package Manager names.
|
||||
# Default: 'tiny'
|
||||
# Values: 'on', 'tiny' 'off'
|
||||
# Flag: --package_managers
|
||||
# Example:
|
||||
# on: '998 (pacman), 8 (flatpak), 4 (snap)'
|
||||
# tiny: '908 (pacman, flatpak, snap)'
|
||||
# off: '908'
|
||||
package_managers="on"
|
||||
|
||||
|
||||
#### SHELL
|
||||
# Show the path to $SHELL
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --shell_path
|
||||
# Example:
|
||||
# on: '/bin/bash'
|
||||
# off: 'bash'
|
||||
shell_path="off"
|
||||
|
||||
# Show $SHELL version
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --shell_version
|
||||
# Example:
|
||||
# on: 'bash 4.4.5'
|
||||
# off: 'bash'
|
||||
shell_version="on"
|
||||
|
||||
|
||||
#### CPU
|
||||
# CPU speed type
|
||||
# Default: 'bios_limit'
|
||||
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
|
||||
# Flag: --speed_type
|
||||
# Supports: Linux with 'cpufreq'
|
||||
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
|
||||
speed_type="bios_limit"
|
||||
|
||||
# CPU speed shorthand
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'.
|
||||
# Flag: --speed_shorthand
|
||||
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
|
||||
#
|
||||
# Example:
|
||||
# on: 'i7-6500U (4) @ 3.1GHz'
|
||||
# off: 'i7-6500U (4) @ 3.100GHz'
|
||||
speed_shorthand="off"
|
||||
|
||||
# Enable/Disable CPU brand in output.
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --cpu_brand
|
||||
#
|
||||
# Example:
|
||||
# on: 'Intel i7-6500U'
|
||||
# off: 'i7-6500U (4)'
|
||||
cpu_brand="on"
|
||||
|
||||
# CPU Speed
|
||||
# Hide/Show CPU speed.
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --cpu_speed
|
||||
#
|
||||
# Example:
|
||||
# on: 'Intel i7-6500U (4) @ 3.1GHz'
|
||||
# off: 'Intel i7-6500U (4)'
|
||||
cpu_speed="on"
|
||||
|
||||
# CPU Cores
|
||||
# Display CPU cores in output
|
||||
#
|
||||
# Default: 'logical'
|
||||
# Values: 'logical', 'physical', 'off'
|
||||
# Flag: --cpu_cores
|
||||
# Support: 'physical' doesn't work on BSD.
|
||||
#
|
||||
# Example:
|
||||
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
|
||||
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
|
||||
# off: 'Intel i7-6500U @ 3.1GHz'
|
||||
cpu_cores="logical"
|
||||
|
||||
# CPU Temperature
|
||||
# Hide/Show CPU temperature.
|
||||
# Note the temperature is added to the regular CPU function.
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'C', 'F', 'off'
|
||||
# Flag: --cpu_temp
|
||||
# Supports: Linux, BSD
|
||||
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
|
||||
# coretemp kernel module. This only supports newer Intel processors.
|
||||
#
|
||||
# Example:
|
||||
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
|
||||
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
|
||||
# off: 'Intel i7-6500U (4) @ 3.1GHz'
|
||||
cpu_temp="off"
|
||||
|
||||
|
||||
# GPU
|
||||
|
||||
|
||||
# Enable/Disable GPU Brand
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --gpu_brand
|
||||
#
|
||||
# Example:
|
||||
# on: 'AMD HD 7950'
|
||||
# off: 'HD 7950'
|
||||
gpu_brand="on"
|
||||
|
||||
# Which GPU to display
|
||||
#
|
||||
# Default: 'all'
|
||||
# Values: 'all', 'dedicated', 'integrated'
|
||||
# Flag: --gpu_type
|
||||
# Supports: Linux
|
||||
#
|
||||
# Example:
|
||||
# all:
|
||||
# GPU1: AMD HD 7950
|
||||
# GPU2: Intel Integrated Graphics
|
||||
#
|
||||
# dedicated:
|
||||
# GPU1: AMD HD 7950
|
||||
#
|
||||
# integrated:
|
||||
# GPU1: Intel Integrated Graphics
|
||||
gpu_type="all"
|
||||
|
||||
|
||||
# Resolution
|
||||
|
||||
|
||||
# Display refresh rate next to each monitor
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --refresh_rate
|
||||
# Supports: Doesn't work on Windows.
|
||||
#
|
||||
# Example:
|
||||
# on: '1920x1080 @ 60Hz'
|
||||
# off: '1920x1080'
|
||||
refresh_rate="off"
|
||||
|
||||
|
||||
# Gtk Theme / Icons / Font
|
||||
|
||||
|
||||
# Shorten output of GTK Theme / Icons / Font
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --gtk_shorthand
|
||||
#
|
||||
# Example:
|
||||
# on: 'Numix, Adwaita'
|
||||
# off: 'Numix [GTK2], Adwaita [GTK3]'
|
||||
gtk_shorthand="off"
|
||||
|
||||
|
||||
# Enable/Disable gtk2 Theme / Icons / Font
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --gtk2
|
||||
#
|
||||
# Example:
|
||||
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
||||
# off: 'Adwaita [GTK3]'
|
||||
gtk2="on"
|
||||
|
||||
# Enable/Disable gtk3 Theme / Icons / Font
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --gtk3
|
||||
#
|
||||
# Example:
|
||||
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
||||
# off: 'Numix [GTK2]'
|
||||
gtk3="on"
|
||||
|
||||
|
||||
# IP Address
|
||||
|
||||
|
||||
# Website to ping for the public IP
|
||||
#
|
||||
# Default: 'http://ident.me'
|
||||
# Values: 'url'
|
||||
# Flag: --ip_host
|
||||
public_ip_host="http://ident.me"
|
||||
|
||||
# Public IP timeout.
|
||||
#
|
||||
# Default: '2'
|
||||
# Values: 'int'
|
||||
# Flag: --ip_timeout
|
||||
public_ip_timeout=2
|
||||
|
||||
|
||||
# Desktop Environment
|
||||
|
||||
|
||||
# Show Desktop Environment version
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --de_version
|
||||
de_version="on"
|
||||
|
||||
|
||||
# Disk
|
||||
|
||||
|
||||
# Which disks to display.
|
||||
# The values can be any /dev/sdXX, mount point or directory.
|
||||
# NOTE: By default we only show the disk info for '/'.
|
||||
#
|
||||
# Default: '/'
|
||||
# Values: '/', '/dev/sdXX', '/path/to/drive'.
|
||||
# Flag: --disk_show
|
||||
#
|
||||
# Example:
|
||||
# disk_show=('/' '/dev/sdb1'):
|
||||
# 'Disk (/): 74G / 118G (66%)'
|
||||
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
|
||||
#
|
||||
# disk_show=('/'):
|
||||
# 'Disk (/): 74G / 118G (66%)'
|
||||
#
|
||||
disk_show=('/')
|
||||
|
||||
# Disk subtitle.
|
||||
# What to append to the Disk subtitle.
|
||||
#
|
||||
# Default: 'mount'
|
||||
# Values: 'mount', 'name', 'dir', 'none'
|
||||
# Flag: --disk_subtitle
|
||||
#
|
||||
# Example:
|
||||
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
|
||||
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
|
||||
#
|
||||
# mount: 'Disk (/): 74G / 118G (66%)'
|
||||
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
|
||||
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
|
||||
#
|
||||
# dir: 'Disk (/): 74G / 118G (66%)'
|
||||
# 'Disk (Local Disk): 74G / 118G (66%)'
|
||||
# 'Disk (Videos): 74G / 118G (66%)'
|
||||
#
|
||||
# none: 'Disk: 74G / 118G (66%)'
|
||||
# 'Disk: 74G / 118G (66%)'
|
||||
# 'Disk: 74G / 118G (66%)'
|
||||
disk_subtitle="mount"
|
||||
|
||||
# Disk percent.
|
||||
# Show/Hide disk percent.
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --disk_percent
|
||||
#
|
||||
# Example:
|
||||
# on: 'Disk (/): 74G / 118G (66%)'
|
||||
# off: 'Disk (/): 74G / 118G'
|
||||
disk_percent="on"
|
||||
|
||||
|
||||
# Song
|
||||
|
||||
|
||||
# Manually specify a music player.
|
||||
#
|
||||
# Default: 'auto'
|
||||
# Values: 'auto', 'player-name'
|
||||
# Flag: --music_player
|
||||
#
|
||||
# Available values for 'player-name':
|
||||
#
|
||||
# amarok
|
||||
# audacious
|
||||
# banshee
|
||||
# bluemindo
|
||||
# clementine
|
||||
# cmus
|
||||
# deadbeef
|
||||
# deepin-music
|
||||
# dragon
|
||||
# elisa
|
||||
# exaile
|
||||
# gnome-music
|
||||
# gmusicbrowser
|
||||
# gogglesmm
|
||||
# guayadeque
|
||||
# io.elementary.music
|
||||
# iTunes
|
||||
# juk
|
||||
# lollypop
|
||||
# mocp
|
||||
# mopidy
|
||||
# mpd
|
||||
# muine
|
||||
# netease-cloud-music
|
||||
# olivia
|
||||
# playerctl
|
||||
# pogo
|
||||
# pragha
|
||||
# qmmp
|
||||
# quodlibet
|
||||
# rhythmbox
|
||||
# sayonara
|
||||
# smplayer
|
||||
# spotify
|
||||
# strawberry
|
||||
# tauonmb
|
||||
# tomahawk
|
||||
# vlc
|
||||
# xmms2d
|
||||
# xnoise
|
||||
# yarock
|
||||
music_player="mpd"
|
||||
|
||||
# Format to display song information.
|
||||
#
|
||||
# Default: '%artist% - %album% - %title%'
|
||||
# Values: '%artist%', '%album%', '%title%'
|
||||
# Flag: --song_format
|
||||
#
|
||||
# Example:
|
||||
# default: 'Song: Jet - Get Born - Sgt Major'
|
||||
song_format="%artist% - %album% - %title%"
|
||||
|
||||
# Print the Artist, Album and Title on separate lines
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --song_shorthand
|
||||
#
|
||||
# Example:
|
||||
# on: 'Artist: The Fratellis'
|
||||
# 'Album: Costello Music'
|
||||
# 'Song: Chelsea Dagger'
|
||||
#
|
||||
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
|
||||
song_shorthand="off"
|
||||
|
||||
# 'mpc' arguments (specify a host, password etc).
|
||||
#
|
||||
# Default: ''
|
||||
# Example: mpc_args=(-h HOST -P PASSWORD)
|
||||
mpc_args=()
|
||||
|
||||
|
||||
# Text Colors
|
||||
|
||||
|
||||
# Text Colors
|
||||
#
|
||||
# Default: 'distro'
|
||||
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
||||
# Flag: --colors
|
||||
#
|
||||
# Each number represents a different part of the text in
|
||||
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
|
||||
#
|
||||
# Example:
|
||||
# colors=(distro) - Text is colored based on Distro colors.
|
||||
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
|
||||
colors=(distro)
|
||||
|
||||
|
||||
# Text Options
|
||||
|
||||
|
||||
# Toggle bold text
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --bold
|
||||
bold="on"
|
||||
|
||||
# Enable/Disable Underline
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --underline
|
||||
underline_enabled="on"
|
||||
|
||||
# Underline character
|
||||
#
|
||||
# Default: '-'
|
||||
# Values: 'string'
|
||||
# Flag: --underline_char
|
||||
underline_char="-"
|
||||
|
||||
|
||||
# Info Separator
|
||||
# Replace the default separator with the specified string.
|
||||
#
|
||||
# Default: ':'
|
||||
# Flag: --separator
|
||||
#
|
||||
# Example:
|
||||
# separator="->": 'Shell-> bash'
|
||||
# separator=" =": 'WM = dwm'
|
||||
separator=":"
|
||||
|
||||
|
||||
# Color Blocks
|
||||
|
||||
|
||||
# Color block range
|
||||
# The range of colors to print.
|
||||
#
|
||||
# Default: '0', '15'
|
||||
# Values: 'num'
|
||||
# Flag: --block_range
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# Display colors 0-7 in the blocks. (8 colors)
|
||||
# neofetch --block_range 0 7
|
||||
#
|
||||
# Display colors 0-15 in the blocks. (16 colors)
|
||||
# neofetch --block_range 0 15
|
||||
block_range=(0 15)
|
||||
|
||||
# Toggle color blocks
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --color_blocks
|
||||
color_blocks="on"
|
||||
|
||||
# Color block width in spaces
|
||||
#
|
||||
# Default: '3'
|
||||
# Values: 'num'
|
||||
# Flag: --block_width
|
||||
block_width=3
|
||||
|
||||
# Color block height in lines
|
||||
#
|
||||
# Default: '1'
|
||||
# Values: 'num'
|
||||
# Flag: --block_height
|
||||
block_height=1
|
||||
|
||||
# Color Alignment
|
||||
#
|
||||
# Default: 'auto'
|
||||
# Values: 'auto', 'num'
|
||||
# Flag: --col_offset
|
||||
#
|
||||
# Number specifies how far from the left side of the terminal (in spaces) to
|
||||
# begin printing the columns, in case you want to e.g. center them under your
|
||||
# text.
|
||||
# Example:
|
||||
# col_offset="auto" - Default behavior of neofetch
|
||||
# col_offset=7 - Leave 7 spaces then print the colors
|
||||
col_offset="auto"
|
||||
|
||||
# Progress Bars
|
||||
|
||||
|
||||
# Bar characters
|
||||
#
|
||||
# Default: '-', '='
|
||||
# Values: 'string', 'string'
|
||||
# Flag: --bar_char
|
||||
#
|
||||
# Example:
|
||||
# neofetch --bar_char 'elapsed' 'total'
|
||||
# neofetch --bar_char '-' '='
|
||||
bar_char_elapsed="-"
|
||||
bar_char_total="="
|
||||
|
||||
# Toggle Bar border
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --bar_border
|
||||
bar_border="on"
|
||||
|
||||
# Progress bar length in spaces
|
||||
# Number of chars long to make the progress bars.
|
||||
#
|
||||
# Default: '15'
|
||||
# Values: 'num'
|
||||
# Flag: --bar_length
|
||||
bar_length=15
|
||||
|
||||
# Progress bar colors
|
||||
# When set to distro, uses your distro's logo colors.
|
||||
#
|
||||
# Default: 'distro', 'distro'
|
||||
# Values: 'distro', 'num'
|
||||
# Flag: --bar_colors
|
||||
#
|
||||
# Example:
|
||||
# neofetch --bar_colors 3 4
|
||||
# neofetch --bar_colors distro 5
|
||||
bar_color_elapsed="distro"
|
||||
bar_color_total="distro"
|
||||
|
||||
|
||||
# Info display
|
||||
# Display a bar with the info.
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'bar', 'infobar', 'barinfo', 'off'
|
||||
# Flags: --cpu_display
|
||||
# --memory_display
|
||||
# --battery_display
|
||||
# --disk_display
|
||||
#
|
||||
# Example:
|
||||
# bar: '[---=======]'
|
||||
# infobar: 'info [---=======]'
|
||||
# barinfo: '[---=======] info'
|
||||
# off: 'info'
|
||||
cpu_display="off"
|
||||
memory_display="off"
|
||||
battery_display="off"
|
||||
disk_display="off"
|
||||
|
||||
|
||||
# Backend Settings
|
||||
|
||||
|
||||
# Image backend.
|
||||
#
|
||||
# Default: 'ascii'
|
||||
# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
|
||||
# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
|
||||
# Flag: --backend
|
||||
image_backend="ascii"
|
||||
|
||||
# Image Source
|
||||
#
|
||||
# Which image or ascii file to display.
|
||||
#
|
||||
# Default: 'auto'
|
||||
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
|
||||
# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
|
||||
# Flag: --source
|
||||
#
|
||||
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
|
||||
# In ascii mode, distro ascii art will be used and in an image mode, your
|
||||
# wallpaper will be used.
|
||||
image_source="auto"
|
||||
|
||||
|
||||
#### ASCII OPTIONS
|
||||
# Ascii distro
|
||||
# Which distro's ascii art to display.
|
||||
# Default: 'auto'
|
||||
# Values: 'auto', 'distro_name'
|
||||
# Flag: --ascii_distro
|
||||
# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS",
|
||||
# "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs,
|
||||
# ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock,
|
||||
# Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
|
||||
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
|
||||
# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
|
||||
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
|
||||
# DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary,
|
||||
# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
|
||||
# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo,
|
||||
# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
|
||||
# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
|
||||
# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
|
||||
# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
|
||||
# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
|
||||
# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
|
||||
# NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba,
|
||||
# OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD,
|
||||
# Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint,
|
||||
# popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix,
|
||||
# Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan,
|
||||
# Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific,
|
||||
# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz,
|
||||
# SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS,
|
||||
# openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails,
|
||||
# Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio,
|
||||
# Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin,
|
||||
# and IRIX have ascii logos
|
||||
# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
|
||||
# Use '{distro name}_old' to use the old logos.
|
||||
# NOTE: Ubuntu has flavor variants.
|
||||
# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
|
||||
# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
|
||||
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
|
||||
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
|
||||
# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
|
||||
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
|
||||
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
|
||||
# postmarketOS, and Void have a smaller logo variant.
|
||||
# Use '{distro name}_small' to use the small variants.
|
||||
ascii_distro="arch_small"
|
||||
|
||||
# Ascii Colors
|
||||
# Default: 'distro'
|
||||
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
||||
# Flag: --ascii_colors
|
||||
# Example:
|
||||
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
|
||||
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
|
||||
ascii_colors=(distro)
|
||||
|
||||
# Bold ascii logo
|
||||
# Whether or not to bold the ascii logo.
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --ascii_bold
|
||||
ascii_bold="on"
|
||||
|
||||
#### IMAGE OPTIONS
|
||||
# Image loop
|
||||
# Setting this to on will make neofetch redraw the image constantly until
|
||||
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --loop
|
||||
image_loop="off"
|
||||
|
||||
# Thumbnail directory
|
||||
# Default: '~/.cache/thumbnails/neofetch'
|
||||
# Values: 'dir'
|
||||
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
|
||||
|
||||
# Crop mode
|
||||
# Default: 'normal'
|
||||
# Values: 'normal', 'fit', 'fill'
|
||||
# Flag: --crop_mode
|
||||
# See this wiki page to learn about the fit and fill options.
|
||||
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
|
||||
crop_mode="normal"
|
||||
|
||||
# Crop offset
|
||||
# Note: Only affects 'normal' crop mode.
|
||||
# Default: 'center'
|
||||
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
|
||||
# 'east', 'southwest', 'south', 'southeast'
|
||||
# Flag: --crop_offset
|
||||
crop_offset="center"
|
||||
|
||||
# Image size
|
||||
# The image is half the terminal width by default.
|
||||
# Default: 'auto'
|
||||
# Values: 'auto', '00px', '00%', 'none'
|
||||
# Flags: --image_size
|
||||
# --size
|
||||
image_size="auto"
|
||||
|
||||
# Gap between image and text
|
||||
# Default: '3'
|
||||
# Values: 'num', '-num'
|
||||
# Flag: --gap
|
||||
gap=3
|
||||
|
||||
# Image offsets
|
||||
# Only works with the w3m backend.
|
||||
# Default: '0'
|
||||
# Values: 'px'
|
||||
# Flags: --xoffset
|
||||
# --yoffset
|
||||
yoffset=0
|
||||
xoffset=0
|
||||
|
||||
# Image background color
|
||||
# Only works with the w3m backend.
|
||||
# Default: ''
|
||||
# Values: 'color', 'blue'
|
||||
# Flag: --bg_color
|
|
@ -48,3 +48,4 @@ highlight article ":.*\\(image\\)$" blue default
|
|||
highlight article ":.*\\(embedded flash\\)$" magenta default
|
||||
|
||||
browser w3m
|
||||
macro v set browser "mpv %u" ; open-in-browser ; set browser "elinks %u"
|
||||
|
|
|
@ -1,42 +1,99 @@
|
|||
http://static.fsf.org/fsforg/rss/news.xml "~FSF News"
|
||||
http://static.fsf.org/fsforg/rss/blogs.xml "~FSF Blogs"
|
||||
https://fsfe.org/news/news.en.rss "~FSFE News"
|
||||
https://dot.kde.org/rss.xml "~KDE Dot News"
|
||||
https://planet.kde.org/global/atom.xml "~Planet KDE"
|
||||
https://pointieststick.com/feed/ "~This Week on KDE"
|
||||
https://www.kdeblog.com/rss "~KDE Blog"
|
||||
https://thisweek.gnome.org/index.xml "~This Week on GNOME"
|
||||
https://www.omgubuntu.co.uk/feed "~OMG Ubuntu!"
|
||||
https://www.omglinux.com/feed "~OMG!Linux"
|
||||
https://blog.thunderbird.net/feed/ "~The Thunderbird Blog"
|
||||
https://thelinuxexp.com/feed.xml "~The Linux Experiment"
|
||||
https://techhut.tv/feed/ "~Techhut Media"
|
||||
https://techhut.tv/feed/ "~TechHut Media"
|
||||
https://itsfoss.com/rss/ "~Its FOSS!"
|
||||
https://thelinuxcast.org/feed/feed.xml "~The Linux Cast"
|
||||
https://9to5linux.com/feed/atom "~9to5Linux"
|
||||
https://blog.elementary.io/feed.xml "~elementary OS Blog"
|
||||
https://blog.zorin.com/index.xml "~Zorin OS Blog"
|
||||
http://blog.linuxmint.com/?feed=rss2 "~Linux Mint Blog"
|
||||
https://lukesmith.xyz/rss.xml "~Luke Smith"
|
||||
https://notrelated.xyz/rss "~Not Related"
|
||||
https://landchad.net/rss.xml "~Landchad"
|
||||
https://based.cooking/rss.xml "~Based Cooking"
|
||||
https://artixlinux.org/feed.php "~Artix Linux"
|
||||
https://www.archlinux.org/feeds/news/ "~Arch Linux"
|
||||
https://switchedtolinux.com/tutorials?format=feed&type=rss "~Switched to Linux - Tutorials"
|
||||
https://switchedtolinux.com/tin-foil-hat-time?format=feed&type=rss "~Switched to Linux - Tin Foil Hat Time"
|
||||
https://switchedtolinux.com/news?format=feed&type=rss "~Switched to Linux - Weekly News Roundup"
|
||||
https://switchedtolinux.com/linux/distros?format=feed&type=rss "~Switched to Linux - Distros"
|
||||
https://switchedtolinux.com/linux/software/?format=feed&type=rss "~Switched to Linux - Software"
|
||||
https://switchedtolinux.com/linux/desktop-environments/?format=feed&type=rss "~Switched to Linux - Desktop Environments"
|
||||
https://www.gamingonlinux.com/article_rss.php "~Gaming on linux"
|
||||
https://hackaday.com/blog/feed/ "~Hackaday"
|
||||
https://opensource.com/feed "~Opensource"
|
||||
https://linux.softpedia.com/backend.xml "~Softpedia Linux"
|
||||
https://www.zdnet.com/topic/linux/rss.xml "~Zdnet Linux"
|
||||
https://www.phoronix.com/rss.php "~Phoronix"
|
||||
https://www.computerworld.com/index.rss "~Computerworld"
|
||||
https://www.networkworld.com/category/linux/index.rss "~Networkworld Linux"
|
||||
https://betanews.com/feed "~Betanews Linux"
|
||||
http://lxer.com/module/newswire/headlines.rss "~Lxer"
|
||||
https://distrowatch.com/news/dwd.xml "~Distrowatch"
|
||||
https://odysee.com/$/rss/@blenderdumbass:f "~Blender Dumbass"
|
||||
https://theevilskeleton.gitlab.io/feed.xml "~TheEvilSkeleton"
|
||||
https://tutanota.com/blog/feed.xml "~Tutanota Blogs"
|
||||
https://vanillaos.org/feed.xml "~Vanilla OS"
|
||||
https://techcrunch.com/feed/ "~TechCrunch"
|
||||
http://www.techradar.com/rss "~TechRadar"
|
||||
https://www.zdnet.com/news/rss.xml "~ZDNET - News"
|
||||
https://c3po.website/rss/ "~Blog de C3PO"
|
||||
http://yro.slashdot.org/yro.rss "~Slashdot: Your Rights Online"
|
||||
https://freedom-to-tinker.com/feed/rss/ "~Freedom to Tinker"
|
||||
https://act.eff.org/action.atom "~EFF - Action Center"
|
||||
https://www.eff.org/rss/updates.xml "~EFF - Updates"
|
||||
https://victorhckinthefreeworld.com/feed/ "~Victorhck in the free world"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCHnyfMqiRRG1u-2MsSQLbXA "~YT - Veritasium"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCtMVHI3AJD4Qk4hcbZnI9ZQ "~YT - SomeOrdinaryGamers"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCl2mFZoRqjw_ELax4Yisf6w "~YT - Louis Rossmann"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UChI0q9a-ZcbZh7dAu_-J-hg "~YT - Upper Echelon"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCj8orMezFWVcoN-4S545Wtw "~YT - Max Derrat"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCkmMACUKpQeIxN9D9ARli1Q "~YT - Shadiversity"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCNYW2vfGrUE6R5mIJYzkRyQ "~YT - DrossRotzank"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC36xmz34q02JYaZYKrMwXng "~YT - Nate Gentile"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCg6gPGh8HU2U01vaFCAsvmQ "~YT - Chris Titus Tech"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCVls1GmFKf6WlTraIb_IaJg "~YT - DistroTube"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCxQKHvKbmSzGMvUrVtJYnUA "~YT - Learn Linux TV"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC5UAwBUum7CPN5buc-_N1Fw "~YT - The Linux Experiment"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCylGUf9BvQooEFjgdNudoQg "~YT - The Linux Cast"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCoryWpk4QVYKFCJul9KBdyw "~YT - Switched to Linux"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCgkyQiY_Q5AlrygIXGWO2Zw "~YT - Tux Traveler"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCxkw-TfCK1t1VKxfHwPzD6w "~YT - Our Walk in Christ"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCld68syR8Wi-GY_n4CaoJGA "~YT - Brodie Robertson"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCjSEJkpGbcZhvo0lr-44X_w "~YT - TechHut"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC2eYFnH61tmytImy1mTYvhA "~YT - Luke Smith"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC7YOGHUfC1Tb6E4pudI9STA "~YT - Mental Outlaw"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC3jSNmKWYA04R47fDcc1ImA "~YT - InfinitelyGalactic"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCONH73CdRXUjlh3-DdLGCPw "~YT - Nicco Loves Linux"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC1s1OsWNYDFgbROPV-q5arg "~YT - Michael Horn"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCOSSzBN8e3JHOxvltQbf_mQ "~YT - Jack Keifer"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC05XpvbHZUQOfA6xk4dlmcw "~YT - DJ Ware"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCAiiOTio8Yu69c3XnR7nQBQ "~YT - System Crafters"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCAYKj_peyESIMDp5LtHlH2A "~YT - unfa"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCmw-QGOHbHA5cDAvwwqUTKQ "~YT - Zaney"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCNvl_86ygZXRuXjxbONI5jA "~YT - 10leej"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC3yaWWA9FF9OBog5U9ml68A "~YT - SavvyNik"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCS97tchJDq17Qms3cux8wcA "~YT - chris@machine"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCl8XUDjAOLc7GNKcDp9Nepg "~YT - Locos por Linux"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UClVi5MQZ6T0InZYT7oFs6wg "~YT - Mumbling Hugo"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCmyGZ0689ODyReHw3rsKLtQ "~YT - Michael Tunnell"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCv1Kcz-CuGM6mxzL3B1_Eiw "~YT - Gardiner Bryant"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCcf2Mr1qNoX51XXDUd3Rquw "~YT - ByteSeb"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCCIHOP7e271SIumQgyl6XBQ "~YT - OldTechBloke"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCIFzjAer2W9gTWVECZgtDzg "~YT - GaryH Tech"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCMiyV_Ib77XLpzHPQH_q0qQ "~YT - Veronica Explains"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCsnGwSIHyoYN0kiINAGUKxg "~YT - Wolfgang's Channel"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCnIfca4LPFVn8-FjpPVc1ow "~YT - Fedora Project"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCH5DsMZAgdx5Fkk9wwMNwCA "~YT - The New Oil"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCs6KfncB4OV6Vug4o_bzijg "~YT - Techlore"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCYVU6rModlGxvJbszCclGGw "~YT - Rob Braxman Tech"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCSuHzQ3GrHSzoBbwrIq3LLA "~YT - Naomi Brockwell: NBTV"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCvFGf8HZGZWFzpcDCqb3Lhw "~YT - All Things Secured"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCvjgXvBlbQiydffZU7m1_aw "~YT - The Coding Train"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC9-y-6csu5WGm29I7JiwpnA "~YT - Computerphile"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCbiGcwDWZjz05njNPrJU7jA "~YT - ExplainingComputers"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCy0tKL1T7wFoYcxCe0xjN6Q "~YT - Technology Connections"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC8uT9cgJorJPWu7ITLGo9Ww "~YT - The 8-Bit Guy"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCoL8olX-259lS1N6QPyP4IQ "~YT - Action Retro"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCW-HHEyt67RhZ6q21n4p2zQ "~YT - Mac84"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UChT0QzAGfz_pUIbQnePV6KQ "~YT - Pendleton 115"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC-ErgHYY0_Yjhjz2MN1E1lg "~YT - RETRO Hardware"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCjgS6Uyg8ok4Jd_lH_MUKgg "~YT - Claus Kellerman"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UC0W_BIuwk8D0Bv4THbVZZOQ "~YT - Surveillance Report"
|
||||
https://invidious.sethforprivacy.com/feed/channel/UCBq5p-xOla8xhnrbhu8AIAg "~YT - Tech Over Tea"
|
||||
|
||||
|
|
|
@ -1,87 +0,0 @@
|
|||
## ____ __
|
||||
## / __ \_________ _/ /_____
|
||||
## / / / / ___/ __ `/ //_/ _ \
|
||||
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
|
||||
## /_____/_/ \__,_/_/|_|\___/ My custom picom config
|
||||
|
||||
## Animations
|
||||
animations = true
|
||||
# `auto`, `none`, `fly-in`, `zoom`, `slide-down`, `slide-up`, `slide-left`, `slide-right` `slide-in`, `slide-out`
|
||||
animation-for-transient-window = "zoom"
|
||||
animation-for-open-window = "zoom"
|
||||
animation-for-unmap-window = "zoom"
|
||||
animation-for-menu-window = "zoom"
|
||||
animation-for-workspace-switch-out = "zoom"
|
||||
animation-for-workspace-switch-in = "zoom"
|
||||
animation-stiffness = 300;
|
||||
animation-dampening = 16;
|
||||
animation-window-mass = 1;
|
||||
animation-clamping = true;
|
||||
animation-delta = 16;
|
||||
#animation-force-steps = true;
|
||||
|
||||
|
||||
## Shadows
|
||||
shadow = false;
|
||||
#shadow-radius = 8;
|
||||
#shadow-opacity = .90
|
||||
#shadow-offset-x = -10;
|
||||
#shadow-offset-y = -10;
|
||||
# shadow-red = 0
|
||||
# shadow-green = 0
|
||||
# shadow-blue = 0
|
||||
# shadow-color = "#000000"
|
||||
#shadow-exclude = [
|
||||
# "name = 'Notification'",
|
||||
# "class_g = 'Conky'",
|
||||
# "class_g ?= 'Notify-osd'",
|
||||
# "class_g = 'Cairo-clock'",
|
||||
# "_GTK_FRAME_EXTENTS@:c"
|
||||
#];
|
||||
|
||||
## Fading
|
||||
fading = false;
|
||||
#fade-in-step = 0.05;
|
||||
#fade-out-step = 0.05;
|
||||
#fade-delta = 8
|
||||
#fade-exclude = []
|
||||
#no-fading-openclose = false
|
||||
#no-fading-destroyed-argb = false
|
||||
|
||||
## Transparency and opacity
|
||||
inactive-opacity = 1.00;
|
||||
frame-opacity = 1.0;
|
||||
inactive-opacity-override = false;
|
||||
focus-exclude = [ "class_g = 'Cairo-clock'" ];
|
||||
# opaity-rule = []
|
||||
|
||||
## General Settings
|
||||
backend = "xrender";
|
||||
vsync = true;
|
||||
dbe = false;
|
||||
detect-client-opacity = true;
|
||||
refresh-rate = 60;
|
||||
detect-transient = true;
|
||||
glx-no-stencil = true;
|
||||
use-damage = true;
|
||||
unredir-if-possible = false;
|
||||
#unredir-if-possible-exclude = [
|
||||
# "class_g = 'looking-glass-client' && !focused"
|
||||
#];
|
||||
glx-use-copysubbuffer-mesa = true;
|
||||
|
||||
wintypes:
|
||||
{
|
||||
normal = { fade = true; full-shadow = true; };
|
||||
tooltip = { fade = true; };
|
||||
menu = { fade = true; };
|
||||
popup_menu = { fade = true; };
|
||||
dropdown_menu = { fade = true; };
|
||||
utility = { fade = true; };
|
||||
dialog = { fade = true; };
|
||||
notify = { fade = true; };
|
||||
unknown = { fade = true; };
|
||||
# notification = { shadow = true; };
|
||||
# dock = { shadow = false; };
|
||||
};
|
||||
|
|
@ -1,13 +1,12 @@
|
|||
[Appearance]
|
||||
color_scheme_path=/usr/share/qt5ct/colors/airy.conf
|
||||
custom_palette=false
|
||||
icon_theme=Papirus-Dark
|
||||
standard_dialogs=gtk2
|
||||
style=gtk2
|
||||
|
||||
[Fonts]
|
||||
fixed=@Variant(\0\0\0@\0\0\0$\0m\0o\0n\0o\0n\0o\0k\0i\0 \0N\0\x65\0r\0\x64\0 \0\x46\0o\0n\0t@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0K\x10)
|
||||
general=@Variant(\0\0\0@\0\0\0$\0m\0o\0n\0o\0n\0o\0k\0i\0 \0N\0\x65\0r\0\x64\0 \0\x46\0o\0n\0t@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0K\x10)
|
||||
fixed="Mononoki Nerd Font,10,-1,5,50,0,0,0,0,0,Regular"
|
||||
general="Cantarell,10,-1,5,50,0,0,0,0,0,Regular"
|
||||
|
||||
[Interface]
|
||||
activate_item_on_single_click=1
|
||||
|
@ -25,7 +24,7 @@ underline_shortcut=1
|
|||
wheel_scroll_lines=3
|
||||
|
||||
[SettingsWindow]
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x3\xc0\0\0\0\x32\0\0\a\x7f\0\0\x4\x37\0\0\x3\xc1\0\0\0\x33\0\0\a~\0\0\x4\x36\0\0\0\0\0\0\0\0\a\x80\0\0\x3\xc1\0\0\0\x33\0\0\a~\0\0\x4\x36)
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\0\0\x2\xde\0\0\x2\x84\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc)
|
||||
|
||||
[Troubleshooting]
|
||||
force_raster_widgets=1
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
[Appearance]
|
||||
color_scheme_path=/usr/share/qt6ct/colors/airy.conf
|
||||
custom_palette=false
|
||||
icon_theme=gruvbox-dark-icons-gtk
|
||||
standard_dialogs=gtk2
|
||||
style=qt6gtk2
|
||||
|
||||
[Fonts]
|
||||
fixed="mononoki Nerd Font,10,-1,5,700,0,0,0,0,0,0,0,0,0,0,1,Bold"
|
||||
general="mononoki Nerd Font,10,-1,5,700,0,0,0,0,0,0,0,0,0,0,1,Bold"
|
||||
fixed="Mononoki Nerd Font,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular"
|
||||
general="Cantarell,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular"
|
||||
|
||||
[Interface]
|
||||
activate_item_on_single_click=1
|
||||
|
@ -24,7 +25,7 @@ underline_shortcut=1
|
|||
wheel_scroll_lines=3
|
||||
|
||||
[SettingsWindow]
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x32\0\0\a\x7f\0\0\x4\x37\0\0\0\0\0\0\0\x32\0\0\a\x7f\0\0\x4\x37\0\0\0\0\0\0\0\0\a\x80\0\0\0\0\0\0\0\x32\0\0\a\x7f\0\0\x4\x37)
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc)
|
||||
|
||||
[Troubleshooting]
|
||||
force_raster_widgets=1
|
||||
|
|