This commit is contained in:
nkoehring 2016-05-19 21:56:21 +02:00
parent 2f4b0320fc
commit b4c36e75a0
14 changed files with 568 additions and 319 deletions

13
README
View file

@ -4,3 +4,16 @@ System configuration files
Here you can find all relevant configurations. This is thought equally as Here you can find all relevant configurations. This is thought equally as
public viewport and backup. I appreciate suggestions, rants and bug reports :) public viewport and backup. I appreciate suggestions, rants and bug reports :)
requirements
------------
My configuration expects some repositories checked out in `~/src/pkg/`:
```sh
mkdir -p ~/src/pkg
git clone https://github.com/tarjoilija/zgen.git ~/src/pkg/zgen
git clone https://github.com/junegunn/vim-plug ~/src/pkg/vim-plug
```
I also use [i3-gaps](https://github.com/Airblader/i3-gaps) and
[i3blocks-gaps](https://github.com/Airblader/i3blocks-gaps) from Airblader.

View file

@ -1,23 +0,0 @@
#! /bin/sh
bspc config border_width 1
bspc config window_gap 14
bspc config split_ratio 0.60
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config leaf_monocle true
bspc config focus_by_distance true
bspc config focus_follows_pointer true
bspc config auto_alternate true
bspc config ignore_ewmh_focus true
bspc config remove_disabled_monitors true
bspc config remove_unplugged_monitors true
bspc monitor -d I II III IV V VI VII VIII IX X
bspc rule -a Firefox desktop=^2
bspc rule -a Chromium desktop=^3
bspc rule -a Gimp desktop=^5 follow=on floating=on
bspc rule -a feh desktop=^9
bspc rule -a MPlayer floating=on

View file

@ -1,35 +0,0 @@
#! /bin/sh
if [ $(pgrep -cx panel) -gt 1 ] ; then
printf "%s\n" "The panel is already running." >&2
exit 1
fi
trap 'trap - TERM; kill 0' INT TERM QUIT EXIT
PANEL_FIFO=/tmp/panel-fifo
PANEL_HEIGHT=24
PANEL_FONT_FAMILY="-*-lucidatypewriter-medium-*-*-*-26-*-*-*-*-*-*-*"
[ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO"
mkfifo "$PANEL_FIFO"
bspc config top_padding $PANEL_HEIGHT
bspc control --subscribe > "$PANEL_FIFO" &
xtitle -sf 'T%s' > "$PANEL_FIFO" &
while :; do
_state=$(battery -f '%s')
state=""
[ $_state = "Discharging" ] && state="↓"
[ $_state = "Charging" ] && state="↑"
echo "SBAT $state$(battery -f '%i')%% $(clock -f '%a, %Y-%m-%d %H:%M')" > "$PANEL_FIFO"
sleep 1
done &
#battery -sf 'Battery %s %i%%' > "$PANEL_FIFO" &
#clock -sf '%a, Y-%m-%d %H:%M' > "$PANEL_FIFO" &
. $HOME/.config/bspwm/panel_colors
cat "$PANEL_FIFO" | panel_bar | lemonbar -g x$PANEL_HEIGHT -f "$PANEL_FONT_FAMILY" -F "$COLOR_FOREGROUND" -B "$COLOR_BACKGROUND" &
wait

View file

@ -1,74 +0,0 @@
#! /bin/sh
#
# Example panel for LemonBoy's bar
. $HOME/.config/bspwm/panel_colors
num_mon=$(bspc query -M | wc -l)
while read -r line ; do
case $line in
S*)
# clock output
sys_infos="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG} ${line#?} %{B-}%{F-}"
;;
T*)
# xtitle output
title="%{F$COLOR_TITLE_FG}%{B$COLOR_TITLE_BG} ${line#?} %{B-}%{F-}"
;;
W*)
# bspwm internal state
wm_infos=""
IFS=':'
set -- ${line#?}
while [ $# -gt 0 ] ; do
item=$1
name=${item#?}
case $item in
M*)
# active monitor
if [ $num_mon -gt 1 ] ; then
wm_infos="$wm_infos %{F$COLOR_ACTIVE_MONITOR_FG}%{B$COLOR_ACTIVE_MONITOR_BG} ${name} %{B-}%{F-} "
fi
;;
m*)
# inactive monitor
if [ $num_mon -gt 1 ] ; then
wm_infos="$wm_infos %{F$COLOR_INACTIVE_MONITOR_FG}%{B$COLOR_INACTIVE_MONITOR_BG} ${name} %{B-}%{F-} "
fi
;;
O*)
# focused occupied desktop
wm_infos="${wm_infos}%{F$COLOR_FOCUSED_OCCUPIED_FG}%{B$COLOR_FOCUSED_OCCUPIED_BG}%{U$COLOR_FOREGROUND}%{+u} ${name} %{-u}%{B-}%{F-}"
;;
F*)
# focused free desktop
wm_infos="${wm_infos}%{F$COLOR_FOCUSED_FREE_FG}%{B$COLOR_FOCUSED_FREE_BG}%{U$COLOR_FOREGROUND}%{+u} ${name} %{-u}%{B-}%{F-}"
;;
U*)
# focused urgent desktop
wm_infos="${wm_infos}%{F$COLOR_FOCUSED_URGENT_FG}%{B$COLOR_FOCUSED_URGENT_BG}%{U$COLOR_FOREGROUND}%{+u} ${name} %{-u}%{B-}%{F-}"
;;
o*)
# occupied desktop
wm_infos="${wm_infos}%{F$COLOR_OCCUPIED_FG}%{B$COLOR_OCCUPIED_BG} ${name} %{B-}%{F-}"
;;
f*)
# free desktop
wm_infos="${wm_infos}%{F$COLOR_FREE_FG}%{B$COLOR_FREE_BG} ${name} %{B-}%{F-}"
;;
u*)
# urgent desktop
wm_infos="${wm_infos}%{F$COLOR_URGENT_FG}%{B$COLOR_URGENT_BG} ${name} %{B-}%{F-}"
;;
L*)
# layout
wm_infos="$wm_infos %{F$COLOR_LAYOUT_FG}%{B$COLOR_LAYOUT_BG} ${name} %{B-}%{F-}"
;;
esac
shift
done
;;
esac
printf "%s\n" "%{l}${wm_infos}%{c}${title}%{r}${sys_infos}"
done

