Skip to content

Commit

Permalink
👷 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben-Madelaine committed May 30, 2021
1 parent a4972ed commit 8eef336
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 18 deletions.
34 changes: 32 additions & 2 deletions .bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,20 @@ PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
STYLE1='%C(auto)%h %<|(20)%gd %C(blue)%cr%C(reset) %gs (%s)'

## basic aliases
alias ar='yes Y| sudo apt-get autoremove'
alias a='autokey-gtk &'
alias c='clear'
alias ar='yes Y| sudo apt-get autoremove'
alias cp='rsync --info=progress2'
alias conf='cd ~/.config'
alias cdp='cd /home/ruben/workspace/projects'
alias cdb='cd //media/ruben/HD1/books'
alias viread='vi ~/workspace/git/statistica/Reading/planning\ de\ lecture.md'
alias cdg='cd /home/ruben/workspace/git'
alias cdgk='cd /home/ruben/workspace/git/keylinks'
alias cdgm='cd /home/ruben/workspace/git/my-configs'
alias cdgs='cd /home/ruben/workspace/git/statistica'
alias cdl='cd /media/linux_hd'
alias cdlp='cd /media/linux_hd/private'
alias cdvm='cd /home/ruben/workspace/projects/virtual_machine/shared/'
alias dofus='cd ~/Games; ./Ankama\ Launcher-Setup-x86_64.AppImage'
alias dofus2="cd /home/ruben/.config/Ankama/zaap/dofus/; ./zaap-start.sh"
Expand Down Expand Up @@ -100,11 +107,15 @@ alias ku='rsync -vrP --delete-after /home/ruben/workspace/git/keylinks/ root@key
alias vba='visualboyadvance-m'
alias vi='nvim'

alias vbrc='vi ~/.bashrc'
alias vbal='vi ~/.bash_aliases'
alias vbrc='vi ~/.bashrc'
alias vbhi='vi ~/.bash_history'
alias vvrc='vi ~/.vim/.vimrc'
alias vtmx='vi ~/.tmux.conf'
alias vxrc='vi ~/etc/X11/xinit/xinitrc'
alias vrcl='vi ~/.config/awesome/rc.lua'
alias vpll='vi ~/workspace/git/statistica/Reading/planning_de_lecture.md'
alias v.='sudo vi .'


alias voli='amixer -D pulse set Master 5%+'
Expand Down Expand Up @@ -167,6 +178,25 @@ alias gu='git reset HEAD --' # unstage a cartain file: git unstage fileA
alias glast='git log -1 HEAD' # show last commit
alias gw='git whatchanged'


torb(){
xargs /home/ruben/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/start-tor-browser < /media/linux_hd/private/"$1"
}
torll(){
for entry in "/media/linux_hd/private"/*
do
if [ -f "$entry" ];then
echo "$entry"| sed 's/^\.\///g'
fi
done
}

torl(){
for file in /media/linux_hd/private/*; do
echo "${file##*/}"
done
}

alias wifi_list='nmcli d wifi list'

#git moji
Expand Down
23 changes: 15 additions & 8 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,29 @@ au FocusGained,BufEnter * :checktime
set t_Co=256
let g:airline_powerline_fonts = 1
set timeoutlen=1000 ttimeoutlen=0
set relativenumber

"let g:airline_theme='gruvbox'
"colorscheme gruvbox
"set background=dark

call plug#begin('~/.vim/plugged')
Plug 'vim-scripts/vim-plug'
Plug 'preservim/NERDTree'
Plug 'frazrepo/vim-rainbow'
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } } "firevim browser (chrome) extension
Plug 'https://github.com/airblade/vim-gitgutter'
Plug 'iamcco/markdown-preview.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'itchyny/landscape.vim'
Plug 'zxqfl/tabnine-vim'
Plug 'frazrepo/vim-rainbow'
Plug 'itchyny/lightline.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'https://github.com/airblade/vim-gitgutter'
"Plug 'neovim/nvim-lspconfig'
Plug 'nvim-lua/completion-nvim'
Plug 'preservim/NERDTree'
Plug 'terryma/vim-multiple-cursors' "vim-multiple-cursors
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } } "firevim browser (chrome) extension
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'vim-scripts/vim-plug'
Plug 'zxqfl/tabnine-vim'
call plug#end()

"Save file with admin protection
Expand Down
94 changes: 88 additions & 6 deletions powerline-shell/root.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,94 @@
from ..utils import BasicSegment
from datetime import date, datetime

