mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
x25
This commit is contained in:
commit
6bec08c858
@ -1,15 +1,5 @@
|
|||||||
# vim: filetype=i3
|
# vim: filetype=i3
|
||||||
# _ _ ____ ____ ____
|
# File originally by Luke Smith <https://lukesmith.xyz>
|
||||||
# | | / \ | _ \| __ ) ___|
|
|
||||||
# | | / _ \ | |_) | _ \___ \
|
|
||||||
# | |___ / ___ \| _ <| |_) |__) |
|
|
||||||
# |_____/_/ \_\_| \_\____/____/
|
|
||||||
#
|
|
||||||
# File originally by Luke Smith
|
|
||||||
# Website: http://lukesmith.xyz
|
|
||||||
# Email: luke@lukesmith.xyz
|
|
||||||
# YouTube: https://youtube.com/c/LukeSmithxyz
|
|
||||||
# Github: https://github.com/LukeSmithxyz
|
|
||||||
|
|
||||||
# This config file will use environmental variables such as $BROWSER and $TERMINAL.
|
# This config file will use environmental variables such as $BROWSER and $TERMINAL.
|
||||||
# You can set these variables in ~/.profile or ~/.bash_profile if you have it as below:
|
# You can set these variables in ~/.profile or ~/.bash_profile if you have it as below:
|
||||||
@ -24,6 +14,7 @@ for_window [class="^.*"] border pixel 3
|
|||||||
for_window [class="mpv"] floating enable
|
for_window [class="mpv"] floating enable
|
||||||
gaps inner 5
|
gaps inner 5
|
||||||
gaps outer 5
|
gaps outer 5
|
||||||
|
|
||||||
set $term --no-startup-id $TERMINAL
|
set $term --no-startup-id $TERMINAL
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
set $stoprec --no-startup-id dmenurecord kill
|
set $stoprec --no-startup-id dmenurecord kill
|
||||||
@ -34,7 +25,6 @@ set $hibernate sudo -A systemctl suspend
|
|||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
# #---Dropdown Windows---# #
|
# #---Dropdown Windows---# #
|
||||||
|
|
||||||
# General dropdown window traits. The order can matter.
|
# General dropdown window traits. The order can matter.
|
||||||
for_window [instance="dropdown_*"] floating enable
|
for_window [instance="dropdown_*"] floating enable
|
||||||
for_window [instance="dropdown_*"] move scratchpad
|
for_window [instance="dropdown_*"] move scratchpad
|
||||||
@ -332,7 +322,6 @@ bindsym $mod+Shift+Up move up
|
|||||||
bindsym $mod+Shift+Right move right
|
bindsym $mod+Shift+Right move right
|
||||||
|
|
||||||
# #---Media Keys---# #
|
# #---Media Keys---# #
|
||||||
|
|
||||||
# Volume keys
|
# Volume keys
|
||||||
bindsym $mod+plus exec --no-startup-id lmc up 5
|
bindsym $mod+plus exec --no-startup-id lmc up 5
|
||||||
bindsym $mod+Shift+plus exec --no-startup-id lmc up 15
|
bindsym $mod+Shift+plus exec --no-startup-id lmc up 15
|
||||||
@ -360,7 +349,6 @@ bindsym $mod+Shift+BackSpace exec --no-startup-id systemctl suspend
|
|||||||
|
|
||||||
|
|
||||||
# #---Extra XF86 Keys---# #
|
# #---Extra XF86 Keys---# #
|
||||||
# These are the extra media keys that some keyboards have.
|
|
||||||
bindsym XF86AudioMute exec --no-startup-id lmc mute
|
bindsym XF86AudioMute exec --no-startup-id lmc mute
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id lmc down 5
|
bindsym XF86AudioLowerVolume exec --no-startup-id lmc down 5
|
||||||
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id lmc down 10
|
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id lmc down 10
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
[Default Applications]
|
[Default Applications]
|
||||||
x-scheme-handler/magnet=transmission-remote.desktop;
|
x-scheme-handler/magnet=torrent.desktop;
|
||||||
x-scheme-handler/mailto=mutt.desktop;
|
x-scheme-handler/mailto=mail.desktop;
|
||||||
text/plain=vim.desktop;
|
text/plain=text.desktop;
|
||||||
application/pdf=zathura.desktop;
|
text/x-shellscript=text.desktop;
|
||||||
image/png=sxiv.desktop;
|
application/pdf=pdf.desktop;
|
||||||
image/jpeg=sxiv.desktop;
|
image/png=img.desktop;
|
||||||
image/gif=sxiv.desktop;
|
image/jpeg=img.desktop;
|
||||||
|
image/gif=img.desktop;
|
||||||
|
application/rss+xml=rss.desktop
|
||||||
|
|||||||
@ -10,13 +10,16 @@ Plug 'LukeSmithxyz/vimling'
|
|||||||
Plug 'vimwiki/vimwiki'
|
Plug 'vimwiki/vimwiki'
|
||||||
Plug 'bling/vim-airline'
|
Plug 'bling/vim-airline'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
|
Plug 'vifm/vifm.vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
set bg=light
|
set bg=light
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set nohlsearch
|
set nohlsearch
|
||||||
set clipboard=unnamedplus
|
set clipboard=unnamedplus
|
||||||
|
|
||||||
" Some basics:
|
" Some basics:
|
||||||
|
nnoremap c "_c
|
||||||
set nocompatible
|
set nocompatible
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
syntax on
|
syntax on
|
||||||
@ -37,7 +40,7 @@ set clipboard=unnamedplus
|
|||||||
set splitbelow splitright
|
set splitbelow splitright
|
||||||
|
|
||||||
" Nerd tree
|
" Nerd tree
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
map <leader>n :NERDTreeToggle<CR>
|
||||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||||
|
|
||||||
" vimling:
|
" vimling:
|
||||||
@ -92,10 +95,10 @@ set clipboard=unnamedplus
|
|||||||
autocmd BufWritePre * %s/\s\+$//e
|
autocmd BufWritePre * %s/\s\+$//e
|
||||||
|
|
||||||
" When shortcut files are updated, renew bash and ranger configs with new material:
|
" When shortcut files are updated, renew bash and ranger configs with new material:
|
||||||
autocmd BufWritePost ~/.bmdirs,~/.bmfiles !shortcuts
|
autocmd BufWritePost ~/.config/bmdirs,~/.config/bmfiles !shortcuts
|
||||||
|
|
||||||
" Run xrdb whenever Xdefaults or Xresources are updated.
|
" Run xrdb whenever Xdefaults or Xresources are updated.
|
||||||
autocmd BufWritePost ~/.Xresources,~/.Xdefaults !xrdb %
|
autocmd BufWritePost *Xresources,*Xdefaults !xrdb %
|
||||||
|
|
||||||
" Navigating with guides
|
" Navigating with guides
|
||||||
inoremap <leader><leader> <Esc>/<++><Enter>"_c4l
|
inoremap <leader><leader> <Esc>/<++><Enter>"_c4l
|
||||||
|
|||||||
@ -25,6 +25,9 @@ set vicmd=vim
|
|||||||
" standard utilities like `cp`. While using `cp` and alike is a more universal
|
" 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
|
" solution, it's also much slower when processing large amounts of files and
|
||||||
" doesn't support progress measuring.
|
" doesn't support progress measuring.
|
||||||
|
" vim: filetype=vifm
|
||||||
|
|
||||||
|
source ~/.config/vifm/vifmshortcuts
|
||||||
|
|
||||||
set syscalls
|
set syscalls
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Type=Application
|
|
||||||
Name=feh image viewer
|
|
||||||
Exec=/usr/bin/feh %u
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Type=Application
|
|
||||||
Name=Animated gif handler
|
|
||||||
Exec=/usr/bin/mpv --loop %u
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=sxiv image viewer
|
Name=Image viewer
|
||||||
Exec=/usr/bin/sxiv -a %u
|
Exec=/usr/bin/sxiv -a %u
|
||||||
@ -1,4 +1,4 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Neomutt Mail
|
Name=Mail
|
||||||
Exec=/usr/local/bin/st -e neomutt %u
|
Exec=/usr/local/bin/st -e neomutt %u
|
||||||
@ -1,4 +1,4 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Zathura PDF reader
|
Name=PDF reader
|
||||||
Exec=/usr/bin/zathura %u
|
Exec=/usr/bin/zathura %u
|
||||||
4
.local/share/applications/rss.desktop
Normal file
4
.local/share/applications/rss.desktop
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=RSS feed addition
|
||||||
|
Exec=/usr/bin/env rssadd %U
|
||||||
@ -1,4 +1,4 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Neovim
|
Name=Text editor
|
||||||
Exec=/usr/local/bin/st -e nvim %u
|
Exec=/usr/local/bin/st -e nvim %u
|
||||||
@ -1,4 +1,4 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Transmission Addition
|
Name=Torrent
|
||||||
Exec=/usr/bin/env transadd %U
|
Exec=/usr/bin/env transadd %U
|
||||||
@ -2,4 +2,4 @@
|
|||||||
# Toggles all cronjobs off/on.
|
# Toggles all cronjobs off/on.
|
||||||
# Stores disabled crontabs in ~/.consaved until restored.
|
# Stores disabled crontabs in ~/.consaved until restored.
|
||||||
|
|
||||||
([ -f ~/.cronsaved ] && crontab - < ~/.cronsaved && rm ~/.cronsaved && note "Cronjobs re-enabled." "$PIX/clock.gif" ) || ( crontab -l > ~/.cronsaved && crontab -r && note "Cronjobs saved and disabled." "$PIX/clock.gif")
|
([ -f ~/.cronsaved ] && crontab - < ~/.cronsaved && rm ~/.cronsaved && notify-send "🕓 Cronjobs re-enabled.") || ( crontab -l > ~/.cronsaved && crontab -r && notify-send "🕓 Cronjobs saved and disabled.")
|
||||||
|
|||||||
@ -5,7 +5,8 @@
|
|||||||
# Must have xclip installed to even show menu.
|
# Must have xclip installed to even show menu.
|
||||||
xclip -h >/dev/null || exit
|
xclip -h >/dev/null || exit
|
||||||
|
|
||||||
chosen=$(grep -v "#" ~/.emoji | rofi -dmenu -i -l 20 -fn 'Twitter Color Font-18')
|
#chosen=$(grep -v "#" ~/.emoji | rofi -dmenu -i -l 20 -fn 'Twitter Color Font-18')
|
||||||
|
chosen=$(grep -v "#" ~/.config/emoji | dmenu -i -l 20 -fn Monospace-18)
|
||||||
|
|
||||||
[ "$chosen" != "" ] || exit
|
[ "$chosen" != "" ] || exit
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Credit to Maddison Hellstrom (@b0o on Github)
|
|
||||||
ifinstalled feh && qrencode -o - -s 1 \
|
|
||||||
"$(xclip -out -selection clipboard)" |
|
|
||||||
feh --zoom max \
|
|
||||||
-F \
|
|
||||||
--force-aliasing \
|
|
||||||
--image-bg white \
|
|
||||||
-
|
|
||||||
9
.scripts/tools/rssadd
Executable file
9
.scripts/tools/rssadd
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null &&
|
||||||
|
notify-send -i "$PIX/rss.svg" "That doesn't look like a full URL." && exit
|
||||||
|
RSSFILE="$HOME/.config/newsboat/urls"
|
||||||
|
if awk '{print $1}' "$RSSFILE" | grep "^$1$" >/dev/null; then
|
||||||
|
notify-send -i "$PIX/rss.svg" "You already have this RSS feed."
|
||||||
|
else
|
||||||
|
echo "$1" >> "$RSSFILE" && notify-send -i "$PIX/rss.svg" "RSS feed added."
|
||||||
|
fi
|
||||||
Loading…
x
Reference in New Issue
Block a user