Browse Source

feat: 2020 updates

master
Tim 2 years ago
parent
commit
82d589c5cc
  1. 2
      Xresources.sym
  2. 2
      config/dunst/dunstrc
  3. 34
      config/polybar/config
  4. 36
      config/rofi/bin/powermenu
  5. 4
      config/rofi/config.rasi
  6. 32
      config/rofi/themes/autumn.rasi
  7. 30
      config/rofi/themes/colors.rasi
  8. 0
      config/rofi/themes/gruvbox.rasi
  9. 152
      config/rofi/themes/launcher.rasi
  10. 153
      config/rofi/themes/powermenu.rasi
  11. 8
      packages/i3.sym/config
  12. 11
      packages/zsh.sym/aliases.zsh
  13. 27
      packages/zsh.sym/zshrc.sym
  14. 12
      tmux.conf.sym
  15. 4
      vimrc.sym
  16. 3
      xinitrc.sym

2
Xresources.sym

@ -6,7 +6,7 @@
! Inconsolata Font
!URxvt*font: xft:Font Awesome 5 Free Regular:size=10
URxvt*font: xft:Inconsolata for Powerline:size=11:antialias=true xft:Droid Sans Mono for Powerline:size=11
URxvt*font: xft:Inconsolata for Powerline:size=12:antialias=true xft:Droid Sans Mono for Powerline:size=11
!URxvt*boldfont: xft:Inconsolata for Powerline BoldForPowerline:size=10:antialias=true
! Tewi Font

2
config/dunst/dunstrc

@ -36,7 +36,7 @@
padding = 16
horizontal_padding = 8
separator_color = auto
startup_notification = true
startup_notification = false
dmenu = /usr/bin/dmenu -p dunst:
browser = /usr/bin/firefox -new-tab
icon_position = left

34
config/polybar/config

@ -39,12 +39,12 @@ padding-right = 2
module-margin-left = 1
module-margin-right = 2
font-0 = Inconsolata Nerd Font Complete Mono:pixelsize=10;1
font-0 = Inconsolata Nerd Font Complete Mono:pixelsize=11;1
font-1 = Weather Icons:size=12;1
modules-left = i3
modules-center = mpd xwindow
modules-right = weather filesystem xbacklight pulseaudio memory cpu eth temperature date powermenu
modules-right = weather filesystem xbacklight pulseaudio memory cpu eth temperature date powermenu2
tray-position = right
tray-padding = 2
@ -54,7 +54,7 @@ tray-padding = 2
wm-restack = i3
[bar/top-sec]
monitor = ${env:MONITOR:DVI-D-0}
monitor = ${env:MONITOR:DisplayPort-2}
width = 100%
height = 27
font-0 = Inconsolata Nerd Font Complete Mono:pixelsize=10;1
@ -62,6 +62,7 @@ font-1 = Weather Icons:size=12;1
background = ${colors.background}
foreground = ${colors.foreground}
modules-left = i3
modules-center = xwindow
modules-right = date
;override-redirect = true
wm-restack = i3
@ -373,16 +374,21 @@ ramp-1 =
ramp-2 =
ramp-foreground = ${colors.foreground-alt}
[module/powermenu2]
type = custom/text
expand-right = true
content = power
context-foreground = ${colors.secondary}
click-left = /bin/bash ~/.config/rofi/bin/powermenu
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open = pwr
label-open = power
label-open-foreground = ${colors.secondary}
label-close = pwr
label-close = power
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
@ -392,14 +398,14 @@ menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
menu-1-0 = Confirm Reboot
menu-1-0-exec = systemctl reboot
menu-1-1 = Cancel
menu-1-1-exec = menu-open-0
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-0 = Confirm Off
menu-2-0-exec = systemctl poweroff
menu-2-1 = Cancel
menu-2-1-exec = menu-open-0
[module/music]

36
config/rofi/bin/powermenu

@ -0,0 +1,36 @@
#!/usr/bin/env bash
rofi_command="rofi -theme themes/powermenu.rasi"
uptime=$(uptime -p | sed -e 's/up //g')
# Options
shutdown=" Shutdown"
reboot=" Restart"
lock=" Lock"
suspend=" Sleep"
logout=" Logout"
# Variable passed to rofi
options="$lock\n$suspend\n$logout\n$reboot\n$shutdown"
chosen="$(echo -e "$options" | $rofi_command -p "UP - $uptime" -dmenu -selected-row 0)"
case $chosen in
$shutdown)
systemctl poweroff
;;
$reboot)
systemctl reboot
;;
$lock)
$HOME/bin/fuzz_lock.sh
;;
$suspend)
$HOME/bin/fuzz_lock.sh
systemctl suspend
;;
$logout)
i3-msg exit
;;
esac