bashmoji_list =['🐔', '🦴', '💫', '👽', '⭐', '🌮', '🤡', '🦊', '🐧', '🤖',
'👺', '😽', '🐐', '👾', '🍣', '🦙', '🐦', '🦧', '🐫', '☕', '🌞', '⚡', '🐢', '😁', '🦏', '🦆',
'🦄', '🧃', '🌈', '👹', '🦍', '👻', '🦋', '🌟', '🐌', '🌛', '🐗', '🐥', '🌯', '🦌',
'🌜', '🤔', '🐑', '🍕', '💥', '🐴','🐼', '🔥', '🐣',
'🐰', '🐶', '✨', '🥪', '🦅', '🤠', '🐱', '🎃', '🌝', '😺', '💩', '🦇', '🐘', '🦜', '🐞', '🦉', '🍟', '🤑', '🤪', '😄', '🥤',
'🐝', '🐸', '🚀']
bashmoji_list =['😒','😞','😔','😟','😕','🙁','☹️','😣','😖','😫','😩','🥺','😢','😭','😤','😠','😡','🤬',
'😀','😃','😄','😁','😆','😅','😂','🤣','🥲','☺️','😊','😇','🙂','🙃','😉','😌','😍','🥰',
'😘','😗','😙','😚','😋','😛','😝','😜','🤪','🤨','🧐','🤓','😎','🥸','🤩','🥳','😏','😒',
'😞','😔','😟','😕','🙁','☹️','😣','😖','😫','😩','🥺','😢','😭','😤','😠','😡','🤬','🤯',
'😳','🥵','🥶','😱','😨','😰','😥','😓','🤗','🤔','🤭','🤫','🤥','😶','😐','😑','😬','🙄',
'😯','😦','😧','😮','😲','🥱','😴','🤤','😪','😵','🤐','🥴','🤢','🤮','🤧','😷','🤒','🤕',
'🤑','🤠','😈','👿','👹','👺','🤡','💩','👻','💀','☠️','👽','👾','🤖','🎃','😺','😸','😹',
'😻','😼','😽','🙀','😿','😾','👋','🤚','🖐','✋','🖖','👌','🤌','🤏','✌️','🤞','🤟','🤘',
'🤙','👈','👉','👆','🖕','👇','☝️','👍','👎','✊','👊','🤛','🤜','👏','🙌','👐','🤲','🤝',
'🙏','✍️','💅','🤳','💪','🦾','🦵','🦿','🦶','👣','👂','🦻','👃','🫀','🫁','🧠','🦷','🦴',
'👀','👁','👅','👄','💋',
'🧳','🌂','☂️','🧵','🪡','🪢','🧶','👓','🕶','🥽','🥼','🦺','👔','👕','👖','🧣','🧤','🧥',
'🧦','👗','👘','🥻','🩴','🩱','🩲','🩳','👙','👚','👛','👜','👝','🎒','👞','👟','🥾','🥿',
'👠','👡','🩰','👢','👑','👒','🎩','🎓','🧢','⛑','🪖','💄','💍','💼','🐶','🐱','🐭','🐹',
'🐰','🦊','🐻','🐼','🐻','🐨','🐯','🦁','🐮','🐷','🐽','🐸','🐵','🙈','🙉','🙊','🐒','🐔',
'🐧','🐦','🐤','🐣','🐥','🦆','🦅','🦉','🦇','🐺','🐗','🐴','🦄','🐝','🪱','🐛','🦋','🐌',
'🐞','🐜','🪰','🪲','🪳','🦟','🦗','🕷','🕸','🦂','🐢','🐍','🦎','🦖','🦕','🐙','🦑','🦐',
'🦞','🦀','🐡','🐠','🐟','🐬','🐳','🐋','🦈','🐊','🐅','🐆','🦓','🦍','🦧','🦣','🐘','🦛',
'🦏','🐪','🐫','🦒','🦘','🦬','🐃','🐂','🐄','🐎','🐖','🐏','🐑','🦙','🐐','🦌','🐕','🐩',
'🦮','🦺','🐈','🪶','🐓','🦃','🦤','🦚','🦜','🦢','🦩','🕊','🐇','🦝','🦨','🦡','🦫',
'🦦','🦥','🐁','🐀','🐿','🦔','🐾','🐉','🐲','🌵','🎄','🌲','🌳','🌴','🪵','🌱','🌿','☘️',
'🍀','🎍','🪴','🎋','🍃','🍂','🍁','🍄','🐚','🪨','🌾','💐','🌷','🌹','🥀','🌺','🌸','🌼',
'🌻','🌞','🌝','🌛','🌜','🌚','🌕','🌖','🌗','🌘','🌑','🌒','🌓','🌔','🌙','🌎','🌍','🌏',
'🪐','💫','⭐️','🌟','✨','⚡️','☄️','💥','🔥','🌪','🌈','☀️','🌤','⛅️','🌥','☁️','🌦','🌧',
'⛈','🌩','🌨','❄️','☃️','⛄️','🌬','💨','💧','💦','☔️','☂️','🌊','🌫','🍏','🍎','🍐','🍊',
'🍋','🍌','🍉','🍇','🍓','🫐','🍈','🍒','🍑','🥭','🍍','🥥','🥝','🍅','🍆','🥑','🥦','🥬',
'🥒','🌶','🫑','🌽','🥕','🫒','🧄','🧅','🥔','🍠','🥐','🥯','🍞','🥖','🥨','🧀','🥚','🍳',
'🧈','🥞','🧇','🥓','🥩','🍗','🍖','🦴','🌭','🍔','🍟','🍕','🫓','🥪','🥙','🧆','🌮','🌯',
'🫔','🥗','🥘','🫕','🥫','🍝','🍜','🍲','🍛','🍣','🍱','🥟','🦪','🍤','🍙','🍚','🍘','🍥',
'🥠','🥮','🍢','🍡','🍧','🍨','🍦','🥧','🧁','🍰','🎂','🍮','🍭','🍬','🍫','🍿','🍩','🍪',
'🌰','🥜','🍯','🥛','🍼','🫖','☕️','🍵','🧃','🥤','🧋','🍶','🍺','🍻','🥂','🍷','🥃','🍸',
'🍹','🧉','🍾','🧊','🥄','🍴','🍽','🥣','🥡','🥢','🧂','⚽️','🏀','🏈','⚾️','🥎','🎾','🏐',
'🏉','🥏','🎱','🪀','🏓','🏸','🏒','🏑','🥍','🏏','🪃','🥅','⛳️','🪁','🏹','🎣','🤿','🥊',
'🚴','🏆','🥇','🥈','🥉','🏅','🎖','🏵','🎗','🎫','🎟','🎪',
'🎬','🎤','🎧','🎼','🎹','🥁','🪘','🎷','🎺','🪗','🎸','🪕','🎻','🎲','🎯','🎳','🎮','🎰',
'🧩','🚗','🚕','🚙','🚌','🚎','🏎','🚓','🚑','🚒','🚐','🛻','🚚','🚛','🚜','🦯','🦽','🦼',
'🛴','🚲','🛵','🏍','🛺','🚨','🚔','🚍','🚘','🚖','🚡','🚠','🚟','🚃','🚋','🚞','🚝','🚄',
'🚅','🚈','🚂','🚆','🚇','🚊','🚉','✈️','🛫','🛬','🛩','💺','🛰','🚀','🛸','🚁','🛶','⛵️',
'🚤','🛥','🛳','⛴','🚢','⚓️','🪝','⛽️','🚧','🚦','🚥','🚏','🗺','🗿','🗽','🗼','🏰','🏯',
'🏟','🎡','🎢','🎠','⛲️','⛱','🏖','🏝','🏜','🌋','⛰','🏔','🗻','🏕','⛺️','🛖','🏠','🏡',
'🏘','🏚','🏗','🏭','🏢','🏬','🏣','🏤','🏥','🏦','🏨','🏪','🏫','🏩','💒','🏛','⛪️','🕌',
'🕍','🛕','🕋','⛩','🛤','🛣','🗾','🎑','🏞','🌅','🌄','🌠','🎇','🎆','🌇','🌆','🏙','🌃',
'🌌','🌉','🌁','⌚️','📱','📲','💻','⌨️','🖥','🖨','🖱','🖲','🕹','🗜','💽','💾','💿','📀',
'📼','📷','📸','📹','🎥','📽','🎞','📞','☎️','📟','📠','📺','📻','🎙','🎚','🎛','🧭','⏱',
'⏲','⏰','🕰','⌛️','⏳','📡','🔋','🔌','💡','🔦','🕯','🪔','🧯','🛢','💸','💵','💴','💶',
'💷','🪙','💰','💳','💎','⚖️','🪜','🧰','🪛','🔧','🔨','🛠','⛏','🪚','🔩','⚙️','🪤','🧱',
'⛓','🧲','🔫','💣','🧨','🪓','🔪','🗡','⚔️','🛡','🚬','⚰️','🪦','⚱️','🏺','🔮','📿','🧿',
'💈','⚗️','🔭','🔬','🕳','🩹','🩺','💊','💉','🩸','🧬','🦠','🧫','🧪','🌡','🧹','🪠','🧺',
'🧻','🚽','🚰','🚿','🛁','🛀','🧼','🪥','🪒','🧽','🪣','🧴','🛎','🔑','🗝','🚪','🪑','🛋',
'🛏','🛌','🧸','🪆','🖼','🪞','🪟','🛍','🛒','🎁','🎈','🎏','🎀','🪄','🪅','🎊','🎉','🎎',
'🏮','🎐','🧧','✉️','📩','📨','📧','💌','📥','📤','📦','🏷','🪧','📪','📫','📬','📭','📮',
'📯','📜','📃','📄','📑','🧾','📊','📈','📉','🗒','🗓','📆','📅','🗑','📇','🗃','🗳','🗄',
'📋','📁','📂','🗂','🗞','📰','📓','📔','📒','📕','📗','📘','📙','📚','📖','🔖','🧷','🔗',
'📎','🖇','📐','📏','🧮','📌','📍','✂️','🖊','🖋','✒️','🖌','🖍','📝','✏️','🔍','🔎','🔏',
'🔐','🔒','🔓','❤️','🧡','💛','💚','💙','💜','🖤','🤍','🤎','💔','❣️','💕','💞','💓','💗',
'💖','💘','💝','💟','☮️','✝️','☪️','🕉','☸️','✡️','🔯','🕎','☯️','☦️','🛐','⛎','♈️','♉️',
'♊️','♋️','♌️','♍️','♎️','♏️','♐️','♑️','♒️','♓️','🆔','⚛️','🉑','☢️','☣️','📴','📳','🈶',
'🈚️','🈸','🈺','🈷️','✴️','🆚','💮','🉐','㊙️','㊗️','🈴','🈵','🈹','🈲','🅰️','🅱️','🆎','🆑',
'🅾️','🆘','❌','⭕️','🛑','⛔️','📛','🚫','💯','💢','♨️','🚷','🚯','🚳','🚱','🔞','📵','🚭',
'❗️','❕','❓','❔','‼️','⁉️','🔅','🔆','〽️','⚠️','🚸','🔱','⚜️','🔰','♻️','✅','🈯️','💹',
'❇️','✳️','❎','🌐','💠','Ⓜ️','🌀','💤','🏧','🚾','♿️','🅿️','🛗','🈳','🈂️','🛂','🛃','🛄',
'🛅','🚹','🚺','🚼','🚻','🚮','🎦','📶','🈁','🔣','ℹ️','🔤','🔡','🔠','🆖','🆗','🆙','🆒',
'🆕','🆓','0️⃣','1️⃣','2️⃣','3️⃣','4️⃣','5️⃣','6️⃣','7️⃣','8️⃣','9️⃣','🔟','🔢','#️⃣','*️⃣','⏏️','▶️',
'⏸','⏯','⏹','⏺','⏭','⏮','⏩','⏪','⏫','⏬','◀️','🔼','🔽','➡️','⬅️','⬆️','⬇️','↗️',
'↘️','↙️','↖️','↕️','↔️','↪️','↩️','⤴️','⤵️','🔀','🔁','🔂','🔄','🔃','🎵','🎶','➕','➖',
'➗','✖️','💲','💱','™️','©️','®️','〰️','➰','➿','🔚','🔙','🔛','🔝','🔜','✔️','☑️','🔘',
'🔴','🟠','🟡','🟢','🔵','🟣','⚫️','⚪️','🟤','🔺','🔻','🔸','🔹','🔶','🔷','🔳','🔲','▪️',
'▫️','◾️','◽️','◼️','◻️','🟥','🟧','🟨','🟩','🟦','🟪','⬛️','⬜️','🟫','🔈','🔇','🔉','🔊',
'🔔','🔕','📣','📢','💬','💭','🗯','♠️','♣️','♥️','♦️','🃏','🎴','🀄️','🕐','🕑','🕒',
'🕓','🕔','🕕','🕖','🕗','🕘','🕙','🕚','🕛','🕜','🕝','🕞','🕟','🕠','🕡','🕢','🕣','🕤',
'🕥','🕦','🕧','🏳️','🏴','🏁','🚩','🇦🇫','🇦🇽','🇦🇱','🇩🇿','🇦🇸','🇦🇩','🇦🇴','🇦🇮',
'🇦🇶','🇦🇬','🇦🇷','🇦🇲','🇦🇼','🇦🇺','🇦🇹','🇦🇿','🇧🇸','🇧🇭','🇧🇩','🇧🇧','🇧🇾','🇧🇪','🇧🇿','🇧🇯','🇧🇲','🇧🇹',
'🇧🇴','🇧🇦','🇧🇼','🇧🇷','🇮🇴','🇻🇬','🇧🇳','🇧🇬','🇧🇫','🇧🇮','🇰🇭','🇨🇲','🇨🇦','🇮🇨','🇨🇻','🇧🇶','🇰🇾','🇨🇫',
'🇹🇩','🇨🇱','🇨🇳','🇨🇽','🇨🇨','🇨🇴','🇰🇲','🇨🇬','🇨🇩','🇨🇰','🇨🇷','🇨🇮','🇭🇷','🇨🇺','🇨🇼','🇨🇾','🇨🇿','🇩🇰',
'🇩🇯','🇩🇲','🇩🇴','🇪🇨','🇪🇬','🇸🇻','🇬🇶','🇪🇷','🇪🇪','🇪🇹','🇪🇺','🇫🇰','🇫🇴','🇫🇯','🇫🇮','🇫🇷','🇬🇫','🇵🇫',
'🇹🇫','🇬🇦','🇬🇲','🇬🇪','🇩🇪','🇬🇭','🇬🇮','🇬🇷','🇬🇱','🇬🇩','🇬🇵','🇬🇺','🇬🇹','🇬🇬','🇬🇳','🇬🇼','🇬🇾','🇭🇹',
'🇭🇳','🇭🇰','🇭🇺','🇮🇸','🇮🇳','🇮🇩','🇮🇷','🇮🇶','🇮🇪','🇮🇲','🇮🇱','🇮🇹','🇯🇲','🇯🇵','🎌','🇯🇪','🇯🇴','🇰🇿',
'🇰🇪','🇰🇮','🇽🇰','🇰🇼','🇰🇬','🇱🇦','🇱🇻','🇱🇧','🇱🇸','🇱🇷','🇱🇾','🇱🇮','🇱🇹','🇱🇺','🇲🇴','🇲🇰','🇲🇬','🇲🇼',
'🇲🇾','🇲🇻','🇲🇱','🇲🇹','🇲🇭','🇲🇶','🇲🇷','🇲🇺','🇾🇹','🇲🇽','🇫🇲','🇲🇩','🇲🇨','🇲🇳','🇲🇪','🇲🇸','🇲🇦','🇲🇿',
'🇲🇲','🇳🇦','🇳🇷','🇳🇵','🇳🇱','🇳🇨','🇳🇿','🇳🇮','🇳🇪','🇳🇬','🇳🇺','🇳🇫','🇰🇵','🇲🇵','🇳🇴','🇴🇲','🇵🇰','🇵🇼',
'🇵🇸','🇵🇦','🇵🇬','🇵🇾','🇵🇪','🇵🇭','🇵🇳','🇵🇱','🇵🇹','🇵🇷','🇶🇦','🇷🇪','🇷🇴','🇷🇺','🇷🇼','🇼🇸','🇸🇲','🇸🇦',
'🇸🇳','🇷🇸','🇸🇨','🇸🇱','🇸🇬','🇸🇽','🇸🇰','🇸🇮','🇬🇸','🇸🇧','🇸🇴','🇿🇦','🇰🇷','🇸🇸','🇪🇸','🇱🇰','🇧🇱','🇸🇭',
'🇰🇳','🇱🇨','🇵🇲','🇻🇨','🇸🇩','🇸🇷','🇸🇿','🇸🇪','🇨🇭','🇸🇾','🇹🇼','🇹🇯','🇹🇿','🇹🇭','🇹🇱','🇹🇬','🇹🇰','🇹🇴',
'🇹🇹','🇹🇳','🇹🇷','🇹🇲','🇹🇨','🇹🇻','🇻🇮','🇺🇬','🇺🇦','🇦🇪','🇬🇧','󠁥󠁮󠁿🇺🇳','🇺🇸','🇺🇾','🇺🇿','🇻🇺','🇻🇦','🇻🇪',
'🪶','🦭','🪲','🪳','🪰','🪱','🪴','🫐','🫒','🫑','🫓','🫔','🫕','🫖','🧋','🪨','🪵','🛖',
'🛻','🛼','🪄','🪅','🪆','🪡','🪢','🩴','🪖','🪗','🪘','🪙','🪃','🪚','🪛','🪝','🪜','🛗',
'🪞','🪟','🪠','🪤','🪣','🪥','🪦','🪧']


