This commit is contained in:
Clay Gomera 2023-02-21 22:09:45 -04:00
parent 1de81fe3fc
commit 175dfb2f40
22 changed files with 184 additions and 7344 deletions

View file

@ -148,7 +148,7 @@ alias pac-get='yay -S' # i
alias pac-rmv='yay -Rcns' # remove a program alias pac-rmv='yay -Rcns' # remove a program
alias pac-rmv-sec='yay -R' # remove a program (secure way) alias pac-rmv-sec='yay -R' # remove a program (secure way)
alias pac-qry='yay -Ss' # search for a program alias pac-qry='yay -Ss' # search for a program
alias pac-cln='yay -Scc && paru -Rns (pacman -Qtdq)' # clean cache & remove orphaned packages alias pac-cln='yay -Scc && yay -Rns (pacman -Qtdq)' # clean cache & remove orphaned packages
# neofetch is f***** slow # neofetch is f***** slow
alias neofetch="pfetch" alias neofetch="pfetch"

View file

@ -24,8 +24,8 @@ input {
# General # General
general { general {
gaps_in = 5 gaps_in = 5
gaps_out = 8 gaps_out = 5
border_size = 3 border_size = 1
col.active_border = rgb(9d0006) rgb(fb4934) 45deg col.active_border = rgb(9d0006) rgb(fb4934) 45deg
col.inactive_border = rgb(504945) col.inactive_border = rgb(504945)
layout = master layout = master
@ -101,7 +101,7 @@ $conMod = CONTROL
bind = $supMod, RETURN, exec, wezterm bind = $supMod, RETURN, exec, wezterm
bind = $supMod, Q, killactive, bind = $supMod, Q, killactive,
bind = $supMod_$conMod_SHIFT, Q, exit, bind = $supMod_$conMod_SHIFT, Q, exit,
bind = $supMod, D, exec, pkill wofi || wofi --show drun bind = $supMod, D, exec, pkill rofi || rofi -show drun
bind = $supMod, V, togglefloating, bind = $supMod, V, togglefloating,
bind = $supMod, P, pseudo, # dwindle bind = $supMod, P, pseudo, # dwindle
bind = $supMod, J, togglesplit, # dwindle bind = $supMod, J, togglesplit, # dwindle
@ -127,8 +127,10 @@ bind = $supMod, 0, workspace, 10
# Apps # Apps
bind = $supMod, E, exec, wezterm start --class editor -- ./.local/bin/lvim bind = $supMod, E, exec, wezterm start --class editor -- ./.local/bin/lvim
bind = $supMod, W, exec, firefox bind = $supMod, W, exec, firefox
bind = $supMod, F, exec, wezterm start --class file_manager -- ./.config/vifm/scripts/vifmrun bind = $supMod, F, exec, wezterm start --class file_manager -- ranger
bind = $supMod, M, exec, wezterm start --class music_player -- cmus bind = $supMod, M, exec, wezterm start --class music_player -- cmus
bind = $supMod, P, exec, keepassxc
bind = $supMod, G, exec, retroarch
# Quick terminal scripts/commands # Quick terminal scripts/commands
bind = $supMod_$altMod, T, exec, wezterm start --class tut -- tut bind = $supMod_$altMod, T, exec, wezterm start --class tut -- tut
@ -140,11 +142,12 @@ bind = $supMod_$altMod, P, exec, wezterm start --class pulsemixer -- pulsemixer
bind = $supMod_$altMod, O, exec, wezterm start --class alsamixer -- alsamixer bind = $supMod_$altMod, O, exec, wezterm start --class alsamixer -- alsamixer
bind = $supMod_$altMod, R, exec, wezterm start --class newsboat -- newsboat bind = $supMod_$altMod, R, exec, wezterm start --class newsboat -- newsboat
# Quick wofi scripts # Quick rofi scripts
bind = $supMod_$conMod, W, exec, $HOME/.config/wofi/scripts/wofi_wifi bind = $supMod_SHIFT, W, exec, $HOME/.config/rofi/scripts/rofi_wifi
bind = $supMod_$conMod, E, exec, $HOME/.config/wofi/scripts/wofi_emoji bind = $supMod_SHIFT, E, exec, $HOME/.config/rofi/scripts/rofi_emoji
bind = $supMod_$conMod, S, exec, $HOME/.config/wofi/scripts/wofi_scrot bind = $supMod_SHIFT, S, exec, $HOME/.config/rofi/scripts/rofi_scrot
bind = $supMod_SHIFT, Q, exec, $HOME/.config/wofi/scripts/wofi_power bind = $supMod_$conMod_SHIFT, S, exec, $HOME/.config/rofi/scripts/rofi_scrot -s
bind = $supMod_SHIFT, Q, exec, $HOME/.config/rofi/scripts/rofi_power
# Move active window to a workspace with supMod + SHIFT + [0-9] # Move active window to a workspace with supMod + SHIFT + [0-9]
bind = $supMod SHIFT, 1, movetoworkspace, 1 bind = $supMod SHIFT, 1, movetoworkspace, 1
@ -166,11 +169,15 @@ bind = $supMod, mouse_up, workspace, e-1
bindm = $supMod, mouse:272, movewindow bindm = $supMod, mouse:272, movewindow
bindm = $supMod, mouse:273, resizewindow bindm = $supMod, mouse:273, resizewindow
# Volume # Audio control
bindl=, XF86AudioRaiseVolume, exec, pamixer -i 5 bindl=, XF86AudioRaiseVolume, exec, pamixer -i 5
bindl=, XF86AudioLowerVolume, exec, pamixer -d 5 bindl=, XF86AudioLowerVolume, exec, pamixer -d 5
bindl=, XF86AudioMute, exec, pamixer -t bindl=, XF86AudioMute, exec, pamixer -t
bindl=, XF86AudioMicMute, exec, pamixer --default-source -t bindl=, XF86AudioMicMute, exec, pamixer --default-source -t
# Brightness control
bindl=, XF86MonBrightnessUp, exec, light -A 10 bindl=, XF86MonBrightnessUp, exec, light -A 10
bindl=, XF86MonBrightnessDown, exec, light -U 10 bindl=, XF86MonBrightnessDown, exec, light -U 10
# Display configuration
bindl=, XF86Display, exec, wdisplays bindl=, XF86Display, exec, wdisplays

View file

@ -1,2 +1,2 @@
preload = ~/Pictures/Wallpapers/300.jpg preload = ~/.config/hypr/wallpaper.jpg
wallpaper = eDP-1,contain:~/Pictures/Wallpapers/300.jpg wallpaper = eDP-1,contain:~/.config/hypr/wallpaper.jpg

View file

@ -0,0 +1,103 @@
configuration{
modi: "run,drun,window";
lines: 10;
font: "mononoki Nerd Font 14";
show-icons: true;
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;
}

View file

@ -2,9 +2,9 @@
wtype 0 wtype 0
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
sed '1,/^### DATA ###$/d' $0 | wofi --show dmenu -i -p "󰙃 Select Emoji:" | cut -d ' ' -f 1 | tr -d '\n' | wtype - sed '1,/^### DATA ###$/d' $0 | rofi -dmenu -i -p " 󰙃 Select Emoji " | cut -d ' ' -f 1 | tr -d '\n' | wtype -
else else
sed '1,/^### DATA ###$/d' $0 | wofi --show dmenu -i -p "󰙃 Select Emoji:" | cut -d ' ' -f 1 | tr -d '\n' | wl-copy sed '1,/^### DATA ###$/d' $0 | rofi -dmenu -i -p " 󰙃 Select Emoji " | cut -d ' ' -f 1 | tr -d '\n' | wl-copy
fi fi
exit exit
### DATA ### ### DATA ###

View file

@ -26,7 +26,7 @@ pwr4=" Cancel"
pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4" pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4"
## MAIN ACTION COMMAND ## ## MAIN ACTION COMMAND ##
action=$(echo -e "$options" | wofi --dmenu -p "  Power Options ") action=$(echo -e "$options" | rofi -dmenu -p "  Power Options ")
case "$action" in case "$action" in
$option1*) $option1*)
pkill Hyprland;; pkill Hyprland;;
@ -35,9 +35,11 @@ case "$action" in
$option3*) $option3*)
systemctl poweroff || loginctl poweroff;; systemctl poweroff || loginctl poweroff;;
$option4*) $option4*)
betterlockscreen --suspend;; swaylock &
sleep 0.1
systemctl suspend;;
$option5*) $option5*)
betterlockscreen -l;; swaylock;;
$option6*) $option6*)
currentpwr=$(powerprofilesctl get) currentpwr=$(powerprofilesctl get)
if [ "$currentpwr" = "performance" ]; then if [ "$currentpwr" = "performance" ]; then
@ -47,7 +49,7 @@ case "$action" in
elif [ "$currentpwr" = "balanced" ]; then elif [ "$currentpwr" = "balanced" ]; then
currentpwr=" Balanced" currentpwr=" Balanced"
fi fi
pwraction=$(echo -e "$pwrs" | wofi --dmenu -p "  Power Profile Menu - Currently set to: ${currentpwr} ") pwraction=$(echo -e "$pwrs" | rofi -dmenu -p "  Power Profile Menu - Currently set to: ${currentpwr} ")
case "$pwraction" in case "$pwraction" in
$pwr1*) $pwr1*)
powerprofilesctl set performance && notify-send "Power profile switched to performance";; powerprofilesctl set performance && notify-send "Power profile switched to performance";;