View file

@ -1,24 +0,0 @@
COLOR_FOREGROUND='#FFA3A6AB'
COLOR_BACKGROUND='#FF34322E'
COLOR_ACTIVE_MONITOR_FG='#FF34322E'
COLOR_ACTIVE_MONITOR_BG='#FF58C5F1'
COLOR_INACTIVE_MONITOR_FG='#FF58C5F1'
COLOR_INACTIVE_MONITOR_BG='#FF34322E'
COLOR_FOCUSED_OCCUPIED_FG='#FFF6F9FF'
COLOR_FOCUSED_OCCUPIED_BG='#FF5C5955'
COLOR_FOCUSED_FREE_FG='#FFF6F9FF'
COLOR_FOCUSED_FREE_BG='#FF6D561C'
COLOR_FOCUSED_URGENT_FG='#FF34322E'
COLOR_FOCUSED_URGENT_BG='#FFF9A299'
COLOR_OCCUPIED_FG='#FFA3A6AB'
COLOR_OCCUPIED_BG='#FF34322E'
COLOR_FREE_FG='#FF6F7277'
COLOR_FREE_BG='#FF34322E'
COLOR_URGENT_FG='#FFF9A299'
COLOR_URGENT_BG='#FF34322E'
COLOR_LAYOUT_FG='#FFA3A6AB'
COLOR_LAYOUT_BG='#FF34322E'
COLOR_TITLE_FG='#FFA3A6AB'
COLOR_TITLE_BG='#FF34322E'
COLOR_STATUS_FG='#FFA3A6AB'
COLOR_STATUS_BG='#FF34322E'

View file

