Files
dots/files/.config/i3/config
Marco Thomas 885bf5fdc6 Update vimrc
2021-02-02 07:59:43 +01:00

178 lines
5.1 KiB
Plaintext

# ___ _____
# / (_)___ /
# / /| | |_ \
# _ / / | |___) |
# (_)_/ |_|____/
#
# ~ M. Thomas
# ============================== General Setup
# Set Mod Keys
set $mod Mod4
floating_modifier $mod
# Font for Window Titles
font pango:Product Sans 10
# ============================== Keybinds (except workspaces)
#Terminal
bindsym $mod+Return exec --no-startup-id alacritty
bindsym $mod+Ctrl+Return exec --no-startup-id xterm
# 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+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
# dmenu
set $fg '#ffffff'
set $bg '#000000'
set $accent '#98c379'
set $font 'Product Sans:pixelsize=15'
bindsym $mod+d exec "dmenu_run -fn $font -nb $bg -sb $accent -nf $fg -sf $bg"
bindsym $mod+space exec "dmenu_run -fn $font -nb $bg -sb $accent -nf $fg -sf $bg"
# 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 with 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
# ============================== Monitor
bindsym $mod+Ctrl+Left move workspace to output left
bindsym $mod+Ctrl+Right move workspace to output right
bindsym $mod+Ctrl+h move workspace to output left
bindsym $mod+Ctrl+l move workspace to output right
# ======================================== Open Applications
bindsym $mod+e exec alacritty -e ranger
bindsym $mod+Ctrl+c exec google-calendar-dark
bindsym $mod+Ctrl+d exec discord
bindsym $mod+Ctrl+Shift+d exec pkill Discord
bindsym $mod+Ctrl+f exec firefox-nightly
bindsym $mod+Ctrl+m exec thunderbird
bindsym $mod+Ctrl+n exec notion-app
bindsym $mod+Ctrl+p exec pavucontrol
bindsym $mod+Ctrl+s exec spotify
bindsym $mod+Ctrl+t exec telegram-desktop
# ======================================== Shutdown
bindsym $mod+BackSpace exec "~/scripts/lock.sh"
bindsym $mod+Shift+BackSpace exec "i3-nagbar -t warning -m 'Logout?' -B 'Yes!' 'i3-msg exit'"
# ======================================== 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
for_window [class="Alacritty"] border pixel 0
for_window [class="xterm"] border pixel 1
set $red "#e06c75"
set $termbg "#1C1B1D"
set $border "#D8D8D8"
set $acc "#98C379"
# Class Border Backgr. Text Indic. Child_border
client.focused $acc $termbg #ffffff $border $border
client.focused_inactive $acc $termbg #ffffff $termbg $termbg
client.unfocused $termbg $termbg #ffffff $termbg $termbg
client.urgent $red $termbg #ffffff $red $red
client.background $border
# i3-gaps
gaps inner 4
smart_gaps on
# ============================== Start
exec setxkbmap -layout za
# Launch Programs at start
exec fcitx -d
exec nextcloud
exec dunst
exec picom
exec nm-applet
exec feh --bg-scale $HOME/data/nextcloud/Wallpaper/wallpaper.png
exec ~/scripts/fix_screens.sh
exec ~/scripts/polybar.sh