Skip to content

Commit

Permalink
Added some style.
Browse files Browse the repository at this point in the history
  • Loading branch information
BraveHelyx committed Dec 8, 2019
1 parent f78a87f commit b45cf63
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 43 deletions.
168 changes: 132 additions & 36 deletions cfg/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set $mod Mod4

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Fira Mono for Powerline 8
font pango: Fira Mono for Powerline 10

# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
Expand All @@ -30,18 +30,18 @@ font pango:Fira Mono for Powerline 8
floating_modifier $mod

# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec --no-startup-id i3-sensible-terminal

# kill focused window
bindsym $mod+Shift+x kill
bindsym $mod+Shift+q kill

# start dmenu (a program launcher)
# bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
bindsym $mod+d exec --no-startup-id rofi -show run
bindsym $mod+d exec --no-startup-id rofi -position 1 -yoffset 22 -show run

# change focus
bindsym $mod+h focus left
Expand Down Expand Up @@ -93,18 +93,47 @@ bindsym $mod+Shift+a focus parent
# focus the child container
bindsym $mod+Shift+d focus child

# blue theme
set $xforeground #c5c8c6
set $xbackground #1d1f21
set $xcursor #c5c8c6
set $xcolor0 #0d3264
set $xcolor8 #373b41
set $xcolor1 #467ecb
set $xcolor9 #cc6666
set $xcolor2 #8c9440
set $xcolor10 #b5bd68
set $xcolor3 #de935f
set $xcolor11 #f0c674
set $xcolor4 #5f819d
set $xcolor12 #81a2be
set $xcolor5 #85678f
set $xcolor13 #b294bb
set $xcolor6 #6298e0
set $xcolor14 #8abeb7
set $xcolor7 #707880
set $xcolor15 #c5c8c6

# Colors
# Class border backgr text indic
client.focused $xcolor6 $xcolor1 $xbackground $xcolor7
client.focused_inactive $xcolor6 $xcolor0 $xcolor14
client.unfocused $xcolor6 $xcolor0 $xcolor14
client.urgent $xbackground $xcolor9 $xbackground
client.placeholder $xcolor7 $xcolor7 $xcolor14

# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
set $ws1 "1:I"
set $ws2 "2:II"
set $ws3 "3:III"
set $ws4 "4:IV"
set $ws5 "5:V"
set $ws6 "6:VI"
set $ws7 "7:VII"
set $ws8 "8:VIII"
set $ws9 "9:IX"
set $ws10 "10:X"

# switch to workspace
bindsym $mod+1 workspace $ws1
Expand Down Expand Up @@ -144,10 +173,12 @@ bindsym $mod+Shift+0 move container to workspace $ws10;workspace $ws10

# reload the configuration file
bindsym $mod+Shift+c reload

# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart

# exit i3 (logs you out of your X session)
bindsym $mod+Shift+z exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# bindsym $mod+Shift+z exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"

# resize window (you can also use the mouse for that)
mode "resize" {
Expand Down Expand Up @@ -179,33 +210,98 @@ bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
status_command i3status
mode dock
position bottom
strip_workspace_numbers yes
font pango: Terminus (TTF) medium 10
separator_symbol ")("

colors {
#Where #Color
background $xbackground
statusline $xforeground

#Where #Border #Background #Text
focused_workspace $xbackground $xcolor1 $xbackground
#urgent_workspace $xbackground $xcolor9 $xbackground
urgent_workspace $xbackground $xcolor1 $xbackground
inactive_workspace $xbackground $xcolor0 $xforeground
}
}

# Set shut down, restart and locking features
bindsym $mod+0 mode "$mode_system"
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown

# Locker configuration
set $Locker xscreensaver-command -lock

