modular i3
This commit is contained in:
parent
fc92b06ee2
commit
365b995c3a
3
Makefile
3
Makefile
@ -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
|
||||
|
@ -1,3 +1,13 @@
|
||||
#!/bin/bash
|
||||
COMMON=~/.dotfiles/i3/conf/common/
|
||||
CLIENT=~/.dotfiles/i3/conf/client/$(hostname)/
|
||||
|
||||
if [ -f "~/.dotfiles/i3/config" ]; then
|
||||
rm ~/.dotfiles/i3/config
|
||||
cat ~/.dotfiles/i3/conf/client/$(hostname)/head ~/.dotfiles/i3/conf/common/base > ~/.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
|
||||
|
21
i3/conf/client/Cyb3r/assignments
Normal file
21
i3/conf/client/Cyb3r/assignments
Normal 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
|
29
i3/conf/client/Cyb3r/header
Normal file
29
i3/conf/client/Cyb3r/header
Normal 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
|
@ -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
|
||||
|
16
i3/conf/client/default/assignments
Normal file
16
i3/conf/client/default/assignments
Normal 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
|
25
i3/conf/client/default/header
Normal file
25
i3/conf/client/default/header
Normal 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"
|
@ -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
5
i3/conf/common/footer
Normal 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
|
Loading…
Reference in New Issue
Block a user