added i3, nvim and polybar configs

Former-commit-id: 32822b9553
Former-commit-id: efab4618c29114035857771f02018395f4d58fb7
Former-commit-id: 5512e96984f48b9ffd821a335f382ff99fda3b28
This commit is contained in:
elena 2018-02-28 19:53:35 +02:00
parent dd677bde98
commit d8f16385d2
23 changed files with 1724 additions and 1813 deletions

498
config/i3/config Normal file
View file

@ -0,0 +1,498 @@
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
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.
# Also changes titlebar height accordingly
#font pango: tewi 9
#font pango: terminus 16
#font pango: mononoki Nerd Font 16
font pango: FuraCode Nerd Font Bold 9
#font pango:terminus 9
#font pango: pxplus ibm vga8 8
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec $term
bindsym $mod+t exec $term
# start a floating terminal
bindsym $mod+Shift+Return exec $term --title floatingterm --geometry 80x20
for_window [title="floatingterm"] floating enable
# kill focused window
bindsym $mod+Shift+q kill
# Doesnt work
#bindsym $mod+q exec xkill
# The middle button over a titlebar kills the window
bindsym --release button2 kill
# The right button toggles floating
bindsym button3 floating toggle
# The middle button and a modifer over any part of the window kills the window
# Works but the middle click also goes through the window "under"
# bindsym --whole-window $mod+button2 kill
# start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run SOS LOOK FOR "rofi" down down down
# 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
# change focus
#bindsym $mod+j focus left
#bindsym $mod+k focus down
#bindsym $mod+l focus up
#bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
#bindsym $mod+Shift+j move left
#bindsym $mod+Shift+k move down
#bindsym $mod+Shift+l move up
#bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Terminal
set $term urxvtc
#set $term urxvt
# Workspace variables
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 $ws0 "10"
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws0
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws0
# Specific Workspace options
assign [class="Firefox"] $ws1
#assign [class="wow_434.exe"] $ws2
assign [class="discord"] $ws3
#assign [class="skypeforlinux"] $ws3
#assign [class="TeamSpeak 3"] $ws3
#assign [class="Sublime_text"] $ws4
#assign [class="Thunar"] $ws5
#assign [class="Evince"] $ws5
assign [class="Gimp"] $ws6
#assign [class="VirtualBox"] $ws7
#assign [class="vlc"] $ws8
assign [class="Lutris"] $ws9
assign [class="Steam"] $ws9
# For gimp (not needed anymore since im using single window mode)
#for_window [window_role="gimp-dock"] floating disable; move left; resize shrink width 50 px or 50ppt
#for_window [window_role="gimp-toolbox"] floating disable; move right; resize grow width 30 px or 30ppt
#for_window [class="Gimp"] floating enable
# 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
# restart Xresources
bindsym $mod+Shift+w exec xrdb ~/.Xresources
# exit i3 (logs you out of your X session)
#bindsym $mod+Shift+e 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+x exec i3-msg exit
# resize window (you can also use the mouse for that)
set $resize_mode "» resize"
mode $resize_mode {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym r mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode $resize_mode
##################################### Customization ####################################
# Default layout
#workspace_layout default|stacking|tabbed
#workspace_layout stacking
# Focus follows mouse
focus_follows_mouse no
# For instance: Assume you are on workspace "1: www" and switch to "2: IM"
# using mod+2 because somebody sent you a message. You dont need to
# remember where you came from now, you can just press $mod+2 again
# to switch back to "1: www".
workspace_auto_back_and_forth yes
########################## STYLE ##########################
# Borders
# border normal|pixel (titlebar|notitlebar)
# border none|toggle
# Border width
set $border_width 0
# only titlebar (doesnt work well with gaps enabled (visual glitches) unless you are tabbed or stacked)
# compton helps with the glitching a lot though
#for_window [class="^.*"] border normal 0
# border only
for_window [class="^.*"] border pixel $border_width
# no titlebar no border
#for_window [class="^.*"] border none
# Borders only on terminal
#for_window [class="URxvt"] border pixel $border_width
set $wave .:*~*:._.:*~*:.
set $decor X
# titlebar format
# empty
#for_window [class=".*"] title_format <span></span>
# full wave title
#for_window [class=".*"] title_format <span font_desc='tewi 7'>$wave$wave$wave$wave$wave$wave$wave$wave$wave$wave$wave$wave$wave$wave$wave$wave$wave$wave</span>
# simple title
#for_window [class=".*"] title_format <span font_desc='tewi 7'> » %title</span>
#for_window [class=".*"] title_format <span font_desc='terminus 12'> » %title</span>
#for_window [class=".*"] title_format <span font_desc='pxplus ibm vga8 11'> » %title</span>
#for_window [class=".*"] title_format " » %title"
# title box
#for_window [class=".*"] title_format <span background='$color8' foreground='$color0' font_desc='mononoki Nerd Font 11'> </span><span background='$color8' font_desc='Siji 7'></span><span background='$color8' foreground='$color7' font_desc='Terminus 7' > %title </span><span foreground='$color8' font_desc='mononoki Nerd Font 11'></span>
# class box - wave - title box
#for_window [class=".*"] title_format <span background='$color8' foreground='$color0' font_desc='mononoki Nerd Font 11'> </span><span background='$color8' font_desc='Siji 7'></span><span background='$color8' foreground='$color7' font_desc='Terminus 7' > %class </span><span foreground='$color8' font_desc='mononoki Nerd Font 11'></span><span font_desc='Terminus 7'> $wave</span><span background='$color8' foreground='$color0' font_desc='mononoki Nerd Font 11'> </span><span background='$color8' font_desc='Siji 7'></span><span background='$color8' foreground='$color7' font_desc='Terminus 7' > %title </span><span foreground='$color8' font_desc='mononoki Nerd Font 11'></span>
# Border width
#new_window pixel 2
#new_window normal 0
# Firefox appearance
#for_window [class="Firefox"] border none
# Global gaps
set $inner_default 10
set $outer_default 25
gaps inner $inner_default
gaps outer $outer_default
# Enable gaps only if there is more than one container
# smart_gaps on
# Hide borders when only 1 window is open in the workspace
#hide_edge_borders both
#hide_edge_borders smart
# Wallpaper
exec_always --no-startup-id ~/.fehbg
##################################### Colors ####################################
# Grab colors from Xresources (requires reloading xrdb and i3)
set_from_resource $color0 i3wm.color0 #050505
set_from_resource $color1 i3wm.color1 #AA0000
set_from_resource $color2 i3wm.color2 #00AA00
set_from_resource $color3 i3wm.color3 #FFFF55
set_from_resource $color4 i3wm.color4 #0000AA
set_from_resource $color5 i3wm.color5 #AA00AA
set_from_resource $color6 i3wm.color6 #00AAAA
set_from_resource $color7 i3wm.color7 #AAAAAA
set_from_resource $color8 i3wm.color8 #666666
set_from_resource $color9 i3wm.color1 #AA0000
set_from_resource $color10 i3wm.color10 #00AA00
set_from_resource $color11 i3wm.color11 #FFFF55
set_from_resource $color12 i3wm.color12 #0000AA
set_from_resource $color13 i3wm.color13 #AA00AA
set_from_resource $color14 i3wm.color14 #00AAAA
set_from_resource $color15 i3wm.color15 #AAAAAA
# Urgent color
set_from_resource $colorU i3wm.color1 #AAAAAA
# Focused color
set_from_resource $colorF i3wm.color6 #AAAAAA
# Inactive color
set_from_resource $colorI i3wm.color8 #AAAAAA
# uNfocused color
set_from_resource $colorN i3wm.color8 #666666
# Background color
set_from_resource $colorB i3wm.color2 #666666
# Example
#set $color7 #AAAAAA
####### NORMAL #######
# class border background text indicator child_border
client.focused $colorF $colorF $color0 $colorF $colorF
client.focused_inactive $colorI $colorI $color0 $colorI $colorI
client.unfocused $colorN $colorN $color0 $colorN $colorN
client.urgent $colorU $colorU $color0 $colorU $colorU
client.placeholder $color7 $color0 $color7 $color7 $color7
####### DARK #######
# class border background text indicator child_border
#client.focused $colorB $colorB $colorF $colorB $colorB
#client.focused_inactive $colorB $colorB $colorI $colorB $colorB
#client.unfocused $colorB $colorB $colorN $colorB $colorB
#client.urgent $colorB $colorB $colorU $colorB $colorB
#client.placeholder $colorB $colorB $color7 $colorB $colorB
####### FOR POWERLINE / TRIANGLES / SYMBOLS ####### todo
#client.focused $color0 $color0 $colorF $color0 $colorF
#client.focused_inactive $color0 $color0 $colorI $color0 $color0
#client.unfocused $color0 $color0 $colorI $color0 $color0
#client.urgent $color0 $color0 $color7 $color0 $color0
#client.placeholder $color0 $color0 $color7 $color0 $color0
client.background #ffffff
##################################### Keybinds ####################################
# Gaps mode
set $gaps_mode "» gaps"
bindsym $mod+shift+g mode $gaps_mode
mode $gaps_mode {
# arrow keys
bindsym Up gaps inner current plus 5
bindsym Down gaps inner current minus 5
bindsym Right gaps outer current plus 5
bindsym Left gaps outer current minus 5
# plus / minus
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 outer current plus 5
bindsym shift+minus gaps outer current minus 5
bindsym shift+0 gaps outer current set 0
# Restore defaults
bindsym d gaps inner all set $inner_default
bindsym shift+d gaps outer all set $outer_default
# Exit gaps mode
bindsym g mode "default"
bindsym $mod+g mode "default"
bindsym $mod+shift+g mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
# System monitor
bindsym $mod+Shift+h exec $term -e htop
# Quick Launcher
set $launcher_mode "» launcher"
bindsym $mod+z mode $launcher_mode
mode $launcher_mode {
bindsym w exec "notify-send 'Launching Firefox' --urgency low; firefox"
bindsym e exec "notify-send 'Launching Sublime Text' --urgency low; subl"
bindsym f exec "notify-send 'Launching Thunar' --urgency low; thunar"
bindsym l exec "notify-send 'Launching Lutris' --urgency low; lutris"
bindsym g exec "notify-send 'Launching GIMP' --urgency low; gimp"
bindsym s exec "notify-send 'Launching Steam' --urgency low; steam"
bindsym d exec "notify-send 'Launching Discord' --urgency low; discord"
bindsym c exec --no-startup-id compositor
bindsym x exec --no-startup-id flux
bindsym z mode "default"
bindsym $mod+z mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Music
bindsym $mod+Shift+m exec $term -e ncmpcpp
set $music_mode "» music"
mode $music_mode {
bindsym Left exec --no-startup-id mpc prev
bindsym Right exec --no-startup-id mpc next
bindsym p exec --no-startup-id mpc toggle
bindsym n exec --no-startup-id mpc next
bindsym b exec --no-startup-id mpc prev
bindsym l exec --no-startup-id mpc next
bindsym h exec --no-startup-id mpc prev
bindsym m mode "default"
bindsym $mod+m mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+m mode $music_mode
# File Manager
bindsym $mod+Shift+f exec thunar
# System Monitors (notification)
bindsym $mod+n exec --no-startup-id ~/Scripts/monitor_notification.sh
# Multimedia keys
#increase sound volume
#bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-mute 0 0 && pactl set-sink-volume @DEFAULT_SINK@ +5%
#decrease sound volume
#bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-mute 0 0 && pactl set-sink-volume @DEFAULT_SINK@ -5%
# mute sound
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
# Rofi (Instead of dmenu) (Edit config for colors etc!)
#bindsym $mod+d exec rofi -show run
bindsym $mod+d exec ~/Scripts/fullrofi
bindsym $mod+Tab exec ~/Scripts/fullrofi
bindsym $mod+Shift+d exec --no-startup-id "rofi -show drun -run-command 'gksudo {cmd}'"
# screenshots
bindsym $mod+Print exec --no-startup-id thunar ~/Pictures/Screenshots
bindsym Print exec --no-startup-id ~/Scripts/scrot_plus_notification.sh
#bindsym $mod+Print exec scrot -e 'mv $f ~/Pictures/Screenshots'
bindsym $mod+Shift+Print --release exec --no-startup-id ~/Scripts/scrot_plus_notification.sh -s
#bindsym $mod+Shift+Print --release exec scrot -s -e 'mv $f ~/Pictures/Screenshots'
##################################### autostart ####################################
# urxvt daemon
exec --no-startup-id urxvtd -q -o -f
# Compton
exec --no-startup-id compositor
# Enable numlock
exec --no-startup-id numlockx &
# Keyboard lang
exec --no-startup-id setxkbmap -layout "us,gr,ru" -option "grp:alt_shift_toggle"
# Mpd
exec --no-startup-id mpd ~/.config/mpd/mpd.conf
# Bar
exec_always --no-startup-id barstart
# Run htop on $ws0 on startup
#exec --no-startup-id i3-msg 'workspace $ws0; exec $term -e htop'
# Lock the screen after booting
# exec ~/mylock
# Scratchpad
#exec_always --no-startup-id $term -title=dropdown -e tmux
#for_window [title="dropdown"] floating enable;
#for_window [title="dropdown"] move scratchpad; [instance="dropdown"] scratchpad show; move scratchpad
#bindsym $mod+u [title="dropdown"] scratchpad show
# Fix a bug in gnome-settings-daemon: http://feeding.cloud.geek.nz/posts/creating-a-modern-tiling-desktop-environment-using-i3/
#exec --no-startup-id dconf write /org/gnome/settings-daemon/plugins/cursor/active false
# Needed to configure things
#exec --no-startup-id cinnamon-settings-daemon &>/home/leni/cinnamon-debug
#exec --no-startup-id nm-applet

152
config/i3/i3blocks.conf Executable file
View file

@ -0,0 +1,152 @@
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent
# Global properties
# accent 444444
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
command=/usr/share/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=none
# Volume indicator
#
# The first parameter sets the step (and units to display)
# The second parameter overrides the mixer selection
# See the script for details.
[volume]
#label=VOL
label=♪
instance=Master
#instance=PCM
interval=1
signal=10
command=/usr/share/i3blocks/volume 5 pulse
# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
[memory]
label=ram
color=#444444
separator=true
interval=30
# Disk usage
#
# The directory defaults to $HOME if the instance is not specified.
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
[disk]
label=home
#instance=/mnt/data
interval=30
# Network interface monitoring
#
# If the instance is not specified, use the interface used for default route.
# The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
[iface]
#instance=wlan0
color=#444444
interval=10
#separator=false
[wifi]
#instance=wlp3s0
interval=10
#separator=false
#[bandwidth]
#instance=eth0
interval=5
# CPU usage
#
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[cpu_usage]
label=CPU
interval=10
min_width=CPU: 100.00%
#separator=false
#[load_average]
#interval=10
# Battery indicator
#
# The battery instance defaults to 0.
[battery]
label=BAT
label=⚡
instance=0
interval=5
# Date Time
#
[time]
#command=date '+%Y-%m-%d %H:%M:%S'
command=date '+%Y-%m-%d %H:%M'
color=#444444
interval=10
# Generic media player support
#
# This displays "ARTIST - SONG" if a music is playing.
# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others.
#[mediaplayer]
#instance=spotify
#interval=5
#signal=10
# OpenVPN support
#
# Support multiple VPN, with colors.
#[openvpn]
#interval=20
# Temperature
#
# Support multiple chips, though lm-sensors.
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[temperature]
#label=TEMP
label=
interval=10
# Key indicators
#
# Add the following bindings to i3 config file:
#
# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
#[keyindicator]
#instance=CAPS
#interval=once
#signal=11
#[keyindicator]
#instance=NUM
#interval=once
#signal=11

View file

@ -1,3 +1,10 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =1
let g:netrw_dirhist_cnt =8
let g:netrw_dirhist_1='/home/elena/Scripts'
let g:netrw_dirhist_2='/home/elena/.config/ncmpcpp'
let g:netrw_dirhist_3='/home/elena/.config/cava'
let g:netrw_dirhist_4='/home/elena/.config/i3'
let g:netrw_dirhist_5='/home/elena/.config/dunst'
let g:netrw_dirhist_6='/home/elena/Scripts'
let g:netrw_dirhist_7='/home/elena/.config/ncmpcpp'
let g:netrw_dirhist_8='/home/elena/.config/nvim/plugged/vim-airline/autoload/airline'

View file

@ -0,0 +1 @@
/home/elena/Themes/Vim/mynoctu.vim

View file

@ -0,0 +1,254 @@
" noctu.vim - Vim color scheme for 16-color terminals
" --------------------------------------------------------------
" Author: Noah Frederick (http://noahfrederick.com/)
" Version: 1.8.0
" --------------------------------------------------------------
" Scheme setup {{{
set background=dark
hi! clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "noctu"
"}}}
" Vim UI {{{
hi Normal ctermfg=7
hi Cursor ctermfg=7 ctermbg=1
hi CursorLine ctermbg=0 cterm=NONE
hi MatchParen ctermfg=7 ctermbg=NONE cterm=underline
hi Pmenu ctermfg=15 ctermbg=0
hi PmenuThumb ctermbg=7
hi PmenuSBar ctermbg=8
hi PmenuSel ctermfg=0 ctermbg=4
hi ColorColumn ctermbg=0
hi SpellBad ctermfg=1 ctermbg=NONE cterm=underline
hi SpellCap ctermfg=10 ctermbg=NONE cterm=underline
hi SpellRare ctermfg=11 ctermbg=NONE cterm=underline
hi SpellLocal ctermfg=13 ctermbg=NONE cterm=underline
hi NonText ctermfg=8
hi LineNr ctermfg=8 ctermbg=NONE
hi CursorLineNr ctermfg=11 ctermbg=0
hi Visual ctermfg=0 ctermbg=12
hi IncSearch ctermfg=0 ctermbg=13 cterm=NONE
hi Search ctermfg=0 ctermbg=10
hi StatusLine ctermfg=7 ctermbg=0 cterm=bold
hi StatusLineNC ctermfg=8 ctermbg=0 cterm=bold
hi VertSplit ctermfg=0 ctermbg=0 cterm=NONE
hi TabLine ctermfg=8 ctermbg=0 cterm=NONE
hi TabLineSel ctermfg=7 ctermbg=0
hi Folded ctermfg=6 ctermbg=0 cterm=bold
hi Conceal ctermfg=6 ctermbg=NONE
hi Directory ctermfg=12
hi Title ctermfg=3 cterm=bold
hi ErrorMsg ctermfg=15 ctermbg=1
hi DiffAdd ctermfg=0 ctermbg=2
hi DiffChange ctermfg=0 ctermbg=3
hi DiffDelete ctermfg=0 ctermbg=1
hi DiffText ctermfg=0 ctermbg=11 cterm=bold
hi User1 ctermfg=1 ctermbg=0
hi User2 ctermfg=4 ctermbg=0
hi User3 ctermfg=2 ctermbg=0
hi User4 ctermfg=3 ctermbg=0
hi User5 ctermfg=5 ctermbg=0
hi User6 ctermfg=6 ctermbg=0
hi User7 ctermfg=7 ctermbg=0
hi User8 ctermfg=8 ctermbg=0
hi User9 ctermfg=15 ctermbg=5
hi! link CursorColumn CursorLine
hi! link SignColumn LineNr
hi! link WildMenu Visual
hi! link FoldColumn SignColumn
hi! link WarningMsg ErrorMsg
hi! link MoreMsg Title
hi! link Question MoreMsg
hi! link ModeMsg MoreMsg
hi! link TabLineFill StatusLineNC
hi! link SpecialKey NonText
"}}}
" Generic syntax {{{
hi Delimiter ctermfg=7
hi Comment ctermfg=8
hi Underlined ctermfg=4 cterm=underline
hi Type ctermfg=4
hi String ctermfg=11
hi Keyword ctermfg=2
hi Todo ctermfg=15 ctermbg=NONE cterm=bold,underline
hi Function ctermfg=4
hi Identifier ctermfg=7 cterm=NONE
hi Statement ctermfg=2 cterm=bold
hi Constant ctermfg=13
hi Number ctermfg=12
hi Boolean ctermfg=4
hi Special ctermfg=13
hi Ignore ctermfg=0
hi PreProc ctermfg=8 cterm=bold
hi! link Operator Delimiter
hi! link Error ErrorMsg
"}}}
" HTML {{{
hi htmlTagName ctermfg=2
hi htmlTag ctermfg=2
hi htmlArg ctermfg=10
hi htmlH1 cterm=bold
hi htmlBold cterm=bold
hi htmlItalic cterm=underline
hi htmlUnderline cterm=underline
hi htmlBoldItalic cterm=bold,underline
hi htmlBoldUnderline cterm=bold,underline
hi htmlUnderlineItalic cterm=underline
hi htmlBoldUnderlineItalic cterm=bold,underline
hi! link htmlLink Underlined
hi! link htmlEndTag htmlTag
"}}}
" XML {{{
hi xmlTagName ctermfg=4
hi xmlTag ctermfg=12
hi! link xmlString xmlTagName
hi! link xmlAttrib xmlTag
hi! link xmlEndTag xmlTag
hi! link xmlEqual xmlTag
"}}}
" JavaScript {{{
hi! link javaScript Normal
hi! link javaScriptBraces Delimiter
"}}}
" PHP {{{
hi phpSpecialFunction ctermfg=5
hi phpIdentifier ctermfg=11
hi phpParent ctermfg=8
hi! link phpVarSelector phpIdentifier
hi! link phpHereDoc String
hi! link phpDefine Statement
"}}}
" Markdown {{{
hi! link markdownHeadingRule NonText
hi! link markdownHeadingDelimiter markdownHeadingRule
hi! link markdownLinkDelimiter Delimiter
hi! link markdownURLDelimiter Delimiter
hi! link markdownCodeDelimiter NonText
hi! link markdownLinkTextDelimiter markdownLinkDelimiter
hi! link markdownUrl markdownLinkText
hi! link markdownAutomaticLink markdownLinkText
hi! link markdownCodeBlock String
hi markdownCode cterm=bold
hi markdownBold cterm=bold
hi markdownItalic cterm=underline
"}}}
" Ruby {{{
hi! link rubyDefine Statement
hi! link rubyLocalVariableOrMethod Identifier
hi! link rubyConstant Constant
hi! link rubyInstanceVariable Number
hi! link rubyStringDelimiter rubyString
"}}}
" Git {{{
hi gitCommitBranch ctermfg=3
hi gitCommitSelectedType ctermfg=10
hi gitCommitSelectedFile ctermfg=2
hi gitCommitUnmergedType ctermfg=9
hi gitCommitUnmergedFile ctermfg=1
hi! link gitCommitFile Directory
hi! link gitCommitUntrackedFile gitCommitUnmergedFile
hi! link gitCommitDiscardedType gitCommitUnmergedType
hi! link gitCommitDiscardedFile gitCommitUnmergedFile
"}}}
" Vim {{{
hi! link vimSetSep Delimiter
hi! link vimContinue Delimiter
hi! link vimHiAttrib Constant
"}}}
" LESS {{{
hi lessVariable ctermfg=11
hi! link lessVariableValue Normal
"}}}
" NERDTree {{{
hi! link NERDTreeHelp Comment
hi! link NERDTreeExecFile String
"}}}
" Vimwiki {{{
hi! link VimwikiHeaderChar markdownHeadingDelimiter
hi! link VimwikiList markdownListMarker
hi! link VimwikiCode markdownCode
hi! link VimwikiCodeChar markdownCodeDelimiter
"}}}
" Help {{{
hi! link helpExample String
hi! link helpHeadline Title
hi! link helpSectionDelim Comment
hi! link helpHyperTextEntry Statement
hi! link helpHyperTextJump Underlined
hi! link helpURL Underlined
"}}}
" CtrlP {{{
hi! link CtrlPMatch String
hi! link CtrlPLinePre Comment
"}}}
" Mustache {{{
hi mustacheSection ctermfg=14 cterm=bold
hi mustacheMarker ctermfg=6
hi mustacheVariable ctermfg=14
hi mustacheVariableUnescape ctermfg=9
hi mustachePartial ctermfg=13
"}}}
" Shell {{{
hi shDerefSimple ctermfg=11
hi! link shDerefVar shDerefSimple
"}}}
" Syntastic {{{
hi SyntasticWarningSign ctermfg=3 ctermbg=NONE
hi SyntasticErrorSign ctermfg=1 ctermbg=NONE
hi SyntasticStyleWarningSign ctermfg=2 ctermbg=NONE
hi SyntasticStyleErrorSign ctermfg=4 ctermbg=NONE
"}}}
" Netrw {{{
hi netrwExe ctermfg=9
hi netrwClassify ctermfg=8 cterm=bold
"}}}
" Ledger {{{
hi ledgerAccount ctermfg=11
hi! link ledgerMetadata Comment
hi! link ledgerTransactionStatus Statement
"}}}
" Diff {{{
hi diffAdded ctermfg=2
hi diffRemoved ctermfg=1
hi! link diffFile PreProc
hi! link diffLine Title
"}}}
" Plug {{{
hi plugSha ctermfg=3
"}}}
" Blade {{{
hi! link bladeStructure PreProc
hi! link bladeParen phpParent
hi! link bladeEchoDelim PreProc
"}}}
" vim: fdm=marker:sw=2:sts=2:et

View file

@ -1,15 +1,53 @@
"Show line numbers
set number
" Only works in vim
set t_Co=256
colorscheme DarkDefault
"Case insensitive searching
set ignorecase
"Will automatically switch to case sensitive if you use any capitals
set smartcase
" noctu only uses the 16 terminal colors ^_^
colorscheme noctu
"colorscheme mynoctu
"colorscheme DarkDefault
"colorscheme 3dglasses
"colorscheme LightDefault
"colorscheme base16-ateliercave
" ~~~ Plugins ~~~
call plug#begin('$HOME/.config/nvim/plugged')
" Updating every startup costs time, there's no need for that.
"Plug 'shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'shougo/deoplete.nvim'
Plug 'tpope/vim-sensible'
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdcommenter'
"Plug 'ryanoasis/vim-devicons'
call plug#end()
" ~~~ Plugin Configuration ~~~
" vim-airline
"let g:airline_powerline_fonts = 1
"let g:airline_detect_whitespace=0
let g:airline#extensions#whitespace#enabled = 0
" deoplete
let g:deoplete#enable_at_startup = 1
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
nnoremap <esc> :noh<return><esc>
" NerdCommenter
" Change <leader> bind from default \
let mapleader=","
set notimeout
" vim-devicons
let g:webdevicons_enable = 1
set encoding=utf8
set guifont=FuraCode\ Nerd\ Font\ 9

@ -1 +1 @@
Subproject commit 8d97424a22715ad350799904501185253e582025
Subproject commit a338ca8bbee086cc7b9265ae181f22de86d38491

@ -0,0 +1 @@
Subproject commit 2f973bd4fa009fe852b1c1c6f025bf38742a8b1c

@ -0,0 +1 @@
Subproject commit c2ffb8b3ec114301795036f7bf22995746d2acaf

@ -1 +1 @@
Subproject commit 49ee364222dc2a5a00dddf89fd61880e3e39d46a
Subproject commit 2d60332fa5b2b1ea346864245569df426052865a

View file

@ -1,17 +0,0 @@
bottom = true
height = 25
width = 100%
offset-x = 0
offset-y = 0
background = ${colors.background}
foreground = ${colors.foreground}
wm-restack = i3
override-redirect = true
fixed-center = true
font-0 = NotoSans-Regular:size=6;2
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = "Material Icons:antialias=false:size=9;5"
padding-left = 30%
padding-right = 50%
module-margin-left = 2
module-margin-right = 2

File diff suppressed because it is too large Load diff

View file

@ -1,425 +0,0 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
; 
; 
; 
; 
; 
[colors]
background = ${xrdb:color0}
;background = #0c0c0c
background-alt = #444
foreground = ${xrdb:color7}
;foreground = #dfdfdf
;foreground = #9EC2B7
;foreground-alt = #555
foreground-alt = ${xrdb:color2}
;foreground-alt = #D4A7B1
;primary = #ffb52a
primary = ${xrdb:color6}
;secondary = #e60053
secondary = ${xrdb:color1}
alert = #bd2c40
[bar/top]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 20
;offset-x = 1%
;offset-y = 1%
;=== ROUNDED CORNERS ===
radius = 0
;=======================
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 0
border-color = #00000000
padding-left = 0
padding-right = 2
module-margin-left = 1
module-margin-right = 2
font-0 = fixed:pixelsize=10;1
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-1 = mononoki Nerd Font:bold:fontformat=truetype:size=10:antialias=false;2
font-2 = siji:pixelsize=10;1
font-3 = FontAwesome:size=10;0
modules-left = ewmh mpd
modules-center =
modules-right = xkeyboard memory cpu wlan eth battery date volume
tray-position = right
tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
;override-redirect = true
[module/separator1]
type = custom/text
content = "|"
[module/separator2]
type = custom/text
content = %{B#f90 F#FF454A4F}
[module/separator3]
type = custom/text
content = %{F#FFB5BD68 B-}
[module/xwindow]
type = internal/xwindow
label = %title:0:40:...%
label-font = 2
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
;format-prefix-underline = ${colors.secondary}
label-layout = %layout%
;label-layout-underline = ${colors.secondary}
label-layout-font = 2
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
;label-indicator-underline = ${colors.secondary}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
label-font = 2
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
label = BL
bar-width = 10
bar-indicator = |
bar-indicator-foreground = #ff
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
;format-underline = #f90000
label = cpu %percentage%%
label-font = 2
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
;format-underline = #4bffdc
label = ram %percentage_used%%
label-font = 2
[module/wlan]
type = internal/network
interface = wlp3s0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
;format-connected-underline = #9f78e1
label-connected = %essid%
label-connected-font = 2
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface = enp2s0f0
interval = 3.0
;format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
label-connected-font = 2
;format-disconnected-prefix = " "
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected = you are fucked
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
interval = 5
date= " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
;format-underline = #0a6cf5
label = %date% | %time%
label-font = 2
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
label-volume = vol
label-volume-foreground = ${root.foreground}
label-volume-font = 2
format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted
bar-volume-width = 10
;bar-volume-foreground-0 = #55aa55
;bar-volume-foreground-1 = #55aa55
;bar-volume-foreground-2 = #55aa55
;bar-volume-foreground-3 = #55aa55
;bar-volume-foreground-4 = #55aa55
bar-volume-foreground-0 = ${colors.foreground-alt}
bar-volume-foreground-1 = ${colors.foreground-alt}
bar-volume-foreground-2 = ${colors.foreground-alt}
bar-volume-foreground-3 = ${colors.foreground-alt}
bar-volume-foreground-4 = ${colors.foreground-alt}
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
;bar-volume-empty-foreground = ${colors.foreground-alt}
bar-volume-empty-foreground = #555
[module/battery]
type = internal/battery
battery = BAT0
adapter = ACAD
full-at = 98
format-charging = <animation-charging> <label-charging>
;format-charging-underline = #fff
format-charging-font = 2
format-discharging = <ramp-capacity> <label-discharging>
;format-discharging-underline = ${self.format-charging-underline}
format-discharging-font = 2
format-full-prefix = " "
;format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
;format-full-underline = ${self.format-charging-underline}
format-full-font = 2
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-foreground = ${colors.foreground-alt}
ramp-capacity-font = 2
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
animation-charging-font = 2
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
;format-underline = #f50a4d
format-warn = <ramp> <label-warn>
;format-warn-underline = ${self.format-underline}
label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${colors.secondary}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
format-spacing = 1
label-open = 
label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
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-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[module/ewmh]
type = internal/xworkspaces
; Only show workspaces defined on the same output as the bar
;
; Useful if you want to show monitor specific workspaces
; on different bars
;
; Default: false
pin-workspaces = true
; Create click handler used to focus desktop
; Default: true
enable-click = true
; Create scroll handlers used to cycle desktops
; Default: true
enable-scroll = true
; icon-[0-9]+ = <desktop-name>;<icon>
; NOTE: The desktop name needs to match the name configured by the WM
; You can get a list of the defined desktops using:
; $ xprop -root _NET_DESKTOP_NAMES
icon-0 = code;
icon-1 = office;
icon-2 = graphics;
icon-3 = mail;
icon-4 = web;
;icon-default = "  "
icon-default = "  "
; Available tags:
; <label-monitor>
; <label-state> - gets replaced with <label-(active|urgent|occupied|empty)>
; Default: <label-state>
format = <label-state>
; Available tokens:
; %name%
; Default: %name%
label-monitor = %name%
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
;label-active = "  "
label-active = "  "
label-active-foreground = ${colors.foreground}
;label-active-background = #3f3f3f
;label-active-underline = #fba922
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-occupied = %icon%
label-occupied-underline = #555555
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-urgent = %icon%
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-underline = #9b0a20
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-empty = %icon%
label-empty-foreground = #55
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = 5
margin-bottom = 0
; vim:ft=dosini

View file

@ -1,369 +0,0 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
;background = ${xrdb:color0:#222}
background = #222
background-alt = #444
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
[bar/example]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 27
;offset-x = 1%
;offset-y = 1%
radius = 6.0
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 4
border-color = #00000000
padding-left = 0
padding-right = 2
module-margin-left = 1
module-margin-right = 2
font-0 = fixed:pixelsize=10;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=10;1
modules-left = bspwm
modules-center = mpd
modules-right = filesystem xbacklight volume xkeyboard memory cpu wlan eth battery temperature date powermenu
tray-position = right
tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
;wm-restack = bspwm
;wm-restack = i3
;override-redirect = true
;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev
;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}
label-layout = %layout%
label-layout-underline = ${colors.secondary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/bspwm]
type = internal/bspwm
label-focused = %index%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2
label-occupied = %index%
label-occupied-padding = 2
label-urgent = %index%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
label-empty = %index%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar
;pin-workspaces = true
label-mode-padding = 2
label-mode-foreground = #000
label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor
label-focused = %index%
label-focused-background = ${module/bspwm.label-focused-background}
label-focused-underline = ${module/bspwm.label-focused-underline}
label-focused-padding = ${module/bspwm.label-focused-padding}
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
; visible = Active workspace on unfocused monitor
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %index%
label-urgent-background = ${module/bspwm.label-urgent-background}
label-urgent-padding = ${module/bspwm.label-urgent-padding}
[module/mpd]
type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 
label-song-maxlen = 25
label-song-ellipsis = true
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
label = BL
bar-width = 10
bar-indicator = |
bar-indicator-foreground = #ff
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = %percentage%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc
label = %percentage_used%%
[module/wlan]
type = internal/network
interface = wlp3s0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1
label-connected = %essid%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface = enp2s0f0
interval = 3.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
interval = 5
date =
date-alt = " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
label = %date% %time%
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
label-volume = VOL
label-volume-foreground = ${root.foreground}
format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery]
type = internal/battery
battery = BAT0
adapter = ACAD
full-at = 98
format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffb52a
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}
format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${colors.secondary}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
format-spacing = 1
label-open = 
label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
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-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini

View file

@ -1,20 +0,0 @@
#!/usr/bin/env sh
killall -q polybar
polybar_proc=$(pgrep -u $UID -x polybar)
# Terminate already running bar instances
if [ $polybar_proc ] ; then
for i in ${polybar_proc} ; do
kill -9 $i
done
fi
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch bar top & bottom
polybar top &
polybar bottom &
echo "Bars launched..."

View file

@ -1,34 +0,0 @@
#!/bin/sh
# This program will automatically search your mails.
# And print number of new messages.
# Require another prog for doing this, offlineimap, msmtp or isync.
gmaildir=/home/user/.mails/Gmail/\[Gmail\].All\ Mail/new
prog=/usr/bin/offlineimap
count=0
log=/tmp/mails.log
if [ -x $prog ] ; then
$prog 2>/dev/null &
wait
if [ $? = 0 ] ; then
echo "$(date) - $prog success" >> $log
elif [ $? = 1 ] ; then
echo "$(date) - $prog has fail" >> $log
else
echo "$(date) - unknown prob" >> $log
fi
fi
if [[ ! -d ${gmaildir} ]] ; then
echo "$(date) - $gmaildir does not exist" >> $log
elif [[ ! -n $(ls "${gmaildir}") ]] ; then
echo "$(date) - $gmaildir no new mail found" >> $log
else
count=$(ls -1 "${gmaildir}" | wc -l)
fi
echo "${count}"

View file

@ -1,414 +0,0 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
; 
; 
; 
; 
; 
[colors]
;background = ${xrdb:color0:#222}
background = #222222
background-alt = #444
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
;foreground = #9EC2B7
foreground-alt = #555
;foreground-alt = #D4A7B1
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
[bar/top]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 20
;offset-x = 1%
;offset-y = 1%
;=== ROUNDED CORNERS ===
radius = 0
;=======================
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 0
border-color = #00000000
padding-left = 0
padding-right = 2
module-margin-left = 1
module-margin-right = 2
font-0 = fixed:pixelsize=10;1
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-1 = mononoki Nerd Font:fontformat=truetype:size=10:antialias=false;2
font-2 = siji:pixelsize=10;1
font-3 = FontAwesome:size=10;0
modules-left = ewmh mpd
modules-center =
modules-right = xkeyboard memory cpu wlan eth battery date volume
tray-position = right
tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
;override-redirect = true
[module/separator1]
type = custom/text
content = "|"
[module/separator2]
type = custom/text
content = %{B#f90 F#FF454A4F}
[module/separator3]
type = custom/text
content = %{F#FFB5BD68 B-}
[module/xwindow]
type = internal/xwindow
label = %title:0:40:...%
label-font = 4
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}
label-layout = %layout%
label-layout-underline = ${colors.secondary}
label-layout-font = 4
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
label-font = 4
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
label = BL
bar-width = 10
bar-indicator = |
bar-indicator-foreground = #ff
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = cpu %percentage%%
label-font = 4
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc
label = ram %percentage_used%%
label-font = 4
[module/wlan]
type = internal/network
interface = wlp3s0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1
label-connected = %essid%
label-connected-font = 4
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface = enp2s0f0
interval = 3.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
label-connected-font = 4
;format-disconnected-prefix = " "
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected = you are fucked
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
interval = 5
date= " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
label = %date% | %time%
label-font = 4
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
label-volume = vol
label-volume-foreground = ${root.foreground}
label-volume-font = 4
format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery]
type = internal/battery
battery = BAT0
adapter = ACAD
full-at = 98
format-charging = <animation-charging> <label-charging>
format-charging-underline = #fff
format-charging-font = 4
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}
format-discharging-font = 4
format-full-prefix = " "
;format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline}
format-full-font = 4
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-foreground = ${colors.foreground-alt}
ramp-capacity-font = 4
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
animation-charging-font = 4
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${colors.secondary}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
format-spacing = 1
label-open = 
label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
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-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[module/ewmh]
type = internal/xworkspaces
; Only show workspaces defined on the same output as the bar
;
; Useful if you want to show monitor specific workspaces
; on different bars
;
; Default: false
pin-workspaces = true
; Create click handler used to focus desktop
; Default: true
enable-click = true
; Create scroll handlers used to cycle desktops
; Default: true
enable-scroll = true
; icon-[0-9]+ = <desktop-name>;<icon>
; NOTE: The desktop name needs to match the name configured by the WM
; You can get a list of the defined desktops using:
; $ xprop -root _NET_DESKTOP_NAMES
icon-0 = code;
icon-1 = office;
icon-2 = graphics;
icon-3 = mail;
icon-4 = web;
icon-default = "  "
; Available tags:
; <label-monitor>
; <label-state> - gets replaced with <label-(active|urgent|occupied|empty)>
; Default: <label-state>
format = <label-state>
; Available tokens:
; %name%
; Default: %name%
label-monitor = %name%
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-active = "  "
label-active-foreground = #fff
;label-active-background = #3f3f3f
;label-active-underline = #fba922
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-occupied = %icon%
label-occupied-underline = #555555
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-urgent = %icon%
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-underline = #9b0a20
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-empty = %icon%
label-empty-foreground = #55
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = 5
margin-bottom = 0
; vim:ft=dosini

View file

@ -1,13 +0,0 @@
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch bar1
polybar top &
#polybar bar2 &
echo "Bars launched..."

View file

@ -1,9 +0,0 @@
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
echo "Bars killed..."

View file

@ -1,187 +0,0 @@
;=======================================;
; ;
; Clean and green polybar config ;
; ;
;=======================================;
;
; Colors
;
[colors]
graphite = #2e3440
gray = #707f9c
green = #50fa7b
white = #ffffff
;
; Bar
;
[bar/top]
width = 98%
height = 38
offset-x = 1%
offset-y = 1%
radius = 0.0
background = ${colors.graphite}
foreground = ${colors.white}
border-size = 3
border-color = ${colors.graphite}
module-margin-left = 1
module-margin-right = 1
font-0 = Iosevka:pixelsize=13;3
font-1 = Iosevka:weight=bold:pixelsize=18;3
font-2 = FontAwesome:pixelsize=16;3
font-3 = Iosevka:pixelsize=20
modules-left = bspwm windowlist
modules-right = xkeyboard wired volume date powermenu
wm-restack = bspwm
;
; xkeyboard
;
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %layout%
label-indicator-padding = 2
label-indicator-margin = 1
;
; Bspwm
;
[module/bspwm]
type = internal/bspwm
label-focused = "%{T4} %{T-}%{T2}%index%%{T-}%{T4} %{T-}"
label-focused-background = ${colors.green}
label-focused-foreground = ${colors.graphite}
label-focused-underline= #fff
label-focused-padding = 0
label-occupied = "%{T4} %{T-}%{T2}%index%%{T-}%{T4} %{T-}"
label-occupied-foreground = ${colors.white}
label-occupied-padding = 0
label-urgent = "%{T4} %{T-}%{T2}%index%!%{T-}%{T4} %{T-}"
label-urgent-foreground = ${colors.green}
label-urgent-padding = 0
label-empty = "%{T4} %{T-}%{T2}%index%%{T-}%{T4} %{T-}"
label-empty-foreground = ${colors.gray}
label-empty-padding = 0
;
; Network
;
[module/wired]
type = internal/network
interface = enp3s0
interval = 3.0
format-connected = <label-connected>
format-connected-foreground = ${colors.green}
label-connected =""
format-disconnected = <label-disconnected>
label-disconnected = %ifname% disconnected
label-disconnected-foreground = ${colors.white}
;
; DateTime
;
[module/date]
type = internal/date
interval = 5
date = ""
date-alt = " %a %d %b"
time = %H:%M
time-alt = %H:%M
label = %date% %time%
;
; Volume
;
[module/volume]
type = internal/volume
format-volume = <ramp-volume>
label-volume = %percentage%%
label-volume-foreground = ${colors.white}
format-muted-prefix = " "
format-muted-foreground = ${colors.graphite}
format-muted-background =
label-muted = sound muted
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
;
; Powermenu
;
[module/powermenu]
type = custom/menu
label-open = "%{T4} %{T-}%{T4} %{T-}"
label-close =
format = <label-toggle><menu>
label-separator = " : "
format-foreground = ${colors.graphite}
format-background = ${colors.green}
menu-0-0 = 
menu-0-0-exec = menu-open-1
menu-0-1 = 
menu-0-1-exec = menu-open-2
menu-0-2 = 
menu-0-2-exec = menu-open-3
menu-0-3 = " "
menu-1-0 = 
menu-1-0-exec = systemctl suspend -i
menu-1-1 = " "
menu-2-0 = 
menu-2-0-exec = systemctl reboot -i
menu-2-1 = ""
menu-3-0 = 
menu-3-0-exec = systemctl poweroff -i
menu-3-1 = ""
;
; Window-list
;
[module/windowlist]
type = custom/script
exec = ~/.config/polybar/windowlist.sh
;zero interval causes high cpu load
interval = 0.5
;scroll-up = bspc node -f prev.local
;scroll-down = bspc node -f next.local

View file

@ -1,10 +0,0 @@
#!/bin/sh
arg=$1
cmd=""
if [ $arg ] ; then
cmd=$(systemctl status $arg | grep Active | awk '{print $1}' | cut -d ':' -f -1)
fi
echo "$arg - $cmd"

View file

@ -1,23 +0,0 @@
width = 98%
height = 36
offset-x = 1%
offset-y = 4
fixed-center = true
bottom = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 0
line-color = #f00
border-size = 0
border-color = #00000000
padding-left = 3
padding-right = 3
module-margin-left = 2
module-margin-right = 2
font-0 = NotoSans-Regular:size=6;2
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = "Material Icons:antialias=false:size=8;5"
wm-restack = i3
override-redirect = true
cursor-click = pointer
cursor-scroll = ns-resize

View file

@ -1,47 +0,0 @@
#!/bin/bash
#Get id of all non-floating windows on current desktop
WINDOWS="$(bspc query -N -d focused -n .window.\!floating)"
#Get id of currently focused window
FOCUSED="$(bspc query -N -d focused -n .\focused.window.\!floating)"
#Choose what format to use:
#-Show short output if there are more than one window on desktop
#-Show full output if there is only one window on desktop
if [[ $(wc -l <<< $WINDOWS) = 1 ]]; then
FORMAT="-f3-"
else
FORMAT="-f3"
fi
#Get WM_CLASS string from all IDs
for wid in $WINDOWS; do
#Get window's class
wclass="$(< "/proc/${1:-$(xdotool getwindowpid $wid)}/comm")"
#Get window's name
wname="$(xprop -id $wid WM_NAME | cut -d " " $FORMAT)"
#Get rid of quotation marks
wname="$(echo ${wname//\"})"
#Uppercase first character of window class
wname="$(tr '[:lower:]' '[:upper:]' <<< ${wname:0:1})${wname:1}"
wclass="$(tr '[:lower:]' '[:upper:]' <<< ${wclass:0:1})${wclass:1}"
#If window is focused - highlight it with green color
#Use either $wmclass or $wmname to choose what to display
if [[ "$wid" = "$FOCUSED" ]]; then
win="$(printf "%s" "%{F#50fa7b} $wname%{F#ffffff}")"
else
win="%{T3}%{T-} $wname"
fi
windowlist="$windowlist $win"
done
#Result
echo "$windowlist"