View file

@ -19,6 +19,7 @@ crtf() {
} }
cstf() { cstf() {
countdown
dt=$(date '+%d-%m-%Y %H:%M:%S') dt=$(date '+%d-%m-%Y %H:%M:%S')
grim "$screenshot_directory/$dt.png" grim "$screenshot_directory/$dt.png"
notify-send "Screenshot" "Screenshot saved to $screenshot_directory" notify-send "Screenshot" "Screenshot saved to $screenshot_directory"
@ -39,10 +40,10 @@ rvstf() {
} }
get_options() { get_options() {
echo " Capture Region" echo " Capture Region"
echo " Capture Screen" echo " Capture Screen"
echo " Record Region" echo "󰕩 Record Region"
echo " Record Screen" echo "󰕧 Record Screen"
} }
check_deps() { check_deps() {
@ -56,13 +57,13 @@ main() {
# check dependencies # check dependencies
check_deps slurp check_deps slurp
check_deps grim check_deps grim
check_deps wofi check_deps rofi
check_deps wf-recorder check_deps wf-recorder
if [[ $1 == '--help' ]] || [[ $1 = '-h' ]] if [[ $1 == '--help' ]] || [[ $1 = '-h' ]]
then then
echo ### wofi-screenshot echo ### rofi-screenshot
echo USAGE: wofi-screenshot [OPTION] echo USAGE: rofi-screenshot [OPTION]
echo \(no option\) echo \(no option\)
echo " show the screenshot menu" echo " show the screenshot menu"
echo -s, --stop echo -s, --stop
@ -79,7 +80,7 @@ main() {
fi fi
# Get choice from rofi # Get choice from rofi
choice=$( (get_options) | wofi --dmenu -p "Screenshot" ) choice=$( (get_options) | rofi -dmenu -p " 󰄀 Screenshot " )
# If user has not picked anything, exit # If user has not picked anything, exit
if [[ -z "${choice// }" ]]; then if [[ -z "${choice// }" ]]; then
@ -88,16 +89,16 @@ main() {
# run the selected command # run the selected command
case $choice in case $choice in
' Capture Region') ' Capture Region')
crtf crtf
;; ;;
' Capture Screen') ' Capture Screen')
cstf cstf
;; ;;
' Record Region') '󰕩 Record Region')
rvrtf rvrtf
;; ;;
' Record Screen') '󰕧 Record Screen')
rvstf rvstf
;; ;;
esac esac