4
config/rofi/config.rasi

@ -10,7 +10,7 @@ configuration {
/* yoffset: 0;*/
/* xoffset: 0;*/
/* fixed-num-lines: true;*/
/* show-icons: false;*/
show-icons: true;
/* terminal: "rofi-sensible-terminal";*/
/* ssh-client: "ssh";*/
/* ssh-command: "{terminal} -e {ssh-client} {host}";*/
@ -48,7 +48,7 @@ configuration {
/* window-format: "{w} {i}{c} {t}";*/
/* click-to-exit: true;*/
/* show-match: true;*/
theme: "autumn";
theme: ".config/rofi/themes/autumn";
color-normal: "argb:d0282828, #ebdbb2, argb:d032302f, #665c54, #fbf1c7";
color-urgent: "argb:d0cc241d, #282828, argb:d0cc241d, #fb4934, #282828";
color-active: "argb:d0d79921, #282828, argb:d0d79921, #fabd2f, #282828";

32
config/rofi/autumn.rasi → config/rofi/themes/autumn.rasi

@ -1,33 +1,5 @@
* {
selected-normal-foreground: rgba ( 251, 241, 199, 100 % );
foreground: rgba ( 236, 153, 88, 100 % );
normal-foreground: @foreground;
alternate-normal-background: rgba ( 50, 48, 47, 95 % );
red: rgba ( 220, 50, 47, 100 % );
selected-urgent-foreground: rgba ( 40, 40, 40, 100 % );
blue: rgba ( 38, 139, 210, 100 % );
urgent-foreground: rgba ( 40, 40, 40, 100 % );
alternate-urgent-background: rgba ( 204, 36, 29, 95 % );
active-foreground: rgba ( 40, 40, 40, 100 % );
lightbg: rgba ( 238, 232, 213, 100 % );
selected-active-foreground: rgba ( 40, 40, 40, 100 % );
alternate-active-background: rgba ( 215, 153, 33, 95 % );
background: rgba ( 40, 40, 40, 95 % );
alternate-normal-foreground: @foreground;
normal-background: rgba ( 40, 40, 40, 95 % );
lightfg: rgba ( 88, 104, 117, 100 % );
selected-normal-background: rgba ( 102, 92, 84, 100 % );
border-color: rgba ( 236, 153, 88, 100 % );
spacing: 2;
separatorcolor: rgba ( 236, 153, 57, 100 % );
urgent-background: rgba ( 204, 36, 29, 95 % );
selected-urgent-background: rgba ( 251, 73, 52, 100 % );
alternate-urgent-foreground: @urgent-foreground;
background-color: rgba ( 0, 0, 0, 0 % );
alternate-active-foreground: @active-foreground;
active-background: rgba ( 215, 153, 33, 95 % );
selected-active-background: rgba ( 250, 189, 47, 100 % );
}
@import "colors.rasi"
#window {
background-color: @background;
border: 2;

30
config/rofi/themes/colors.rasi

@ -0,0 +1,30 @@
* {
active-background: rgba ( 215, 153, 33, 95 % );
active-foreground: rgba ( 40, 40, 40, 100 % );
alternate-active-background: rgba ( 215, 153, 33, 95 % );
alternate-active-foreground: @active-foreground;
alternate-normal-background: rgba ( 50, 48, 47, 95 % );
alternate-normal-foreground: @foreground;
alternate-urgent-background: rgba ( 204, 36, 29, 95 % );
alternate-urgent-foreground: @urgent-foreground;
background-color: rgba ( 0, 0, 0, 0 % );
background: rgba ( 40, 40, 40, 95 % );
blue: rgba ( 38, 139, 210, 100 % );
border-color: rgba ( 236, 153, 88, 100 % );
foreground: rgba ( 236, 153, 88, 100 % );
lightbg: rgba ( 238, 232, 213, 100 % );
lightfg: rgba ( 88, 104, 117, 100 % );
normal-background: rgba ( 40, 40, 40, 95 % );
normal-foreground: @foreground;
red: rgba ( 220, 50, 47, 100 % );
selected-active-background: rgba ( 250, 189, 47, 100 % );
selected-active-foreground: rgba ( 40, 40, 40, 100 % );
selected-normal-background: rgba ( 102, 92, 84, 100 % );
selected-normal-foreground: rgba ( 251, 241, 199, 100 % );
selected-urgent-background: rgba ( 251, 73, 52, 100 % );
selected-urgent-foreground: rgba ( 40, 40, 40, 100 % );
separatorcolor: rgba ( 236, 153, 57, 100 % );
spacing: 2;
urgent-background: rgba ( 204, 36, 29, 95 % );
urgent-foreground: rgba ( 40, 40, 40, 100 % );
}

0
config/rofi/gruvbox.rasi → config/rofi/themes/gruvbox.rasi

152
config/rofi/themes/launcher.rasi

@ -0,0 +1,152 @@
/*
*
* Author : Aditya Shakya (adi1090x)
* Mail : adi1090x@gmail.com
* Github : @adi1090x
* Reddit : @adi1090x
*
*/
configuration {
font: "scientifica 8";
show-icons: false;
icon-theme: "Papirus";
display-drun: "Search :";
drun-display-format: "{name}";
threads: 0;
scroll-method: 0;
disable-history: false;
fullscreen: false;
hide-scrollbar: true;
sidebar-mode: false;
}
@import "colors.rasi"
window {
transparency: "real";
background-color: @background;
text-color: @foreground;
border-radius: 0px;
height: 33%;
width: 30%;
location: center;
anchor: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
padding: 4px 4px 6px 6px;
background-color: @background;
text-color: @foreground;
}
textbox-prompt-colon {
expand: false;
str: "";
background-color: @background;
text-color: @logo;
padding: 4px 0px 0px 8px;
font: "feather 8";
}
inputbar {
children: [ textbox-prompt-colon, prompt, entry ];
background-color: @background;
text-color: @foreground;
expand: false;
border: 0px 0px 1px 0px;
border-radius: 0px;
border-color: @border;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
position: center;
}
entry {
background-color: @background;
text-color: @foreground;
placeholder-color: @foreground;
expand: true;
horizontal-align: 0;
placeholder: "Search";
blink: true;
padding: 4px 0px 0px 0px;
}
case-indicator {
background-color: @background;
text-color: @foreground;
spacing: 0;
}
listview {
background-color: @background;
columns: 1;
spacing: 4px;
cycle: false;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @background;
children: [ inputbar, listview ];
spacing: 5px;
padding: 5px 5px 5px 5px;
}
element {
background-color: @background;
text-color: @foreground;
orientation: horizontal;
border-radius: 4px;
padding: 6px 6px 6px 6px;
}
element-icon {
size: 24px;
border: 0px;
}
element-text {
expand: true;
horizontal-align: 0;
vertical-align: 0;
margin: 2px 0px 2px 2px;
}
element normal.urgent,
element alternate.urgent {
background-color: @urgent;
text-color: @foreground;
border-radius: 9px;
}
element normal.active,
element alternate.active {
background-color: @background-alt;
text-color: @foreground;
}
element selected {
background-color: @selected;
text-color: @background;
border: 0px;
border-radius: 0px;
border-color: @border;
}
element selected.urgent {
background-color: @urgent;
text-color: @foreground;
}
element selected.active {
background-color: @background-alt;
color: @foreground;
}

153
config/rofi/themes/powermenu.rasi

@ -0,0 +1,153 @@
/*
*
* Author : Aditya Shakya (adi1090x)
* Mail : adi1090x@gmail.com
* Github : @adi1090x
* Reddit : @adi1090x
*
*/
configuration {
font: "scientifica 8";
show-icons: false;
icon-theme: "Papirus";
display-drun: ":";
drun-display-format: "{name}";
threads: 0;
scroll-method: 0;
disable-history: false;
fullscreen: false;
hide-scrollbar: true;
sidebar-mode: false;
location: 3;
anchor: 3;
}
@import "colors.rasi"
window {
transparency: "real";
background-color: @background;
text-color: @foreground;
border-radius: 0px;
height: 15%;
width: 9%;
x-offset: -0.8%;
y-offset: 5%;
}
prompt {
enabled: true;
padding: 4px 4px 6px 6px;
background-color: @background;
text-color: @foreground;
}
textbox-prompt-colon {
expand: false;
str: "";
background-color: @background;
text-color: @logo;
padding: 4px 0px 0px 8px;
font: "feather 8";
}
inputbar {
children: [ textbox-prompt-colon, prompt ];
background-color: @background;
text-color: @foreground;
expand: false;
border: 0px 0px 1px 0px;
border-radius: 0px;
border-color: @border;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
position: center;
}
entry {
background-color: @background;
text-color: @foreground;
placeholder-color: @foreground;
expand: true;
horizontal-align: 0;
placeholder: "Search";
blink: true;
padding: 4px 0px 0px 0px;
}
case-indicator {
background-color: @background;
text-color: @foreground;
spacing: 0;
}
listview {
background-color: @background;
columns: 1;
spacing: 4px;
cycle: true;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @background;
children: [ inputbar, listview ];
spacing: 5px;
padding: 5px 5px 5px 5px;
}
element {
background-color: @background;
text-color: @foreground;
orientation: horizontal;
border-radius: 4px;
padding: 6px 6px 6px 6px;
}
element-icon {
size: 24px;
border: 0px;
}
element-text {
expand: true;
horizontal-align: 0;
vertical-align: 0;
margin: 2px 0px 2px 2px;
}
element normal.urgent,
element alternate.urgent {
background-color: @urgent;
text-color: @foreground;
border-radius: 9px;
}
element normal.active,
element alternate.active {
background-color: @background-alt;
text-color: @foreground;
}
element selected {
background-color: @selected;
text-color: @selected-normal-background;
border: 0px;
border-radius: 0px;
border-color: @border;
}
element selected.urgent {
background-color: @urgent;
text-color: @foreground;
}
element selected.active {
background-color: @background-alt;
color: @foreground;
}

8
packages/i3.sym/config

@ -204,14 +204,16 @@ mode "$mode_system" {
bindsym $mod+F9 mode "$mode_system"
# Screenshot with scrot
bindsym Print exec scrot -e 'mv $f ~/Pictures/screenshots/'
bindsym Print exec scrot -s -e 'mv $f $$(xdg-user-dir PICTURES)/screenshots/'
##
# App Settings
##
# Setup the monitor to be 2k instead of 4k.
exec --no-startup-id xrandr --output DisplayPort-0 --mode 2560x1440 --right-of DVI-D-0
#exec --no-startup-id xrandr --output DVI-D-0 --mode 1920x1080 --output DisplayPort-0 --mode 2560x1440 --right-of DVI-D-0
#exec --no-startup-id xrandr --output DisplayPort-2 --mode 2560x1440 --output DisplayPort-0 --mode 2560x1440 --right-of DisplayPort-2
exec --no-startup-id xrandr --output DisplayPort-0 --mode 2560x1440
exec --no-startup-id dunst -config ~/.config/dunst/dunstrc
#exec --no-startup-id compton --config ~/.config/compton/compton.conf -b
@ -232,6 +234,8 @@ assign [class="Cities.x64"] $workspace5 #csgo $(xdotool search Cit)
#assign [class="vlc"] $workspace9
assign [class="overwatch.exe"] $workspace6
for_window [class="overwatch.exe"] floating enable
assign [class=".*wine.*"] $workspace6
for_window [class=".*wine.*"] floating enable
# Enable or disable floating
for_window [class="Pavucontrol"] floating enable

11
packages/zsh.sym/aliases.zsh

@ -2,8 +2,11 @@
alias lefty='xmodmap -e "pointer = 3 2 1"'
alias righty='xmodmap -e "pointer = 1 2 3"'
alias leftscreen='xrandr --output DVI-I-2 --auto --left-of DVI-I-1'
alias sound="pavucontrol"
alias LS="ls"
alias sound='pavucontrol'
alias LS='ls'
alias CD='cd'
alias emerge-world-estimate='emerge -puND @world | genlop --pretend'
alias emerge-system-estimate='emerge -puND @system | genlop --pretend'
# Hack tmux to use 256 colors
alias tmux="TERM=xterm-256color tmux"
alias :wq='echo "This isnt VIM! exiting anyway"; exit'
@ -41,6 +44,10 @@ alias gbclean='echo "Removing Merged Branches"; sleep 2; git checkout master &&
alias grclean='echo "Remote Pruning with against Origin"; sleep 2; git checkout master && git remote prune origin | grep origin\/ | sed "s/^origin\///g" | while read b; do git branch -D $b; done'
alias gpr="git pull-request"
# Blogging
alias blogging='bundle install && bundle exec jekyll serve --watch'
alias blog-deploy='bundle exec jekyll clean; bundle exec jekyll build; rsync -aP _site/ blog.slowb.ro:/opt/nginx-blog/web/ --delete-during'
# Fun
alias huh='echo "¯\(°_o)/¯"'
alias shrug='echo "¯\_(ツ)_/¯"'

27
packages/zsh.sym/zshrc.sym

@ -16,6 +16,11 @@ SAVEHIST=1000000
[ -f $HOME/.zsh/aliases.zsh ] && . $HOME/.zsh/aliases.zsh
[ -f $HOME/.zsh/work-aliases.zsh ] && . $HOME/.zsh/work-aliases.zsh
#
# Gentoo Environments
#
[ -f /etc/profile.env ] && . /etc/profile.env
# GitHub
eval "$(hub alias -s)"
export GIT_EDITOR=vim
@ -39,15 +44,18 @@ setopt hist_ignore_all_dups
bindkey '[1~' beginning-of-line
bindkey '[4~' end-of-line
# First source the latest Gentoo ZSH Profile script
[ -f /etc/zsh/zprofile ] && . /etc/zsh/zprofile
# Because for now we are a zsh fanboy
source $ZSH/oh-my-zsh.sh
. $ZSH/oh-my-zsh.sh
# And lets start to use Z/fz/fzf
[ -f $HOME/Documents/repos/z/z.sh ] && source $HOME/Documents/repos/z/z.sh
[ -f $HOME/Documents/repos/fz/fz.plugin.zsh ] && source $HOME/Documents/repos/fz/fz.plugin.zsh
[ -f $HOME/Documents/repos/z/z.sh ] && . $HOME/Documents/repos/z/z.sh
[ -f $HOME/Documents/repos/fz/fz.plugin.zsh ] && . $HOME/Documents/repos/fz/fz.plugin.zsh
# Customize PATH
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/bin
# Customize PATH (Making sure we get env path upto-date)
PATH=$PATH
# RVM
[ -d /usr/local/rvm/bin ] && PATH=$PATH:/usr/local/rvm/bin
# Games
@ -66,11 +74,12 @@ compinit
PERL_MB_OPT="--install_base \"/home/timc/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/timc/perl5"; export PERL_MM_OPT;
[ -d $HOME.nvm ] && export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
[ -s /usr/local/bin/aws_zsh_completer.sh ] && source "/usr/local/bin/aws_zsh_completer.sh"
[ -d $HOME/.nvm ] && export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
[ -s /usr/local/bin/aws_zsh_completer.sh ] && . "/usr/local/bin/aws_zsh_completer.sh"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# fzf auto adds this line even though $HOME is way better
[ -f ~/.fzf.zsh ] && . ~/.fzf.zsh
# Powerline!
#[ -f /usr/share/zsh/site-contrib/powerline.zsh ] && source /usr/share/zsh/site-contrib/powerline.zsh

12
tmux.conf.sym

@ -5,15 +5,15 @@ bind-key C-a send-prefix
# Default global options.
set-option -g bell-action none
set-option -g default-terminal "screen-256color"
set-option -g default-terminal "rxvt-unicode-256color"
set-option -g status-bg green
set-option -g status-keys vi
set-option -g status-right-length 60
set-option -g aggressive-resize on # for attaching like screen
bind -n End send-key C-e
bind -n Home send-key C-a
bind "\e[7~" send-key "\eOH"
bind "\e[8~" send-key "\eOF"
#bind -n End send-key C-e
#bind -n Home send-key C-a
bind "\e[7~" send-key ".[1~"
bind "\e[8~" send-key ".[4~"
# Scrolling + Copying using Mouse
#set -g mode-mouse on
@ -82,4 +82,4 @@ set-option -g display-panes-colour colour166 #orange
#set-window-option -g clock-mode-colour colour64 #green
#Powerline
source /usr/share/powerline/tmux/powerline.conf
#source /usr/share/powerline/tmux/powerline.conf

4
vimrc.sym

@ -128,8 +128,8 @@ autocmd BufRead,BufNewFile *.py set smartindent cinwords=if,elif,else,for,while,
" Remove any extra whitespace from the ends of lines when saving a file
autocmd BufWritePre *.py normal m`:%s/\s\+$//e``
" Only have indent of 2 for yml
autocmd BufRead,BufNewFile *.yml shiftwidth=2
autocmd BufRead,BufNewFile *.yml softtabstop=2
autocmd BufRead,BufNewFile *.yml set shiftwidth=2
autocmd BufRead,BufNewFile *.yml set softtabstop=2
" Call spellcheck on write for markdown
autocmd BufWritePre *.md :SpellCheck

3
xinitrc.sym

@ -71,7 +71,8 @@ done &
#exec ck-launch-session gnome-session
#exec ck-launch-session dwm
#exec gnome-session
exec dwm
#exec dwm
exec i3
#exec ck-launch-session bash -c "dbus-launch & pulseaudio --start & dwm"
#while true; do

Loading…
Cancel
Save