@ -12,41 +12,76 @@ Xft.hintstyle: hintfull
Xft.hinting: 1 Xft.hinting: 1
Xft.rgba: rgb Xft.rgba: rgb
Xft.dpi: 96 Xft.dpi: 96
! colors:
! color settings... since I want the same ones for xterm I decided to remove every "urxvt"
*foreground: #cccccc
*background: #191919
*font: xft:monofur for powerline-12 *font: xft:monofur for powerline-12
! Black + Dark Grey *faceName: xft:monofur for powerline-12
! was #222222 and/or #333333
!*color0: [90]#191919 ! colours
!*color8: [90]#191919 ! --- generated with 4bit Terminal Color Scheme Designer -----------------------
*color0: #222222 ! --- http://ciembor.github.com/4bit -------------------------------------------
*color8: #333333 *background: #424242
! Dark Red + Red *foreground: #d9e6f2
!*color1: #803232
!*color9: #982b2b ! black
*color1: #a10a30 *color0: #2b2b2b
*color9: #b30a30 *color8: #424242
! Dark Green + Green
*color2: #5b762f ! red
*color10: #89b83f *color1: #ba9897
! Dark Yellow + Yellow *color9: #d0b9b9
*color3: Khaki3
*color11: #efe58b ! green
! Dark Blue + Blue *color2: #97ba98
*color4: #324c80 *color10: #b9d0b9
!*color4: #5c6f94
*color12: #2b4f98 ! yellow
! Dark Magenta + Magenta *color3: #b9ba97
*color5: #706c9a *color11: #d0d0b9
*color13: #826ab1
! Dark Cyan + Cyan ! blue
*color6: #92b19e *color4: #9897ba
*color14: #a1cdcd *color12: #b9b9d0
! Light Grey + White
*color7: #ffffff ! magenta
*color15: #dedede *color5: #ba97b9
*color13: #d0b9d0
! cyan
*color6: #97b9ba
*color14: #b9d0d0
! white
*color7: #d2d2d2
*color15: #ffffff
!! old colors:
!*foreground: #cccccc
!*background: #191919
!
!! Black + Dark Grey
!*color0: #222222
!*color8: #333333
!! Dark Red + Red
!*color1: #a10a30
!*color9: #b30a30
!! Dark Green + Green
!*color2: #5b762f
!*color10: #89b83f
!! Dark Yellow + Yellow
!*color3: Khaki3
!*color11: #efe58b
!! Dark Blue + Blue
!*color4: #324c80
!*color12: #2b4f98
!! Dark Magenta + Magenta
!*color5: #706c9a
!*color13: #826ab1
!! Dark Cyan + Cyan
!*color6: #92b19e
!*color14: #a1cdcd
!! Light Grey + White
!*color7: #ffffff
!*color15: #dedede
! xmessage settings: ! xmessage settings:
.xmessage.form.okay.shapeStyle: round .xmessage.form.okay.shapeStyle: round
@ -92,3 +127,24 @@ URxvt*matcher.button: 3
!URxvt.keysym.C-minus: command:\033]50;xft:Monospace:size=10:antialias=true\007 !URxvt.keysym.C-minus: command:\033]50;xft:Monospace:size=10:antialias=true\007
URxvt.keysym.C-minus: perl:mark-yank-urls:activate_mark_mode URxvt.keysym.C-minus: perl:mark-yank-urls:activate_mark_mode
rofi.pid: /run/user/1000/rofi.pid
rofi.modi: run
rofi.font: monofur for powerline 16
rofi.width: 100
rofi.lines: 5
rofi.columns: 1
rofi.opacity: 80
! rofi.color-enabled: true
! bg fg altbg hlbg hlfg
! rofi.normal: #1d2021, #ebdbb2, #1d2021, #ebdbb2, #1d2021
! rofi.urgent: #1d2021, #ebdbb2, #1d2021, #ebdbb2, #1d2021
! rofi.active: #1d2021, #ebdbb2, #1d2021, #ebdbb2, #1d2021
! rofi.color-window: #1d2021, #1d2021
rofi.fg: #ebdbb2
rofi.bg: #1d2021
rofi.hlfg: #1d2021
rofi.hlbg: #ebdbb2
rofi.bw: 0
rofi.location: 2
rofi.padding: 100
rofi.fuzzy: false

