Files
dots/laptop-nord/.config/i3/config
2020-09-02 13:13:08 +02:00

162 lines
5.8 KiB
Plaintext

# ▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄
# █ █▄█ █ █ ▄ █ █ █ ██ █ █ █ █ █ █ █ █ █ █ █ █ █
# █ █ ▄ █ █ █ █ █ █▄▄██ ▄▄▄▄▄█ █ █▄▄▄ █ █ █ ▄ █ █▄█ █ ▄▄▄█ █ ▄▄▄▄█
# █ █ █▄█ █ █▄▄█▄█ ▄▄█ █ █▄▄▄▄▄ █ █▄▄▄█ █ █ ▄▄█ █ █ █ █ █▄▄▄█ █ █ ▄▄
# █ █ █ ▄▄ █ █ █▄▄▄▄▄ █ █ █▄▄▄ █ █ █ █ █▄█ █ ▄ █ ▄▄▄█ █ █ █ █
# █ ██▄██ █ ▄ █ █ █ █ █▄▄ ▄▄▄▄▄█ █ █ █▄▄▄█ █ █ █▄▄█ █ █ █ █ █ █ █ █▄▄█ █
# █▄█ █▄█▄█ █▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█ █▄▄▄▄▄▄▄█ █▄▄▄█▄▄▄▄▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄█ █▄▄█▄▄▄█ █▄▄▄█▄▄▄▄▄▄▄█
# Set Mod Keys
set $mod Mod4
floating_modifier $mod
# Font for Window Titles
font pango:FiraCode Nerd Font Mono 8
# ============================== Keybinds (except workspaces)
#Terminal
bindsym $mod+Return exec --no-startup-id alacritty
bindsym $mod+Ctrl+Return exec --no-startup-id xterm
# Leaving
bindsym $mod+Shift+BackSpace exec "~/scripts/lock-laptop.sh"
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Logout?' -B 'Yes!' 'i3-msg exit'"
# Config refresh
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
# Windows
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
bindsym $mod+Ctrl+l resize grow width 10 px
bindsym $mod+Ctrl+h resize shrink width 10 px
bindsym $mod+Ctrl+j resize shrink height 10 px
bindsym $mod+Ctrl+k resize grow height 10 px
bindsym $mod+Shift+q kill
bindsym $mod+f fullscreen toggle
bindsym $mod+Shift+space floating toggle
bindsym $mod+s layout toggle stacking splith
# Create splits just like in vim
bindsym $mod+Shift+s split v
bindsym $mod+Shift+v split h
bindsym $mod+n workspace next
bindsym $mod+p workspace prev
# Rofi and dmenu
bindsym $mod+d exec "~/.config/rofi/launchers-git/launcher.sh"
set $nord0d '#2e3440'
set $frost2d '#eceff4'
set $greend '#A3BE8C'
bindsym $mod+Shift+d exec "dmenu_run -fn 'FiraCode Nerd Font Mono' -nb '#2e3440' -sb '#a3be8c' -nf '#eceff4' -sf '#2e3440'"
# Screenhot
bindsym $mod+Shift+p exec "flameshot gui"
# Screen brightness with light
bindsym XF86MonBrightnessUp exec light -A 5 # increase
bindsym XF86MonBrightnessDown exec light -U 5 # decrease
# Volume witg pactl
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +2%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -2%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
# Music Control with playerctl
bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# ======================================== Workspaces
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"
# Move to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# Move window to workspace
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
# ============================== Design
# Remove title
new_window 1pixel
# Set Border
for_window [class="^.*"] border pixel 0
set $nord0 "#2e3440"
set $blue1 "#88c0d0"
set $blue3 "#5E81AC"
set $frost0 "#d8dee9"
set $frost2 "#eceff4"
set $green "#A3BE8C"
set $red "#bf616a"
# class border backgr.text indic. child_border
client.focused $blue1 $blue1 $nord0 $nord0 $nord0
client.focused_inactive $blue1 $blue1 $nord0 $nord0 $nord0
client.unfocused $nord0 $nord0 $frost0 $blue1 $nord0
client.urgent $red $red $frost2 $red $red
client.background #ffffff
# i3-gaps
gaps inner 8
gaps top 35 # polybar height + gaps inner
# ============================== Autostart
# Keyboard layout
exec setxkbmap -layout za
# Programs
exec feh --bg-scale $HOME/data/wallpaper/wallpaper.png
exec nm-applet &
exec dunst &
exec picom --experimental-backends
exec --no-startup-id ~/.config/polybar/launch.sh laptop &amp