View file

@ -4,8 +4,8 @@
# - Description: A simple wifi rofi script # - Description: A simple wifi rofi script
# - Dependencies: rofi, NetworkManager # - Dependencies: rofi, NetworkManager
## WOFI VARIABLES ## ## ROFI VARIABLES ##
WOFI="wofi --dmenu -p" ROFI="rofi -dmenu -i -p"
## MAIN OPTIONS ## ## MAIN OPTIONS ##
option1=" Turn on WiFi" option1=" Turn on WiFi"
@ -43,12 +43,12 @@ disconnect() {
connect() { connect() {
notify-send "Scannig networks, please wait" notify-send "Scannig networks, please wait"
sleep 1 sleep 1
bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | $WOFI "Select Wifi  :" | cut -d' ' -f1) bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | $ROFI " Select a Wifi Network  " | cut -d' ' -f1)
} }
## SELECT PASSWORD FUNCTION ## ## SELECT PASSWORD FUNCTION ##
password() { password() {
pass=$(echo " " | $WOFI --password "Enter Password  :") pass=$(echo " " | $ROFI " Enter Password  " --password)
} }
## MAIN CONNECTION COMMAND ## ## MAIN CONNECTION COMMAND ##
@ -69,7 +69,7 @@ check() {
} }
## MAIN ACTION COMMANDS ## ## MAIN ACTION COMMANDS ##
cases=$(echo -e "$options" | $WOFI " Wifi Settings" ) cases=$(echo -e "$options" | $ROFI "  Wifi Settings " )
case "$cases" in case "$cases" in
$option1*) $option1*)
turnon;; turnon;;