View file

@ -12,43 +12,76 @@ Xft.hintstyle: hintfull
Xft.hinting: 1 Xft.hinting: 1
Xft.rgba: rgb Xft.rgba: rgb
Xft.dpi: 180 Xft.dpi: 180
! colors:
! color settings... since I want the same ones for xterm I decided to remove every "urxvt"
*foreground: #cccccc
*background: #191919
*font: xft:monofur for powerline-14 *font: xft:monofur for powerline-14
!xterm likes xft only as faceName
*faceName: xft:monofur for powerline-12 *faceName: xft:monofur for powerline-12
! Black + Dark Grey
! was #222222 and/or #333333 ! colours
!*color0: [90]#191919 ! --- generated with 4bit Terminal Color Scheme Designer -----------------------
!*color8: [90]#191919 ! --- http://ciembor.github.com/4bit -------------------------------------------
*color0: #222222 *background: #424242
*color8: #333333 *foreground: #d9e6f2
! Dark Red + Red
!*color1: #803232 ! black
!*color9: #982b2b *color0: #2b2b2b
*color1: #a10a30 *color8: #424242
*color9: #b30a30
! Dark Green + Green ! red
*color2: #5b762f *color1: #ba9897
*color10: #89b83f *color9: #d0b9b9
! Dark Yellow + Yellow
*color3: Khaki3 ! green
*color11: #efe58b *color2: #97ba98
! Dark Blue + Blue *color10: #b9d0b9
*color4: #324c80
!*color4: #5c6f94 ! yellow
*color12: #2b4f98 *color3: #b9ba97
! Dark Magenta + Magenta *color11: #d0d0b9
*color5: #706c9a
*color13: #826ab1 ! blue
! Dark Cyan + Cyan *color4: #9897ba
*color6: #92b19e *color12: #b9b9d0
*color14: #a1cdcd
! Light Grey + White ! magenta
*color7: #ffffff *color5: #ba97b9
*color15: #dedede *color13: #d0b9d0
! cyan
*color6: #97b9ba
*color14: #b9d0d0
! white
*color7: #d2d2d2
*color15: #ffffff
!! old colors:
!*foreground: #cccccc
!*background: #191919
!
!! Black + Dark Grey
!*color0: #222222
!*color8: #333333
!! Dark Red + Red
!*color1: #a10a30
!*color9: #b30a30
!! Dark Green + Green
!*color2: #5b762f
!*color10: #89b83f
!! Dark Yellow + Yellow
!*color3: Khaki3
!*color11: #efe58b
!! Dark Blue + Blue
!*color4: #324c80
!*color12: #2b4f98
!! Dark Magenta + Magenta
!*color5: #706c9a
!*color13: #826ab1
!! Dark Cyan + Cyan
!*color6: #92b19e
!*color14: #a1cdcd
!! Light Grey + White
!*color7: #ffffff
!*color15: #dedede
! xmessage settings: ! xmessage settings:
.xmessage.form.okay.shapeStyle: round .xmessage.form.okay.shapeStyle: round
@ -94,3 +127,24 @@ URxvt*matcher.button: 3
!URxvt.keysym.C-minus: command:\033]50;xft:Monospace:size=10:antialias=true\007 !URxvt.keysym.C-minus: command:\033]50;xft:Monospace:size=10:antialias=true\007
URxvt.keysym.C-minus: perl:mark-yank-urls:activate_mark_mode URxvt.keysym.C-minus: perl:mark-yank-urls:activate_mark_mode
rofi.pid: /run/user/1000/rofi.pid
rofi.modi: run
rofi.font: monofur for powerline 16
rofi.width: 100
rofi.lines: 5
rofi.columns: 1
rofi.opacity: 80
! rofi.color-enabled: true
! bg fg altbg hlbg hlfg
! rofi.normal: #1d2021, #ebdbb2, #1d2021, #ebdbb2, #1d2021
! rofi.urgent: #1d2021, #ebdbb2, #1d2021, #ebdbb2, #1d2021
! rofi.active: #1d2021, #ebdbb2, #1d2021, #ebdbb2, #1d2021
! rofi.color-window: #1d2021, #1d2021
rofi.fg: #ebdbb2
rofi.bg: #1d2021
rofi.hlfg: #1d2021
rofi.hlbg: #ebdbb2
rofi.bw: 0
rofi.location: 2
rofi.padding: 100
rofi.fuzzy: false

