modular i3

This commit is contained in:
Tobias Manske 2018-04-05 16:17:46 +02:00
parent fc92b06ee2
commit 365b995c3a
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F
12 changed files with 117 additions and 61 deletions

View File

@ -29,6 +29,7 @@ zsh:
i3: dep
ln -s ~/.dotfiles/i3 ~/.config/i3
cd i3/conf/ && ./build.sh
.PHONY: clean zsh git vim tmux i3
clean:
@ -40,6 +41,6 @@ dep:
cd /tmp/powerline-font && makepkg -Acs && sudo pacman -U *.pkg.*
git clone https://aur.archlinux.org/bumblebee-status-git.git /tmp/bumblebee
cd /tmp/bumblebee && makepkg -Acs && sudo pacman -U *.pkg.*
sudo pacman -S awesome-terminal-fonts
sudo pacman -S awesome-terminal-fonts perl-anyevent-i3 perl-json-xs
all: clean tmux vim git zsh i3 xresources

View File

@ -1,3 +1,13 @@
#!/bin/bash
rm ~/.dotfiles/i3/config
cat ~/.dotfiles/i3/conf/client/$(hostname)/head ~/.dotfiles/i3/conf/common/base > ~/.dotfiles/i3/config
COMMON=~/.dotfiles/i3/conf/common/
CLIENT=~/.dotfiles/i3/conf/client/$(hostname)/
if [ -f "~/.dotfiles/i3/config" ]; then
rm ~/.dotfiles/i3/config
fi
if [ ! -d $CLIENT ]; then
cp -r ~/.dotfiles/i3/conf/client/default ~/.dotfiles/i3/conf/client/$(hostname)
fi
cat ${CLIENT}header ${COMMON}base ${CLIENT}assignments ${COMMON}footer > ~/.dotfiles/i3/config

View File

@ -0,0 +1,21 @@
# {{{ ASSIGNMENTS }}}
# Browser
# workspace $ws1 gaps outer 0
# workspace $ws1 gaps inner 0
assign [class="Firefox"] $ws1
# Terminal
assign [class="URxvt"] $ws2
# CHAT
assign [class="discord"] $ws4
assign [class="TelegramDesktop"] $ws4
exec_always 'i3-msg "workspace number 4; append_layout ~/.layout/ws-4.json"'
# Mail
workspace $ws5 gaps outer 0
workspace $ws5 gaps inner 0
assign [class="Thunderbird"] $ws5
# KeepassXC
assign [class="keepassxc"] $ws10

View File

@ -0,0 +1,29 @@
set $CLIENT_BUMBLEBEE -m mpd load memory disk nic caffeine amixer datetime -p nic.states=^down -t greyish-powerline
# {{{ VARIABLES }}}
set $mod Mod4
set $TERMINAL urxvt
# gaps
set $gap_outer 25
set $gap_inner 15
set $ws1 "1 "
# Terminal
set $ws2 "2 "
# Work
set $ws3 "3 "
# Chat
set $ws4 "4 "
# Mail
set $ws5 "5 "
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# {{{ SPECIAL KEYBINDINGS }}}
bindsym $mod+m move workspace to output right

View File

@ -1 +1 @@
set $CLIENT_BUMBLEBEE "-m disk nic sensors battery caffeine amixer brightness datetime -p battery.device=BAT0,BAT1 brightness.device_path=/sys/class/backlight/acpi_video0 disk.format={left} nic.states=^down sensors.path=/sys/class/thermal/thermal_zone2/temp -t greyish-powerline"
set $CLIENT_BUMBLEBEE -m disk nic sensors battery caffeine amixer brightness datetime -p battery.device=BAT0,BAT1 brightness.device_path=/sys/class/backlight/acpi_video0 disk.format={left} nic.states=^down sensors.path=/sys/class/thermal/thermal_zone2/temp -t greyish-powerline

View File

@ -0,0 +1,16 @@
# {{{ WORKSPACES }}}
# Browser
workspace $ws1 gaps outer 0
workspace $ws1 gaps inner 0
assign [class="Firefox"] $ws1
# Terminal
assign [class="URxvt"] $ws2
# Mail
workspace $ws5 gaps outer 0
workspace $ws5 gaps inner 0
assign [class="Thunderbird"] $ws5
# KeepassXC
assign [class="keepassxc"] $ws10

View File

@ -0,0 +1,25 @@
set $CLIENT_BUMBLEBEE -m disk nic sensors battery caffeine amixer brightness datetime -p battery.device=BAT0,BAT1 brightness.device_path=/sys/class/backlight/acpi_video0 disk.format={left} nic.states=^down sensors.path=/sys/class/thermal/thermal_zone2/temp -t greyish-powerline
# {{{ VARIABLES }}}
set $mod Mod4
set $TERMINAL urxvt
# gaps
set $gap_outer 25
set $gap_inner 15
set $ws1 "1 "
# Terminal
set $ws2 "2 "
# Work
set $ws3 "3 "
set $ws4 "4"
# Mail
set $ws5 "5 "
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"

View File

@ -10,32 +10,6 @@
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# {{{ VARIABLES }}}
set $mod Mod4
set $TERMINAL urxvt
# gaps
set $gap_outer 25
set $gap_inner 15
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
# Browser
set $ws1 "1 "
# Terminal
set $ws2 "2 "
# Work
set $ws3 "3 "
set $ws4 "4"
# Mail
set $ws5 "5 "
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# {{{ FONT }}}
font pango:Hack 8
@ -145,10 +119,10 @@ floating_modifier $mod
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 2%+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 2%-
bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86AudioStop exec --no-startup-id playerctl stop
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
bindsym XF86AudioNext exec --no-startup-id mpc next
bindsym XF86AudioPrev exec --no-startup-id mpc prev
bindsym XF86AudioStop exec --no-startup-id mpc stop
# Screensaver || ThinkVantage
bindsym XF86ScreenSaver exec xscreensaver-command -lock
@ -215,28 +189,3 @@ bar {
default_border none
default_floating_border normal
# {{{ WORKSPACES }}}
# Browser
workspace $ws1 gaps outer 0
workspace $ws1 gaps inner 0
assign [class="Firefox"] $ws1
# Terminal
assign [class="URxvt"] $ws2
# Mail
workspace $ws5 gaps outer 0
workspace $ws5 gaps inner 0
assign [class="Thunderbird"] $ws5
# KeepassXC
assign [class="keepassxc"] $ws10
# {{{ KEYBOARD MAP }}}
exec_always setxkbmap de
# {{{ AUTOSTART }}}
exec ~/.config/autorun.sh

5
i3/conf/common/footer Normal file
View File

@ -0,0 +1,5 @@
# {{{ KEYBOARD MAP }}}
exec_always setxkbmap de
# {{{ AUTOSTART }}}
exec ~/.config/autorun.sh

Binary file not shown.

@ -1 +1 @@
Subproject commit 6f9b9cd2d93872cef60e3ea7f7ae89598569ed25
Subproject commit bcb40aca696a8f80d67e1c97455afe3e2eb76dee

@ -1 +1 @@
Subproject commit 34f7125ae46e5123bedad03e08027332d1186186
Subproject commit 70d880b492b2f61e5304d3cce9bd1432c89cc8f9