baremoji_list =['🐟', '💧', '🦈', '🐋', '🐠', '🧊', '🐚', '🦑', '🐡', '🐙', '🌊', '🐳', '💦', '🐬']

Expand Down
43 changes: 43 additions & 0 deletions powerline-shell/root.py.backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
from ..utils import BasicSegment
from datetime import date, datetime

bashmoji_list =['🐔', '🦴', '💫', '👽', '⭐', '🌮', '🤡', '🦊', '🐧', '🤖',
'👺', '😽', '🐐', '👾', '🍣', '🦙', '🐦', '🦧', '🐫', '☕', '🌞', '⚡', '🐢', '😁', '🦏', '🦆',
'🦄', '🧃', '🌈', '👹', '🦍', '👻', '🦋', '🌟', '🐌', '🌛', '🐗', '🐥', '🌯', '🦌',
'🌜', '🤔', '🐑', '🍕', '💥', '🐴','🐼', '🔥', '🐣',
'🐰', '🐶', '✨', '🥪', '🦅', '🤠', '🐱', '🎃', '🌝', '😺', '💩', '🦇', '🐘', '🦜', '🐞', '🦉', '🍟', '🤑', '🤪', '😄', '🥤',
'🐝', '🐸', '🚀']

baremoji_list =['🐟', '💧', '🦈', '🐋', '🐠', '🧊', '🐚', '🦑', '🐡', '🐙', '🌊', '🐳', '💦', '🐬']