View file

@ -0,0 +1,59 @@
separator=false
separator_block_width=5
border_top=0
border_left=0
border_right=0
border_bottom=4
#[updates]
#command=$HOME/scripts/updates.sh
#interval=60
#signal=2
#urgent=true
[window]
command=xtitle -s
interval=persist
separator=true
separator_block_width=45
border=#ebdbb2
[volume]
label= 
command=[[ -z "${BLOCK_BUTTON}" ]] || ( [[ "${BLOCK_BUTTON}" == "1" ]] && ((/usr/bin/pavucontrol -t 3 || true) && $HOME/src/scripts/volume_control.py signal) || $HOME/src/scripts/volume_control.py toggle ); $HOME/src/scripts/volume_control.py i3blocks
interval=5
signal=1
markup=pango
border=#cc241d
[brightness]
label= 
command=printf "%.0f " $(xbacklight -get)
interval=10
signal=2
border=#d79921
[temperature]
label= 
command=echo "$($HOME/src/scripts/temperature.sh 'Core 0') $($HOME/src/scripts/temperature.sh 'Core 1') "
interval=5
border=#b16286
[wireless]
label= 
command=[[ -z "$(iwgetid -r)" ]] || echo "$(iwgetid -r) "
interval=2
border=#98971a
[battery]
command=$HOME/src/scripts/battery.sh
interval=10
border=#458588
[time]
label= 
command=echo "`date +'%Y-%m-%d'` <b>`date +'%H:%M'`</b> "; [[ "${BLOCK_BUTTON}" = "1" ]] && notify-send -t 5000 "`cal`" &
interval=1
markup=pango
border=#928374
separator_block_width=0

View file

@ -10,6 +10,7 @@ Plug 'majutsushi/tagbar'
Plug 'freitass/todo.txt-vim' Plug 'freitass/todo.txt-vim'
Plug 'jnurmine/zenburn' Plug 'jnurmine/zenburn'
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'
Plug 'jimmyhchan/dustjs.vim'
call plug#end() call plug#end()

312
dot.i3/config Normal file
View file

