From 522e4c513d768d75b21702abde0b329d5fb72081 Mon Sep 17 00:00:00 2001 From: Eduard Toloza Date: Sun, 19 Aug 2018 13:38:14 -0500 Subject: [PATCH] modified some tings --- .bashrc | 5 +- etc/grub | 8 +- nvim/init.vim | 56 ++++ openbox/autostart | 4 + openbox/menu.xml | 316 ++++++++++++++++++ openbox/rc.xml | 795 ++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 1179 insertions(+), 5 deletions(-) create mode 100644 nvim/init.vim create mode 100644 openbox/autostart create mode 100644 openbox/menu.xml create mode 100644 openbox/rc.xml diff --git a/.bashrc b/.bashrc index 97c3b6f..73b7f3c 100644 --- a/.bashrc +++ b/.bashrc @@ -135,6 +135,9 @@ alias gitver='echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)' # Print SRCINFO in AUR packages alias srcinfo='makepkg --printsrcinfo > .SRCINFO' +# See the amount of memory and CPU used by applications +alias cmcheck='ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem|head' + # Avoid pip installing packages as root/sudo, execute the following line in your terminal or just delete the # at the begin #install -Dm644 /dev/stdin ~/.config/pip/pip.conf <<< $'[install]\nuser = yes\n' @@ -155,5 +158,5 @@ export VISUAL="nvim" #Autostart X at login if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then - exec sx + exec sx fi diff --git a/etc/grub b/etc/grub index 8ee1829..8604ee8 100644 --- a/etc/grub +++ b/etc/grub @@ -1,10 +1,10 @@ # GRUB boot loader configuration -GRUB_DEFAULT="1>2" -GRUB_TIMEOUT=5 +GRUB_DEFAULT=0 +GRUB_TIMEOUT=2 GRUB_DISTRIBUTOR="Arch" GRUB_CMDLINE_LINUX_DEFAULT="quiet" -GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda3:luks:allow-discards ipv6.disable_ipv6=1 zswap.zpool=z3fold zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4" +GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda3:luks:allow-discards ipv6.disable_ipv6=1 zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=20 zswap.zpool=z3fold vm.dirty_ratio=3 vm.dirty_background_ratio=2 vm.vfs_cache_pressure=60" # Preload both GPT and MBR modules so that they are not missed GRUB_PRELOAD_MODULES="part_gpt part_msdos" @@ -43,7 +43,7 @@ GRUB_DISABLE_RECOVERY=true #GRUB_COLOR_HIGHLIGHT="light-cyan/blue" # Uncomment one of them for the gfx desired, a image background or a gfxtheme -GRUB_BACKGROUND="/home/sechacklabs/Pictures/SHL/sechacklabs-wallpaper-dark.jpg" +#GRUB_BACKGROUND="/path/to/wallpaper" #GRUB_THEME="/path/to/gfxtheme" # Uncomment to get a beep at GRUB start diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..894a2c7 --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,56 @@ +" Plugins will be downloaded under the specified directory. +call plug#begin('~/.local/share/nvim/plugged') + +" Declare the list of plugins. +Plug 'morhetz/gruvbox' + +" List ends here. Plugins become visible to Vim after this call. +call plug#end() + +syntax on +set guifont=Monospace\ Bold\ 12 +colors gruvbox +set background=dark + +" Uncomment the following to have Vim jump to the last position when +" reopening a file +if has("autocmd") + au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif +endif + +" Uncomment the following to have Vim load indentation rules and plugins +" according to the detected filetype. +if has("autocmd") + filetype plugin indent on +endif + +set showmatch " Show matching brackets. +set number " Show the line numbers on the left side. +set formatoptions+=o " Continue comment marker in new lines. +set expandtab " Insert spaces when TAB is pressed. +set tabstop=4 " Render TABs using this many spaces. +set shiftwidth=4 " Indentation amount for < and > commands. +set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J) + +" More natural splits +set splitbelow " Horizontal split below current +set splitright " Vertical split to right of current. +if !&scrolloff + set scrolloff=3 " Show next 3 lines while scrolling. +endif + +if !&sidescrolloff + set sidescrolloff=5 " Show next 5 columns while side-scrolling. +endif +set nostartofline " Do not jump to first character with page commands. + +" Tell Vim which characters to show for expanded TABs, +" trailing whitespace, and end-of-lines. VERY useful! +if &listchars ==# 'eol:$' + set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+ +endif +set list " Show problematic characters. + +" Also highlight all tabs and trailing whitespace characters. +highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen +match ExtraWhitespace /\s\+$\|\t/ diff --git a/openbox/autostart b/openbox/autostart new file mode 100644 index 0000000..bc39988 --- /dev/null +++ b/openbox/autostart @@ -0,0 +1,4 @@ +tint2 & +cbatticon & +dunst & +feh --bg-center /home/sechacklabs/Pictures/SHL/sechacklabs-wallpaper-dark.jpg & diff --git a/openbox/menu.xml b/openbox/menu.xml new file mode 100644 index 0000000..a290741 --- /dev/null +++ b/openbox/menu.xml @@ -0,0 +1,316 @@ + + + + + + burpsuite + + + Cutter + + + electron + + + fluid + + + xterm -e gdb + + + genymotion + + + genymotion-player + + + /usr/lib/jvm/java-7-openjdk/jre/bin/policytool + + + assistant + + + designer + + + linguist + + + qdbusviewer + + + subl3 + + + + + xterm -e emacs + + + gvim + + + mousepad + + + xterm -e nano + + + xterm -e nvim + + + xterm -e xfce4-terminal -x nvim + + + nvim-gtk + + + xterm -e vi + + + xterm -e vim + + + wxHexEditor + + + + + + 0ad + + + xterm -e ufoded + + + ufo + + + ufo +exec safemode.cfg + + + + + + gimp-2.10 + + + viewnior + + + xgps + + + xgpsspeed + + + + + xterm -e alsamixer + + + gnome-alsamixer + + + mpv + + + openshot-qt + + + pavucontrol + + + qv4l2 + + + simplescreenrecorder --logfile + + + smplayer + + + smtube + + + volumeicon + + + + + anydesk + + + bssh + + + bvnc + + + filezilla + + + firefox + + + xterm -e ftp + + + xterm -e mail + + + pidgin + + + qbittorrent + + + vinagre + + + signal-desktop + + + signal-desktop --start-in-tray + + + xterm -e talk + + + telegram-desktop + + + xterm -e telnet + + + thunderbird + + + vncviewer + + + tor-browser-en + + + wireshark-gtk + + + zenmap + + + /usr/share/zenmap/su-to-zenmap.sh + + + + + libreoffice + + + llpp + + + + + pcmanfm + + + xterm -e git + + + VirtualBox + + + uxterm + + + xfce4-terminal + + + xterm + + + + + + + gufw + + + + + xscreensaver-demo + + + + lxappearance + + + pcmanfm --desktop-pref + + + xfce4-notifyd-config + + + obconf + + + obkey + + + obmenu3 + + + libfm-pref-apps + + + tint2conf + + + xfce4-terminal --preferences + + + + android-file-transfer + + + avahi-discover + + + bleachbit + + + gparted + + + lstopo + + + xterm -e htop + + + mat-gui + + + tint2 + + + + + xfce4-about + + + parcellite + + + xarchiver + + + + + + + + + + + diff --git a/openbox/rc.xml b/openbox/rc.xml new file mode 100644 index 0000000..3b5f194 --- /dev/null +++ b/openbox/rc.xml @@ -0,0 +1,795 @@ + + + 10 + 20 + + + yes + + no + + yes + + no + + 200 + + no + + + + Smart + +
yes
+ + Primary + + 1 + +
+ + Turquoise Nights Ob + NLIMC + + yes + no + + Sans + 10 + + Bold + + Normal + + + + Sans + 9 + + Bold + + Normal + + + + Sans + 10 + + Normal + + Normal + + + + Sans + 10 + + Normal + + Normal + + + + sans + 9 + + bold + + normal + + + + sans + 9 + + bold + + normal + + + + + + 2 + 1 + + + + 875 + + + + yes + NonPixel + + Center + + + + 10 + + 10 + + + + + + 0 + 0 + 0 + 0 + + + TopLeft + + 0 + 0 + no + Above + + Vertical + + no + 300 + + 300 + + Middle + + + + C-g + + + left + no + + + + + scrot -q 100 -ub '%Y-%m-%d-%H%M%S-sechacklabs.jpg' -e 'mv $f /home/sechacklabs/Pictures/Screenshots/' + + + + + scrot -q 100 -b '%Y-%m-%d-%H%M%S-sechacklabs.jpg' -e 'mv $f /home/sechacklabs/Pictures/Screenshots/' + + + + + sh -c "pactl set-sink-mute 0 false ; pactl set-sink-volume 0 +5%" + + + + + sh -c "pactl set-sink-mute 0 false ; pactl set-sink-volume 0 -5%" + + + + + pactl set-sink-mute 0 toggle + + + + + dmenu_run + + + + + pcmanfm + + + + + + + + root-menu + + + + + firefox + + + + + signal-desktop + + + + + smplayer + + + + + propershutdown + + + + + right + no + + + + + up + no + + + + + down + no + + + + + 1 + + + + + 1 + + + + + 1 + + + + + 1 + + + + + xfce4-terminal + + + + + + + + + + + + + + + + client-menu + + + + + + + + + + + yes + yes + + + + + + + + + + + + + + + + + kfmclient openProfile filemanagement + + yes + Konqueror + + + + + + 1 + + 500 + + 400 + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + previous + + + + + next + + + + + previous + + + + + next + + + + + previous + + + + + next + + + + + + + + + + + + + no + + + + + + + + + + + yes + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + + + + + top + + + + + + + left + + + + + + + right + + + + + + + bottom + + + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + vertical + + + + + horizontal + + + + + + + + + + + + + + + + + previous + + + + + next + + + + + previous + + + + + next + + + + + previous + + + + + next + + + + + + + + + + + + + + + + client-list-combined-menu + + + + + root-menu + + + + + + + previous + + + + + next + + + + + previous + + + + + next + + + + + + + + menu.xml + 200 + + no + + 100 + + 400 + + yes + + yes + + + + + +
\ No newline at end of file