def emoji(emoji_list):
now = datetime.now()
start_date = date(now.year, 1, 1)
today = date(now.year, now.month, now.day)
delta = int((today - start_date).days)
while delta > len(emoji_list):
delta -= len(emoji_list)
return emoji_list[delta-1]

class Segment(BasicSegment):

def add_to_powerline(self):

powerline = self.powerline
root_indicators = {
"bash": " " + emoji(bashmoji_list) + " \\$ ",
"tcsh": " %# ",
"zsh": " %# ",
"bare": emoji(baremoji_list) + " $ ",
}
bg = powerline.theme.CMD_PASSED_BG
fg = powerline.theme.CMD_PASSED_FG
if powerline.args.prev_error != 0:
fg = powerline.theme.CMD_FAILED_FG
bg = powerline.theme.CMD_FAILED_BG
powerline.append(root_indicators[powerline.args.shell], fg, bg, sanitize=False)

7 changes: 5 additions & 2 deletions rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ globalkeys = gears.table.join(
awful.key({ modkey, }, "Return", function () awful.spawn("terminator") end,
{description = "open a terminal", group = "launcher"}),

awful.key({ modkey, "Shift" }, "r", awesome.restart,
awful.key({ modkey, }, "r", awesome.restart,
{description = "reload awesome", group = "awesome"}),
awful.key({ modkey, "Shift" }, "q", awesome.quit,
{description = "quit awesome", group = "awesome"}),
Expand Down Expand Up @@ -348,6 +348,9 @@ globalkeys = gears.table.join(
awful.key({ modkey, "Control" }, "z", function () awful.spawn(terminal.." -e systemctl suspend") end,
{description = "suspend pc", group = "launcher"}),

awful.key({ modkey, "Control" }, "f", function () awful.spawn(terminal.." -e sudo nautilus &") end,
{description = "suspend pc", group = "launcher"}),

awful.key({ modkey, "Control" }, "r", function () awful.spawn(terminal.." -e shutdown -r now") end,
{description = "reboot pc", group = "launcher"}),

Expand All @@ -361,7 +364,7 @@ globalkeys = gears.table.join(
-- {description = "logout session", group = "launcher"}),

--
awful.key({ modkey, "Control" }, "n",
awful.key({ modkey, "Shift" }, "n",
function ()
local c = awful.client.restore()
-- Focus restored client
Expand Down

0 comments on commit 8eef336

Please sign in to comment.