set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown, (b) off-screen
mode "$mode_system" {
bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym s exec --no-startup-id i3exit suspend, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"

# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym l exec --no-startup-id $Locker, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym b exec --no-startup-id sleep 1 && xset dpms force off, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"

# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}

# For i3-gaps
for_window [class=".*"] border pixel 0
gaps inner 30
bindsym $mod+Shift+z mode "$mode_system"

# Misc (above)
new_window pixel 4

# Floating dialogs
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable

# i3-gaps configuration
gaps inner 10
gaps outer 0
smart_gaps on
smart_borders on

set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $modkey+Shift+g mode "$mode_gaps"

mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym Return mode "default"
bindsym Escape mode "default"
}

mode "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0

bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0

bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0

bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0

bindsym Return mode "default"
bindsym Escape mode "default"
}

# smart_borders on

# Autoexecs
exec_always --no-startup-id feh --bg-fill ~/Pictures/bg/asriel2_1920x1080.jpg
exec_always --no-startup-id $HOME/.config/compton/launch.sh
exec_always --no-startup-id xscreensaver -no-splash
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
2 changes: 1 addition & 1 deletion cfg/tmux/tmux
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ bind-key ` send-prefix
# Change keybinds for window splits
unbind %
unbind '"'
bind \ split-window -h
bind \\ split-window -h
bind - split-window -v

# Add keybind for reloading tmux.conf
Expand Down
14 changes: 13 additions & 1 deletion cfg/vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ set shiftwidth=4
set softtabstop=4
set expandtab

" Verticle Cursor Line
set colorcolumn=81
" Map Y to act like D and C, i.e. to yank until EOL rather than act as yy,
" which is the default
map Y y$
Expand All @@ -107,6 +109,15 @@ nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" Close brackets
:inoremap ( ()<Esc>i
:inoremap < <><Esc>i
:inoremap { {}<Esc>i
:inoremap [ []<Esc>i
:inoremap " ""<Esc>i
:inoremap ' ''<Esc>i
:inoremap ` ``<Esc>i
" vvvv Section begin for vim-plug vvvv
call plug#begin('~/.vim/plugged')
" Add more sophisticated vim macros for multi-cursor
Expand All @@ -125,7 +136,8 @@ Plug 'tpope/vim-surround'
" UNIX shell commands as vim commands
Plug 'tpope/vim-eunuch'
" Vim code completions
Plug 'Valloric/YouCompleteMe'
Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }

" Initialize plugin system
call plug#end()
" ^^^^ Section end for vim-plug ^^^^^
Expand Down
9 changes: 4 additions & 5 deletions cfg/zsh/zenviron
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ ENABLE_CORRECTION="true"

# Configuration for Go
## Add golang's 'go' executable to path
[[ ":$PATH:" != *":/usr/local/go/bin:"* ]] &&
[[ ":$PATH:" != *":/usr/local/go/bin:"* ]] &&
PATH=$PATH:/usr/local/go/bin

## Add golang's bin directory to path
if [ -x "$(command -v go)" ]; then
export GOPATH=$(go env GOPATH)
[[ ":$PATH:" != *":$GOPATH/bin:"* ]] &&
[[ ":$PATH:" != *":$GOPATH/bin:"* ]] &&
PATH=$PATH:$GOPATH/bin
fi

Expand All @@ -33,14 +33,13 @@ PATH=$PATH:$HOME/.local/bin
## Configure virtualenvwrapper
if [ -x "$HOME/.local/bin/virtualenvwrapper.sh" ]; then
source /home/noone/.local/bin/virtualenvwrapper.sh
else
echo "Couldn't source $HOME/.local/bin/virtualenvwrapper.sh"
# else
# echo "Couldn't source $HOME/.local/bin/virtualenvwrapper.sh"
fi

## Configure fzf
export FZF_DEFAULT_OPS="--extended"


## Set Armory for armory
export ARMORY_HOME=$HOME/.armory

1 change: 1 addition & 0 deletions install.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
- [vim +PlugClean +qall, Cleaning undeclared or undefined vim plugins]
- [vim +PlugInstall +qall, Installing vim plugins]


# nvim
- shell:
- [mkdir -p ~/.config/nvim, Creating ~/.config/nvim]
Expand Down

0 comments on commit b45cf63

Please sign in to comment.