View file

@ -0,0 +1,16 @@
* {
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;
}

View file

@ -1,87 +0,0 @@
" You can edit this file by hand.
" The " character at the beginning of a line comments out the line.
" Blank lines are ignored.
" The Default color scheme is used for any directory that does not have
" a specified scheme and for parts of user interface like menus. A
" color scheme set for a base directory will also
" be used for the sub directories.
" The standard ncurses colors are:
" Default = -1 = None, can be used for transparency or default color
" Black = 0
" Red = 1
" Green = 2
" Yellow = 3
" Blue = 4
" Magenta = 5
" Cyan = 6
" White = 7
" Light versions of colors are also available (they set bold
" attribute in terminals with less than 16 colors):
" LightBlack
" LightRed
" LightGreen
" LightYellow
" LightBlue
" LightMagenta
" LightCyan
" LightWhite
" Available attributes (some of them can be combined):
" bold
" underline
" reverse or inverse
" standout
" italic (on unsupported systems becomes reverse)
" combine
" none
" Vifm supports 256 colors you can use color numbers 0-255
" (requires properly set up terminal: set your TERM environment variable
" (directly or using resources) to some color terminal name (e.g.
" xterm-256color) from /usr/lib/terminfo/; you can check current number
" of colors in your terminal with tput colors command)
" highlight group cterm=attrs ctermfg=foreground_color ctermbg=background_color
highlight clear
highlight Win cterm=none ctermfg=white ctermbg=black
highlight Directory cterm=bold ctermfg=cyan ctermbg=default
highlight Link cterm=bold ctermfg=yellow ctermbg=default
highlight BrokenLink cterm=bold ctermfg=red ctermbg=default
highlight HardLink cterm=none ctermfg=yellow ctermbg=default
highlight Socket cterm=bold ctermfg=magenta ctermbg=default
highlight Device cterm=bold ctermfg=red ctermbg=default
highlight Fifo cterm=bold ctermfg=cyan ctermbg=default
highlight Executable cterm=bold ctermfg=green ctermbg=default
highlight Selected cterm=bold ctermfg=magenta ctermbg=default
highlight CurrLine cterm=bold,reverse ctermfg=default ctermbg=default
highlight TopLine cterm=none ctermfg=black ctermbg=white
highlight TopLineSel cterm=bold ctermfg=black ctermbg=default
highlight StatusLine cterm=bold ctermfg=black ctermbg=white
highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black
highlight CmdLine cterm=none ctermfg=white ctermbg=black
highlight ErrorMsg cterm=none ctermfg=red ctermbg=black
highlight Border cterm=none ctermfg=black ctermbg=white
highlight OtherLine ctermfg=default ctermbg=default
highlight JobLine cterm=bold,reverse ctermfg=black ctermbg=white
highlight SuggestBox cterm=bold ctermfg=default ctermbg=default
highlight CmpMismatch cterm=bold ctermfg=white ctermbg=red
highlight AuxWin ctermfg=default ctermbg=default
highlight TabLine cterm=none ctermfg=white ctermbg=black
highlight TabLineSel cterm=bold,reverse ctermfg=default ctermbg=default
highlight User1 ctermfg=default ctermbg=default
highlight User2 ctermfg=default ctermbg=default
highlight User3 ctermfg=default ctermbg=default
highlight User4 ctermfg=default ctermbg=default
highlight User5 ctermfg=default ctermbg=default
highlight User6 ctermfg=default ctermbg=default
highlight User7 ctermfg=default ctermbg=default
highlight User8 ctermfg=default ctermbg=default
highlight User9 ctermfg=default ctermbg=default
highlight OtherWin ctermfg=default ctermbg=default
highlight LineNr ctermfg=default ctermbg=default
highlight OddLine ctermfg=default ctermbg=default

