aboutsummaryrefslogtreecommitdiff
path: root/TMV
diff options
context:
space:
mode:
authorMasfehico <clyhtsuriva@gmail.com>2020-11-17 19:34:32 +0100
committerMasfehico <clyhtsuriva@gmail.com>2020-11-17 19:34:32 +0100
commit2052dd2d32748cafc394b16a7dee82a28c66085e (patch)
treea172639b370058c683eee1af148729a430df7318 /TMV
parent4bb3b1b547fd29c73f1be3c71782a42f1cb5fcbc (diff)
update
Diffstat (limited to 'TMV')
-rw-r--r--TMV/.bashrc2
-rw-r--r--TMV/.config/aliasrc5
-rw-r--r--TMV/.config/i3/config17
-rw-r--r--TMV/.vimrc55
-rw-r--r--TMV/Pictures/icons/chromium.pngbin0 -> 2738 bytes
-rw-r--r--TMV/Pictures/icons/discord.pngbin0 -> 127582 bytes
-rw-r--r--TMV/Pictures/icons/firefox.pngbin0 -> 128934 bytes
-rw-r--r--TMV/Pictures/icons/screenshot.pngbin0 -> 25573 bytes
-rw-r--r--TMV/Pictures/icons/tor.pngbin0 -> 44535 bytes
-rw-r--r--TMV/Pictures/retrowave-pyramid.pngbin0 -> 5915160 bytes
-rw-r--r--TMV/etc/i3status.conf (renamed from TMV/i3status.conf)2
11 files changed, 69 insertions, 12 deletions
diff --git a/TMV/.bashrc b/TMV/.bashrc
index ed47e62..dcaf4ef 100644
--- a/TMV/.bashrc
+++ b/TMV/.bashrc
@@ -17,3 +17,5 @@ cat /home/mas/TODO.leny
[ -f /etc/bash.command-not-found ] && . /etc/bash.command-not-found
+LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*.gba=1;32;45:*.wbfs=1;32;45:';
+export LS_COLORS
diff --git a/TMV/.config/aliasrc b/TMV/.config/aliasrc
index 7407052..af8948d 100644
--- a/TMV/.config/aliasrc
+++ b/TMV/.config/aliasrc
@@ -13,7 +13,7 @@ alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \
bat_pow='sudo upower -i /org/freedesktop/UPower/devices/battery_BAT0' \
la='ls -A' \
l='ls' \
- ll='ls -l' \
+ ll='ls -lt' \
display='sxiv' \
xbacklight='sudo xbacklight' \
nox='user_nox.py' \
@@ -26,6 +26,7 @@ alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \
rm='rm -v' \
rmac='rmac.py' \
vv='cd ~/Videos && ls -A *' \
- pp='cd ~/Pictures && ls -A *'
+ pp='cd ~/Pictures && ls -A *' \
+ mm='cd ~/Music && ls -A *'
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present.
diff --git a/TMV/.config/i3/config b/TMV/.config/i3/config
index a5d25d2..b7fe139 100644
--- a/TMV/.config/i3/config
+++ b/TMV/.config/i3/config
@@ -141,7 +141,7 @@ bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# reload the configuration file
-bindsym $mod+Shift+c reload
+#bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
@@ -200,14 +200,15 @@ bindsym $mod+Shift+W exec notify-send -t 5000 -i /home/mas/Pictures/icons/firefo
bindsym $mod+Shift+X exec "i3-nagbar -t warning -f fixed -m 'You pressed the shutting shortcut. Do you really eant to shut you computer?' -B 'Yes, shut it.' 'sudo poweroff'"
bindsym $mod+Shift+BackSpace exec "i3-nagbar -t warning -f fixed -m 'You pressed the restarting shortcut. Do you really eant to restart you computer?' -B 'Yes, restart it.' 'sudo reboot'"
bindsym $mod+Shift+T exec notify-send -t 5000 -i /home/mas/Pictures/icons/tor.png "Opening" "<span color='#40ff00' font='26px'><b>tor</b></span>" ; exec tor
+bindsym $mod+Shift+P exec notify-send -t 5000 -i /home/mas/Pictures/icons/firefox.png "Opening" "<span color='#ff6600' font='26px'><b>firefox</b></span>" ; exec firefox --private-window
exec --no-startup-id feh --bg-scale /home/mas/Pictures/retrowave-pyramid.png
#exec --no-startup-id nox $(cat /home/mas/.config/nox/config)
# Sreen brightness controls
-bindsym XF86MonBrightnessUp exec xbacklight -inc 1 # increase screen brightness
-bindsym XF86MonBrightnessDown exec xbacklight -dec 1 # decrease screen brightness
+bindsym XF86MonBrightnessUp exec xbacklight -inc 1 ; exec notify-send -t 500 "Brightness : $(xbacklight -get)" # increase screen brightness
+bindsym XF86MonBrightnessDown exec xbacklight -dec 1 ; exec notify-send -t 500 "Brightness : $(xbacklight -get)" # decrease screen brightness
# class border backgr. text indicator child_border
client.focused #c583b6 #040217 #d52c70 #F54A94 #814db3
@@ -219,10 +220,8 @@ client.placeholder #20202D #20202D #FFFFFF #0C1746 #3C3C54
client.background #D52C70
#suspend and hibernate
-#bindsym $mod+Shift+S exec sudo zzz
bindsym $mod+Shift+S exec "i3-nagbar -t warning -f fixed -m 'You pressed the suspending shortcut. Do you really want to suspend your computer?' -B 'Yes, suspend it.' 'sudo zzz'"
-#bindsym $mod+Shift+Delete exec sudo ZZZ
bindsym $mod+Shift+Delete exec "i3-nagbar -t warning -f fixed -m 'You pressed the hibernating shortcut. Do you really want to put your computer to sleep?' -B 'Yes, do it.' 'sudo ZZZ'"
#a bit of trolling
@@ -351,6 +350,7 @@ mode "$mode_gaps_left" {
}
gaps inner 15
+######
bindsym $mod+Shift+N exec xterm -e "newsboat"
@@ -362,3 +362,10 @@ bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
#bindsym XF86AudioPrev exec playerctl previous
+
+#screenshot
+bindsym Print exec notify-send -t 5000 -i /home/mas/Pictures/icons/screenshot.png "Launching" "<span color='cyan' font='26px'><b>scrot</b></span>" ; exec scrot --silent --exec 'mv $f ~/Pictures && sxiv ~/Pictures/$f'
+bindsym $mod+Shift+C exec notify-send -t 5000 -i /home/mas/Pictures/icons/chromium.png "Opening" "<span color='#5D7FD2' font='26px'><b>chromium</b></span>" ; exec chromium
+
+bindsym $mod+F10 exec dmenumount
+bindsym $mod+F11 exec dmenuumount
diff --git a/TMV/.vimrc b/TMV/.vimrc
index 3af97f7..3896408 100644
--- a/TMV/.vimrc
+++ b/TMV/.vimrc
@@ -1,4 +1,4 @@
-let mapleader =","
+let mapleader ='\'
if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
echo "Downloading junegunn/vim-plug to manage plugins..."
@@ -96,8 +96,55 @@ set clipboard=unnamedplus
autocmd BufWritePost *Xresources,*Xdefaults !xrdb %
" Update binds when sxhkdrc is updated.
autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd
-" Update dwmbar when changed.
- autocmd BufWritePost *dwmbar !killall dwmbar; setsid dwmbar &
-colo torte
+ call plug#begin('~/.vim/plugged')
+ Plug 'artur-shaik/vim-javacomplete2'
+ call plug#end()
+
+ colorscheme delek
+
+" Java autocompletion
+ autocmd FileType java setlocal omnifunc=javacomplete#Complete
+ nmap <F4> <Plug>(JavaComplete-Imports-AddSmart)
+ imap <F4> <Plug>(JavaComplete-Imports-AddSmart)
+ nmap <F5> <Plug>(JavaComplete-Imports-Add)
+ imap <F5> <Plug>(JavaComplete-Imports-Add)
+ nmap <F6> <Plug>(JavaComplete-Imports-AddMissing)
+ imap <F6> <Plug>(JavaComplete-Imports-AddMissing)
+ nmap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)
+ imap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)
+
+ nmap <leader>jI <Plug>(JavaComplete-Imports-AddMissing)
+ nmap <leader>jR <Plug>(JavaComplete-Imports-RemoveUnused)
+ nmap <leader>ji <Plug>(JavaComplete-Imports-AddSmart)
+ nmap <leader>jii <Plug>(JavaComplete-Imports-Add)
+
+ imap <C-j>I <Plug>(JavaComplete-Imports-AddMissing)
+ imap <C-j>R <Plug>(JavaComplete-Imports-RemoveUnused)
+ imap <C-j>i <Plug>(JavaComplete-Imports-AddSmart)
+ imap <C-j>ii <Plug>(JavaComplete-Imports-Add)
+
+ nmap <leader>jM <Plug>(JavaComplete-Generate-AbstractMethods)
+
+ imap <C-j>jM <Plug>(JavaComplete-Generate-AbstractMethods)
+
+ nmap <leader>jA <Plug>(JavaComplete-Generate-Accessors)
+ nmap <leader>js <Plug>(JavaComplete-Generate-AccessorSetter)
+ nmap <leader>jg <Plug>(JavaComplete-Generate-AccessorGetter)
+ nmap <leader>ja <Plug>(JavaComplete-Generate-AccessorSetterGetter)
+ nmap <leader>jts <Plug>(JavaComplete-Generate-ToString)
+ nmap <leader>jeq <Plug>(JavaComplete-Generate-EqualsAndHashCode)
+ nmap <leader>jc <Plug>(JavaComplete-Generate-Constructor)
+ nmap <leader>jcc <Plug>(JavaComplete-Generate-DefaultConstructor)
+
+ imap <C-j>s <Plug>(JavaComplete-Generate-AccessorSetter)
+ imap <C-j>g <Plug>(JavaComplete-Generate-AccessorGetter)
+ imap <C-j>a <Plug>(JavaComplete-Generate-AccessorSetterGetter)
+
+ vmap <leader>js <Plug>(JavaComplete-Generate-AccessorSetter)
+ vmap <leader>jg <Plug>(JavaComplete-Generate-AccessorGetter)
+ vmap <leader>ja <Plug>(JavaComplete-Generate-AccessorSetterGetter)
+
+ nmap <silent> <buffer> <leader>jn <Plug>(JavaComplete-Generate-NewClass)
+ nmap <silent> <buffer> <leader>jN <Plug>(JavaComplete-Generate-ClassInFile)
diff --git a/TMV/Pictures/icons/chromium.png b/TMV/Pictures/icons/chromium.png
new file mode 100644
index 0000000..09a1ebe
--- /dev/null
+++ b/TMV/Pictures/icons/chromium.png
Binary files differ
diff --git a/TMV/Pictures/icons/discord.png b/TMV/Pictures/icons/discord.png
new file mode 100644
index 0000000..967081f
--- /dev/null
+++ b/TMV/Pictures/icons/discord.png
Binary files differ
diff --git a/TMV/Pictures/icons/firefox.png b/TMV/Pictures/icons/firefox.png
new file mode 100644
index 0000000..93541eb
--- /dev/null
+++ b/TMV/Pictures/icons/firefox.png
Binary files differ
diff --git a/TMV/Pictures/icons/screenshot.png b/TMV/Pictures/icons/screenshot.png
new file mode 100644
index 0000000..edc5732
--- /dev/null
+++ b/TMV/Pictures/icons/screenshot.png
Binary files differ
diff --git a/TMV/Pictures/icons/tor.png b/TMV/Pictures/icons/tor.png
new file mode 100644
index 0000000..d4a0dc0
--- /dev/null
+++ b/TMV/Pictures/icons/tor.png
Binary files differ
diff --git a/TMV/Pictures/retrowave-pyramid.png b/TMV/Pictures/retrowave-pyramid.png
new file mode 100644
index 0000000..3d5df96
--- /dev/null
+++ b/TMV/Pictures/retrowave-pyramid.png
Binary files differ
diff --git a/TMV/i3status.conf b/TMV/etc/i3status.conf
index fef7e87..b3c138a 100644
--- a/TMV/i3status.conf
+++ b/TMV/etc/i3status.conf
@@ -42,7 +42,7 @@ battery all {
status_unk = "? UNK"
status_full = "☻ FULL"
path = "/sys/class/power_supply/BAT%d/uevent"
- low_threshold = 30
+ low_threshold = 20
}
disk "/" {