From 2052dd2d32748cafc394b16a7dee82a28c66085e Mon Sep 17 00:00:00 2001 From: Masfehico Date: Tue, 17 Nov 2020 19:34:32 +0100 Subject: update --- TMV/.bashrc | 2 + TMV/.config/aliasrc | 5 ++- TMV/.config/i3/config | 17 ++++++--- TMV/.vimrc | 55 ++++++++++++++++++++++++++-- TMV/Pictures/icons/chromium.png | Bin 0 -> 2738 bytes TMV/Pictures/icons/discord.png | Bin 0 -> 127582 bytes TMV/Pictures/icons/firefox.png | Bin 0 -> 128934 bytes TMV/Pictures/icons/screenshot.png | Bin 0 -> 25573 bytes TMV/Pictures/icons/tor.png | Bin 0 -> 44535 bytes TMV/Pictures/retrowave-pyramid.png | Bin 0 -> 5915160 bytes TMV/etc/i3status.conf | 73 +++++++++++++++++++++++++++++++++++++ TMV/i3status.conf | 73 ------------------------------------- 12 files changed, 141 insertions(+), 84 deletions(-) create mode 100644 TMV/Pictures/icons/chromium.png create mode 100644 TMV/Pictures/icons/discord.png create mode 100644 TMV/Pictures/icons/firefox.png create mode 100644 TMV/Pictures/icons/screenshot.png create mode 100644 TMV/Pictures/icons/tor.png create mode 100644 TMV/Pictures/retrowave-pyramid.png create mode 100644 TMV/etc/i3status.conf delete mode 100644 TMV/i3status.conf (limited to 'TMV') 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" "tor" ; exec tor +bindsym $mod+Shift+P exec notify-send -t 5000 -i /home/mas/Pictures/icons/firefox.png "Opening" "firefox" ; 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" "scrot" ; 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" "chromium" ; 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 (JavaComplete-Imports-AddSmart) + imap (JavaComplete-Imports-AddSmart) + nmap (JavaComplete-Imports-Add) + imap (JavaComplete-Imports-Add) + nmap (JavaComplete-Imports-AddMissing) + imap (JavaComplete-Imports-AddMissing) + nmap (JavaComplete-Imports-RemoveUnused) + imap (JavaComplete-Imports-RemoveUnused) + + nmap jI (JavaComplete-Imports-AddMissing) + nmap jR (JavaComplete-Imports-RemoveUnused) + nmap ji (JavaComplete-Imports-AddSmart) + nmap jii (JavaComplete-Imports-Add) + + imap I (JavaComplete-Imports-AddMissing) + imap R (JavaComplete-Imports-RemoveUnused) + imap i (JavaComplete-Imports-AddSmart) + imap ii (JavaComplete-Imports-Add) + + nmap jM (JavaComplete-Generate-AbstractMethods) + + imap jM (JavaComplete-Generate-AbstractMethods) + + nmap jA (JavaComplete-Generate-Accessors) + nmap js (JavaComplete-Generate-AccessorSetter) + nmap jg (JavaComplete-Generate-AccessorGetter) + nmap ja (JavaComplete-Generate-AccessorSetterGetter) + nmap jts (JavaComplete-Generate-ToString) + nmap jeq (JavaComplete-Generate-EqualsAndHashCode) + nmap jc (JavaComplete-Generate-Constructor) + nmap jcc (JavaComplete-Generate-DefaultConstructor) + + imap s (JavaComplete-Generate-AccessorSetter) + imap g (JavaComplete-Generate-AccessorGetter) + imap a (JavaComplete-Generate-AccessorSetterGetter) + + vmap js (JavaComplete-Generate-AccessorSetter) + vmap jg (JavaComplete-Generate-AccessorGetter) + vmap ja (JavaComplete-Generate-AccessorSetterGetter) + + nmap jn (JavaComplete-Generate-NewClass) + nmap jN (JavaComplete-Generate-ClassInFile) diff --git a/TMV/Pictures/icons/chromium.png b/TMV/Pictures/icons/chromium.png new file mode 100644 index 0000000..09a1ebe Binary files /dev/null and b/TMV/Pictures/icons/chromium.png differ diff --git a/TMV/Pictures/icons/discord.png b/TMV/Pictures/icons/discord.png new file mode 100644 index 0000000..967081f Binary files /dev/null and b/TMV/Pictures/icons/discord.png differ diff --git a/TMV/Pictures/icons/firefox.png b/TMV/Pictures/icons/firefox.png new file mode 100644 index 0000000..93541eb Binary files /dev/null and b/TMV/Pictures/icons/firefox.png differ diff --git a/TMV/Pictures/icons/screenshot.png b/TMV/Pictures/icons/screenshot.png new file mode 100644 index 0000000..edc5732 Binary files /dev/null and b/TMV/Pictures/icons/screenshot.png differ diff --git a/TMV/Pictures/icons/tor.png b/TMV/Pictures/icons/tor.png new file mode 100644 index 0000000..d4a0dc0 Binary files /dev/null and b/TMV/Pictures/icons/tor.png differ diff --git a/TMV/Pictures/retrowave-pyramid.png b/TMV/Pictures/retrowave-pyramid.png new file mode 100644 index 0000000..3d5df96 Binary files /dev/null and b/TMV/Pictures/retrowave-pyramid.png differ diff --git a/TMV/etc/i3status.conf b/TMV/etc/i3status.conf new file mode 100644 index 0000000..b3c138a --- /dev/null +++ b/TMV/etc/i3status.conf @@ -0,0 +1,73 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + color_good="#c583b6" + color_bad="#231c51" + color_degraded="#6c2e8d" + interval = 1 +} + +#order += "ipv6" +order += "wireless _first_" +order += "ethernet _first_" +order += "battery all" +order += "disk /" +#order += "load" +#order += "memory" +order += "volume master" +order += "tztime utc" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining %emptytime" + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 20 +} + +disk "/" { + format = "%avail / %total" +} + +load { + format = "%1min" +} + +memory { + format = "%used / %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime utc { + format = "%a %d %b %Y %H:%M:%S" + timezone = "Etc/UTC" +} + +volume master { + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "default" + mixer = "Master" + mixer_idx = 0 +} diff --git a/TMV/i3status.conf b/TMV/i3status.conf deleted file mode 100644 index fef7e87..0000000 --- a/TMV/i3status.conf +++ /dev/null @@ -1,73 +0,0 @@ -# i3status configuration file. -# see "man i3status" for documentation. - -# It is important that this file is edited as UTF-8. -# The following line should contain a sharp s: -# ß -# If the above line is not correctly displayed, fix your editor first! - -general { - colors = true - color_good="#c583b6" - color_bad="#231c51" - color_degraded="#6c2e8d" - interval = 1 -} - -#order += "ipv6" -order += "wireless _first_" -order += "ethernet _first_" -order += "battery all" -order += "disk /" -#order += "load" -#order += "memory" -order += "volume master" -order += "tztime utc" - -wireless _first_ { - format_up = "W: (%quality at %essid) %ip" - format_down = "W: down" -} - -ethernet _first_ { - format_up = "E: %ip (%speed)" - format_down = "E: down" -} - -battery all { - format = "%status %percentage %remaining %emptytime" - format_down = "No battery" - status_chr = "⚡ CHR" - status_bat = "🔋 BAT" - status_unk = "? UNK" - status_full = "☻ FULL" - path = "/sys/class/power_supply/BAT%d/uevent" - low_threshold = 30 -} - -disk "/" { - format = "%avail / %total" -} - -load { - format = "%1min" -} - -memory { - format = "%used / %available" - threshold_degraded = "1G" - format_degraded = "MEMORY < %available" -} - -tztime utc { - format = "%a %d %b %Y %H:%M:%S" - timezone = "Etc/UTC" -} - -volume master { - format = "♪: %volume" - format_muted = "♪: muted (%volume)" - device = "default" - mixer = "Master" - mixer_idx = 0 -} -- cgit v1.2.3