View file

@ -1,6 +0,0 @@
This directory is dedicated for user-supplied scripts/executables.
vifm modifies its PATH environment variable to let user run those
scripts without specifying full path. All subdirectories are added
as well. File in a subdirectory overrules file with the same name
in parent directories. Restart might be needed to recognize files
in newly created or renamed subdirectories.

View file

@ -1,53 +0,0 @@
#!/usr/bin/env bash
readonly ID_PREVIEW="preview"
#AUTO_REMOVE="yes"
# By enabling this option the script will remove the preview file after it is drawn
# and by doing so the preview will always be up-to-date with the file.
# This however, requires more CPU and therefore affects the overall performance.
if [ -e "$FIFO_UEBERZUG" ]; then
if [[ "$1" == "draw" ]]; then
declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW"
[x]="$2" [y]="$3" [width]="$4" [height]="$5" \
[path]="${PWD}/$6") \
> "$FIFO_UEBERZUG"
elif [[ "$1" == "videopreview" ]]; then
echo -e "Loading preview..\nFile: $6"
[[ ! -d "/tmp${PWD}/$6/" ]] && mkdir -p "/tmp${PWD}/$6/"
[[ ! -f "/tmp${PWD}/$6.png" ]] && ffmpegthumbnailer -i "${PWD}/$6" -o "/tmp${PWD}/$6.png" -s 0 -q 10
declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW"
[x]="$2" [y]="$3" [width]="$4" [height]="$5" \
[path]="/tmp${PWD}/$6.png") \
> "$FIFO_UEBERZUG"
elif [[ "$1" == "gifpreview" ]]; then
echo -e "Loading preview..\nFile: $6"
[[ ! -d "/tmp${PWD}/$6/" ]] && mkdir -p "/tmp${PWD}/$6/" && convert -coalesce "${PWD}/$6" "/tmp${PWD}/$6/$6.png"
for frame in $(ls -1 /tmp${PWD}/$6/$6*.png | sort -V); do
declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW"
[x]="$2" [y]="$3" [width]="$4" [height]="$5" \
[path]="$frame") \
> "$FIFO_UEBERZUG"
# Sleep between frames to make the animation smooth.
sleep .07
done
elif [[ "$1" == "pdfpreview" ]]; then
echo -e "Loading preview..\nFile: $6"
[[ ! -d "/tmp${PWD}/$6/" ]] && mkdir -p "/tmp${PWD}/$6/"
[[ ! -f "/tmp${PWD}/$6.png" ]] && pdftoppm -png -singlefile "$6" "/tmp${PWD}/$6"
declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW"
[x]="$2" [y]="$3" [width]="$4" [height]="$5" \
[path]="/tmp${PWD}/$6.png") \
> "$FIFO_UEBERZUG"
elif [[ "$1" == "clear" ]]; then
declare -p -A cmd=([action]=remove [identifier]="$ID_PREVIEW") \
> "$FIFO_UEBERZUG"
[[ ! -z $AUTO_REMOVE ]] && [[ -f "/tmp${PWD}/$6.png" ]] && rm -f "/tmp${PWD}/$6.png"
[[ ! -z $AUTO_REMOVE ]] && [[ -d "/tmp${PWD}/$6/" ]] && rm -rf "/tmp${PWD}/$6/"
fi
fi

View file