@ -0,0 +1,312 @@
# vim:filetype=i3
# i3 config file (v4)
set $mod Mod4
set $editor st
# fake-outputs 1280x1440+0+0,1280x1440+1280+0
set $black #212121
set $darkblack #000000
set $red #fb4934
set $darkred #cc241d
set $green #b8bb26
set $darkgreen #98971a
set $yellow #fabd2f
set $darkyellow #d79921
set $blue #83a598
set $darkblue #458588
set $magenta #d3869b
set $darkmagenta #b16286
set $cyan #8ec07c
set $darkcyan #689d6a
set $white #ebdbb2
set $darkwhite #a89984
# set $background #000000
set $transparent #1d202100
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 $default_gaps_inner 10
set $default_gaps_outer 5
gaps inner $default_gaps_inner
gaps outer $default_gaps_outer
workspace $ws1 gaps inner 0
workspace $ws1 gaps outer 0
workspace $ws9 gaps inner 0
workspace $ws9 gaps outer 0
workspace $ws10 gaps inner 0
workspace $ws10 gaps outer 0
workspace_auto_back_and_forth yes
force_display_urgency_hint 0 ms
focus_on_window_activation urgent
floating_minimum_size -1 x -1
floating_maximum_size -1 x -1
font pango:monofur for powerline 14, FontAwesome 12
# BORDER BACKGROUND TEXT INDICATOR CHILD_BORDER
client.focused $yellow $yellow $black $yellow $yellow
client.unfocused $black $black $white $black $darkyellow
client.focused_inactive $black $black $white $black $darkyellow
client.urgent $darkred $darkred $black $darkred $darkred
client.background $black
floating_modifier $mod
bindsym $mod+Return exec $editor
bindsym $mod+Shift+Return exec $editor --name __scratchpad
bindsym $mod+q kill
bindsym $mod+p exec --no-startup-id rofi -show run
bindsym $mod+Left focus left
bindsym $mod+Right focus right
bindsym $mod+Up focus up
bindsym $mod+Down focus down
bindsym $mod+Shift+Left move left 35px
bindsym $mod+Shift+Down move down 35px
bindsym $mod+Shift+Up move up 35px
bindsym $mod+Shift+Right move right 35px
bindsym $mod+h split h
bindsym $mod+v split v
bindsym $mod+f fullscreen
bindsym $mod+g fullscreen global
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
bindsym $mod+Shift+a focus child
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 $ws10
bindsym $mod+Tab workspace back_and_forth
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+Shift+plus scratchpad show
bindsym $mod+Shift+s sticky toggle
# put YouTube into fullscreen and execute this for media mode
bindsym $mod+y fullscreen disable; floating enable; resize set 400 300; sticky enable; move window to position 1515 20
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
bindsym XF86AudioLowerVolume exec --no-startup-id $HOME/scripts/volume_control.py down 5
bindsym XF86AudioRaiseVolume exec --no-startup-id $HOME/scripts/volume_control.py up 5
bindsym XF86AudioMute exec --no-startup-id $HOME/scripts/volume_control.py toggle
bindsym $mod+Shift+v exec --no-startup-id "killall pavucontrol; $HOME/scripts/fullscreen_wrap.sh pavucontrol -t 1"
bindsym XF86MonBrightnessDown exec --no-startup-id ${HOME}/scripts/backlight.sh -dec 10
bindsym XF86MonBrightnessUp exec --no-startup-id ${HOME}/scripts/backlight.sh -inc 10
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
# screenshot
bindsym --release Print exec --no-startup-id "maim -p 0 -c 0.96,0.5,0.09 $HOME/See/screenshot-$(date +%Y-%m-%d_%H-%M-%S).png"
bindsym --release Shift+Print exec --no-startup-id "maim -s -p 0 -c 0.96,0.5,0.09 $HOME/See/screenshot-$(date +%Y-%m-%d_%H-%M-%S).png"
bindsym $mod+n exec --no-startup-id thunar
set $mode_resize <span> </span><span background='#fabd2f' foreground='#000000'> resize </span> <span foreground='#ebdbb2'>l</span>eft <span foreground='#ebdbb2'>r</span>ight <span foreground='#ebdbb2'>u</span>p <span foreground='#ebdbb2'>d</span>own
bindsym $mod+r mode "$mode_resize"
mode --pango_markup "$mode_resize" {
bindsym Left resize shrink width 10 px or 1 ppt
bindsym Down resize grow height 10 px or 1 ppt
bindsym Up resize shrink height 10 px or 1 ppt
bindsym Right resize grow width 10 px or 1 ppt
bindsym Shift+Left resize shrink width 20 px or 5 ppt
bindsym Shift+Down resize grow height 20 px or 5 ppt
bindsym Shift+Up resize shrink height 20 px or 5 ppt
bindsym Shift+Right resize grow width 20 px or 5 ppt
bindsym s mode "default", exec --no-startup-id $HOME/scripts/slopsize.sh
bindsym Return mode "default"
bindsym Escape mode "default"
}
set $mode_power <span> </span><span background='#fabd2f' foreground='#000000'> power </span> <span foreground='#ebdbb2'>l</span>ock <span foreground='#ebdbb2'>e</span>xit <span foreground='#ebdbb2'>s</span>uspend <span foreground='#ebdbb2'>r</span>eboot <span foreground='#ebdbb2'>p</span>oweroff
mode --pango_markup "$mode_power" {
bindsym l mode "default", exec --no-startup-id i3lock -c '000000' -i ${HOME}/See/lock.png -d
bindsym e mode "default", exec --no-startup-id i3-msg exit
bindsym s mode "default", exec --no-startup-id zzz
bindsym h mode "default", exec --no-startup-id ZZZ
bindsym r mode "default", exec --no-startup-id shutdown -r now
bindsym p mode "default", exec --no-startup-id shutdown -P now
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+l exec i3lock -c '000000' -i ${HOME}/See/lock.png -d
bindsym $mod+Control+l mode "$mode_power"
bindsym Mod1+Control+l mode "$mode_power"
set $mode_gaps <span> </span><span background='#fabd2f' foreground='#000000'> gaps </span> <span foreground='#ebdbb2'>i</span>nner <span foreground='#ebdbb2'>o</span>uter <span foreground='#ebdbb2'>0 d</span>
set $mode_gaps_outer <span> </span><span background='#fabd2f' foreground='#000000'> outer gaps </span> <span foreground='#ebdbb2'>+ - 0 d</span>
set $mode_gaps_inner <span> </span><span background='#fabd2f' foreground='#000000'> inner gaps </span> <span foreground='#ebdbb2'>+ - 0 d</span>
bindsym $mod+Shift+g mode "$mode_gaps"
mode --pango_markup "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym 0 mode "default", exec --no-startup-id i3-msg "gaps inner current set 0" && i3-msg "gaps outer current set 0"
bindsym d mode "default", exec --no-startup-id i3-msg "gaps inner current set $default_gaps_inner" && i3-msg "gaps outer current set $default_gaps_outer"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode --pango_markup "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 mode "default", gaps inner current set 0
bindsym d mode "default", gaps inner current set $default_gaps_inner
bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 mode "default", gaps inner all set 0
bindsym Shift+d mode "default", gaps inner all set $default_gaps_inner
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode --pango_markup "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 mode "default", gaps outer current set 0
bindsym d mode "default", gaps outer current set $default_gaps_outer
bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 mode "default", gaps outer all set 0
bindsym Shift+d mode "default", gaps outer all set $default_gaps_outer
bindsym Return mode "default"
bindsym Escape mode "default"
}
set $mode_brightness <span> </span><span background='#fabd2f' foreground='#000000'> brightness </span> <span foreground='#ebdbb2'>+</span> increase <span foreground='#ebdbb2'>-</span> decrease
bindsym $mod+Shift+b mode "$mode_brightness"
mode --pango_markup "$mode_brightness" {
bindsym plus exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -inc 10
bindsym minus exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -dec 10
bindsym Shift+plus exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -inc 1
bindsym Shift+minus exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -dec 1
bindsym 0 mode "default", exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -set 100
bindsym 1 mode "default", exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -set 10
bindsym 2 mode "default", exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -set 20
bindsym 3 mode "default", exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -set 30
bindsym 4 mode "default", exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -set 40
bindsym 5 mode "default", exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -set 50
bindsym 6 mode "default", exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -set 60
bindsym 7 mode "default", exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -set 70
bindsym 8 mode "default", exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -set 80
bindsym 9 mode "default", exec --no-startup-id ${HOME}/src/scripts/backlight.sh -time 50 -set 90
bindsym Return mode "default"
bindsym Escape mode "default"
}
# fix graphics glitch
new_window none
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [class="(?i)gsimplecal"] floating enable, move position mouse
for_window [class="(?i)qemu-system"] floating enable
for_window [class="(?i)VirtualBox" title="(?i)Manager"] floating enable
for_window [class="(?i)blueman"] floating enable
for_window [instance="sun-awt-X11-XFramePeer"] floating enable
for_window [instance="__scratchpad"] floating enable
for_window [instance="__nmtui"] floating enable
for_window [class="(?i)pavucontrol"] floating enable, border normal, move position mouse
assign [class="(?i)chrome"] $ws1
assign [class="(?i)eclipse" window_type="splash"] $ws3
assign [class="(?i)eclipse" window_type="normal"] $ws3
assign [class="(?i)thunderbird"] $ws9
bar {
# verbose yes
status_command i3blocks
i3bar_command i3bar -t
position top
font pango:Hack 16, FontAwesome 15
strip_workspace_numbers yes
separator_symbol "■"
bindsym button4 nop
bindsym button5 nop
tray_output eDP1
tray_output LVDS-0
tray_padding 0
height 40
colors {
statusline $white
background $transparent
separator $yellow
# BORDER BACKGROUND TEXT
focused_workspace $transparent $transparent $yellow
inactive_workspace $transparent $transparent $white
active_workspace $transparent $transparent $white
urgent_workspace $darkred $darkred $transparent
binding_mode $transparent $transparent $yellow
}
}
# AUTOSTART
exec --no-startup-id compton -b
exec --no-startup-id dunst &
exec --no-startup-id blueman-applet &
exec --no-startup-id nm-applet &
exec --no-startup-id xedgewarp -b
exec_always --no-startup-id feh --bg-fill $HOME/.config/wallpapers/octocat.jpg

View file

@ -11,6 +11,7 @@ export QT_DEVICE_PIXEL_RATIO=2
alias xi="sudo xbps-install" alias xi="sudo xbps-install"
alias xq="xbps-query -Rs" alias xq="xbps-query -Rs"
alias xqi="xbps-query -RS" alias xqi="xbps-query -RS"
alias xql="xbps-query -s"
test "$TERM" = "screen" && export TERM=screen-256color test "$TERM" = "screen" && export TERM=screen-256color
test `tty` = /dev/tty1 -a $USER != root -a ! -e /tmp/.X0-lock && startx && exit test `tty` = /dev/tty1 -a $USER != root -a ! -e /tmp/.X0-lock && startx && exit

View file

@ -1,5 +1,7 @@
setxkbmap de setxkbmap de
xset -b xset -b
xrdb -merge .Xdefaults
xsetroot -solid black -cursor_name left_ptr
synclient RightButtonAreaLeft=4501 synclient RightButtonAreaLeft=4501
synclient RightButtonAreaRight=0 synclient RightButtonAreaRight=0
@ -14,6 +16,4 @@ syndaemon -Rtki 1 & # disable touchpad while typing
redshift -l 52.3:13.3 & # no eyestrain please redshift -l 52.3:13.3 & # no eyestrain please
[ -x ~/.fehbg ] && ~/.fehbg [ -x ~/.fehbg ] && ~/.fehbg
compton --config ~/.config/comptonrc -b compton --config ~/.config/comptonrc -b
exec sxhkd & # shortcuts exec i3
exec panel & # panel
exec bspwm