@ -1,15 +0,0 @@
#!/usr/bin/env bash
export FIFO_UEBERZUG="/tmp/vifm-ueberzug-${PPID}"
function cleanup {
rm "$FIFO_UEBERZUG" 2>/dev/null
pkill -P $$ 2>/dev/null
}
rm "$FIFO_UEBERZUG" 2>/dev/null
mkfifo "$FIFO_UEBERZUG"
trap cleanup EXIT
tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash &
vifm
cleanup

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -1,505 +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 distrotube
" 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
\ vifmimg pdfpreview %px %py %pw %ph %c
\ %pc
\ vifmimg clear
" \ 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]
\ vifmimg videopreview %px %py %pw %ph %c
\ %pc
\ vifmimg clear
" \ 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 nsxiv}
\ nsxiv -ia %f &,
\ {View in imv}
\ imv -b 1D2330 -d %d &,
\ {View in feh}
\ feh %d &,
\ {View in cacaview}
\ cacaview %c &,
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm
\ vifmimg draw %px %py %pw %ph %c
\ %pc
\ vifmimg clear
fileviewer *.gif
\ vifmimg gifpreview %px %py %pw %ph %c
\ %pc
\ vifmimg clear
" 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

View file

@ -1,12 +1,12 @@
{ {
"position": "top", "position": "top",
"height": 22, "height": 28,
//"width": 1280, //"width": 1280,
"spacing": 10, "spacing": 10,
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["wlr/workspaces"], "modules-left": ["wlr/workspaces"],
"modules-right": ["idle_inhibitor", "pulseaudio", "backlight", "battery", "clock"], "modules-right": ["idle_inhibitor", "pulseaudio", "backlight", "battery", "network", "clock"],
"wlr/workspaces": { "wlr/workspaces": {
"on-click": "activate", "on-click": "activate",
@ -63,7 +63,14 @@
"car": "󰄋", "car": "󰄋",
"default": ["󰕿", "󰖀", "󰕾"] "default": ["󰕿", "󰖀", "󰕾"]
}, },
"on-click": "qpwgraph" "on-click": "wezterm start -- pulsemixer"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) 󱚻 ",
"format-ethernet": "{ipaddr}/{cidr} 󰈀 ",
"format-disconnected": "Disconnected 󱛅 ",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
}, },
} }

View file

@ -1,6 +1,6 @@
* { * {
font-family: mononoki Nerd Font, mononoki Nerd Font Mono; font-family: mononoki Nerd Font, mononoki Nerd Font Mono;
font-size: 13px; font-size: 18px;
} }
window#waybar { window#waybar {
@ -133,7 +133,8 @@ label:focus {
} }
#network { #network {
background-color: #076678; background-color: #9d0006;
color: #ebdbb2
} }
#network.disconnected { #network.disconnected {

View file

@ -1,10 +0,0 @@
style=/home/drk/.config/wofi/style.css
show=drun
width=1100
height=320
always_parse_args=true
show_all=true
print_command=true
layer=overlay
insensitive=true
prompt=Run a program

View file

@ -1,57 +0,0 @@
window {
margin: 5px;
border: 2px solid #cc241d;
border-radius: 10px;
background-color: #282828;
font-family: mononoki Nerd Font;
font-size: 16px;
}
#input {
margin: 10px;
margin-bottom: 1px;
border: 5px solid #3c3836;
color: #ebdbb2;
background-color: #3c3836;
}
#input > image.left {
-gtk-icon-transform:scaleX(0);
}
#inner-box {
margin: 15px;
margin-top: 15px;
border: none;
background-color: #282828;
}
#outer-box {
margin: 10px;
border: none;
background-color: #282828;
}
#scroll {
margin: 0px;
border: none;
}
#text {
margin: 5px;
border: none;
color: #ebdbb2;
}
#entry:selected {
background-color: #cc241d;
color: #3c3836;
font-weight: normal;
}
#text:selected {
background-color: #cc241d;
color: #fbf1c7;
font-weight: bold;
}

View file

@ -0,0 +1,5 @@
# This file is written by nwg-look. Do not edit.
[Icon Theme]
Name=Default
Comment=Default Cursor Theme
Inherits=Simp1e-Gruvbox-Dark

View file

@ -1,5 +1,5 @@
# Dependencies # Dependencies
- wofi - rofi-lboon-wayland-git
- nwg-look - nwg-look
- waybar - waybar
- hyprpaper - hyprpaper