View file

@ -1,91 +0,0 @@
#
# bspwm hotkeys
#
super + shift + q
bspc quit
super + q
bspc window -c
super + t
bspc desktop -l next
super + b
bspc desktop -B
super + {s,f}
bspc window -t {floating,fullscreen}
super + {grave,Tab}
bspc {window,desktop} -f last
super + apostrophe
bspc window -s last
super + {o,i}
bspc control --record-history off; \
bspc window {older,newer} -f; \
bspc control --record-history on
super + y
bspc window -w last.manual
super + m
bspc window -s biggest
super + {_,shift + }{h,j,k,l}
bspc window -{f,s} {left,down,up,right}
super + {_,shift + }c
bspc window -f {next,prev}
super + {comma,period}
bspc desktop -C {backward,forward}
super + bracket{left,right}
bspc desktop -f {prev,next}
super + ctrl + {h,j,k,l}
bspc window -p {left,down,up,right}
super + ctrl + {_,shift + }space
bspc {window -p cancel,desktop -c}
super + alt + {h,j,k,l}
bspc window -e {left -10,down +10,up -10,right +10}
super + alt + shift + {h,j,k,l}
bspc window -e {right -10,up +10,down -10,left +10}
super + ctrl + {1-9}
bspc window -r 0.{1-9}
super + {_,shift + }{1-9,0}
bspc {desktop -f,window -d} ^{1-9,10}
~button1
bspc pointer -g focus
super + button{1-3}
bspc pointer -g {move,resize_side,resize_corner}
super + !button{1-3}
bspc pointer -t %i %i
super + @button{1-3}
bspc pointer -u
#
# wm independent hotkeys
#
super + Return
urxvt
super + p
rofi -show run
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd