adding i3 configs
parent
9080d0dbd0
commit
878a2216d4
|
@ -0,0 +1,219 @@
|
||||||
|
# set modifier
|
||||||
|
set $super Mod4
|
||||||
|
set $alt Mod1
|
||||||
|
|
||||||
|
# set font
|
||||||
|
font pango: Noto Sans 8
|
||||||
|
|
||||||
|
# Use Mouse+$super to drag floating windows to their wanted position
|
||||||
|
floating_modifier $super
|
||||||
|
|
||||||
|
#autostart
|
||||||
|
exec --no-startup-id ~/.local/bin/autostart_i3.sh
|
||||||
|
|
||||||
|
|
||||||
|
### KEYBINDINGS ### -------------------------------------------------------------
|
||||||
|
|
||||||
|
# screenshot
|
||||||
|
bindsym $super+ctrl+s exec scrot '/home/random/%Y-%m-%d_%H%M%S_$wx$h_scrot.jpg'
|
||||||
|
|
||||||
|
# start a terminal
|
||||||
|
bindsym $super+Return exec i3-sensible-terminal
|
||||||
|
|
||||||
|
# start dmenu (a program launcher)
|
||||||
|
bindsym $super+Shift+r exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'"
|
||||||
|
bindsym $super+r exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'
|
||||||
|
#bindsym $super+r exec dmenu_run -fn 'Noto Sans 8'
|
||||||
|
|
||||||
|
# start a filemanager
|
||||||
|
#bindsym $super+e exec pcmanfm
|
||||||
|
bindsym $super+e exec caja
|
||||||
|
|
||||||
|
# start a emacs client
|
||||||
|
bindsym $super+ctrl+e exec emacsclient -c
|
||||||
|
|
||||||
|
# kill focused window
|
||||||
|
bindsym $super+c kill
|
||||||
|
#bindsym $alt+F4 kill
|
||||||
|
|
||||||
|
# change focus
|
||||||
|
bindsym $super+j focus left
|
||||||
|
bindsym $super+l focus down
|
||||||
|
bindsym $super+i focus up
|
||||||
|
bindsym $super+k focus right
|
||||||
|
|
||||||
|
# split in horizontal orientation
|
||||||
|
bindsym $super+h split h
|
||||||
|
|
||||||
|
# split in vertical orientation
|
||||||
|
bindsym $super+v split v
|
||||||
|
|
||||||
|
# enter fullscreen mode for the focused container
|
||||||
|
bindsym $super+f fullscreen toggle
|
||||||
|
|
||||||
|
# change container layout split
|
||||||
|
# bindsym $super+s layout toggle split
|
||||||
|
|
||||||
|
# toggle tiling / floating
|
||||||
|
bindsym $super+space floating toggle
|
||||||
|
|
||||||
|
# change focus between tiling / floating windows
|
||||||
|
bindsym $super+Shift+space focus mode_toggle
|
||||||
|
|
||||||
|
# switch to workspace
|
||||||
|
#bindsym $alt+Control+Right workspace next
|
||||||
|
#bindsym $alt+Control+Left workspace prev
|
||||||
|
bindsym $super+1 workspace 1
|
||||||
|
bindsym $super+2 workspace 2
|
||||||
|
bindsym $super+3 workspace 3
|
||||||
|
bindsym $super+4 workspace 4
|
||||||
|
bindsym $super+5 workspace 5
|
||||||
|
bindsym $super+6 workspace 6
|
||||||
|
bindsym $super+7 workspace 7
|
||||||
|
bindsym $super+8 workspace 8
|
||||||
|
bindsym $super+9 workspace 9
|
||||||
|
|
||||||
|
# move focused container to workspace
|
||||||
|
bindsym $super+Shift+1 move container to workspace 1
|
||||||
|
bindsym $super+Shift+2 move container to workspace 2
|
||||||
|
bindsym $super+Shift+3 move container to workspace 3
|
||||||
|
bindsym $super+Shift+4 move container to workspace 4
|
||||||
|
bindsym $super+Shift+5 move container to workspace 5
|
||||||
|
bindsym $super+Shift+6 move container to workspace 6
|
||||||
|
bindsym $super+Shift+7 move container to workspace 7
|
||||||
|
bindsym $super+Shift+8 move container to workspace 8
|
||||||
|
bindsym $super+Shift+9 move container to workspace 9
|
||||||
|
|
||||||
|
|
||||||
|
# move focused window
|
||||||
|
bindsym $super+Shift+j move left
|
||||||
|
bindsym $super+Shift+l move down
|
||||||
|
bindsym $super+Shift+i move up
|
||||||
|
bindsym $super+Shift+k move right
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# change container layout (stacked, tabbed, toggle split)
|
||||||
|
bindsym $super+u layout stacking
|
||||||
|
bindsym $super+t layout tabbed
|
||||||
|
bindsym $super+y layout toggle split
|
||||||
|
|
||||||
|
# toggle tiling / floating
|
||||||
|
#bindsym $mod+Shift+65 floating toggle
|
||||||
|
|
||||||
|
# change focus between tiling / floating windows
|
||||||
|
#bindsym $mod+65 focus mode_toggle
|
||||||
|
|
||||||
|
# focus the parent container
|
||||||
|
#bindsym $mod+38 focus parent
|
||||||
|
|
||||||
|
# focus the child container
|
||||||
|
#bindsym $mod+d focus child
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
|
bindsym $super+Control+r restart
|
||||||
|
|
||||||
|
# exit i3
|
||||||
|
bindsym $super+q exec "i3-nagbar -t warning -m 'Really, exit?' -b 'Yes' 'i3-msg exit'"
|
||||||
|
|
||||||
|
# resize window (you can also use the mouse for that)
|
||||||
|
mode "resize" {
|
||||||
|
bindsym j resize shrink width 5 px or 5 ppt
|
||||||
|
bindsym k resize grow height 5 px or 5 ppt
|
||||||
|
bindsym i resize shrink height 5 px or 5 ppt
|
||||||
|
bindsym l resize grow width 5 px or 5 ppt
|
||||||
|
bindsym Return mode "default"
|
||||||
|
}
|
||||||
|
bindsym $super+Control+Shift+r mode "resize"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#change volume
|
||||||
|
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+
|
||||||
|
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%-
|
||||||
|
bindsym XF86AudioMute exec amixer set Master toggle
|
||||||
|
bindsym XF86AudioMicMute exec amixer set Capture toggle
|
||||||
|
|
||||||
|
# change brightnextt
|
||||||
|
bindsym XF86MonBrightnessDown exec xbacklight - 10
|
||||||
|
bindsym XF86MonBrightnessUp exec xbacklight + 10
|
||||||
|
|
||||||
|
|
||||||
|
### BORDERS
|
||||||
|
|
||||||
|
# pixel = no titlebar, normal = titlebar!
|
||||||
|
default_border pixel 1
|
||||||
|
default_floating_border pixel 1
|
||||||
|
hide_edge_borders smart
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### WINDOW RULES ### ---------------------------------------------------------------
|
||||||
|
|
||||||
|
# window rules, you can find the window class using xprop
|
||||||
|
# for_window [class=".*"] border pixel 4
|
||||||
|
# assign [class=URxvt] 1
|
||||||
|
# assign [class=Firefox|Transmission-gtk] 2
|
||||||
|
# assign [class=Thunar|File-roller] 3
|
||||||
|
# assign [class=Geany|Evince|Gucharmap|Soffice|libreoffice*] 4
|
||||||
|
# assign [class=Audacity|Vlc|mpv|Ghb|Xfburn|Gimp*|Inkscape] 5
|
||||||
|
# assign [class=Lxappearance|System-config-printer.py|Lxtask|GParted|Pavucontrol|Exo-helper*|Lxrandr|Arandr] 6
|
||||||
|
# for_window [class=Viewnior|feh|Audacious|File-roller|Lxappearance|Lxtask|Pavucontrol] floating enable
|
||||||
|
# for_window [class=URxvt|Firefox|Geany|Evince|Soffice|libreoffice*|mpv|Ghb|Xfburn|Gimp*|Inkscape|Vlc|Lxappearance|Audacity] focus
|
||||||
|
# for_window [class=Xfburn|GParted|System-config-printer.py|Lxtask|Pavucontrol|Exo-helper*|Lxrandr|Arandr] focus
|
||||||
|
|
||||||
|
|
||||||
|
# floating windows
|
||||||
|
# all SuperCollider windows should be floating initially
|
||||||
|
|
||||||
|
for_window [class="SuperCollider"] floating enable
|
||||||
|
|
||||||
|
#for_window [title="jitakami"] move window to output right, floating enable
|
||||||
|
for_window [title="^jitakami$"] floating enable, move window to output right, fullscreen
|
||||||
|
#for_window [title="jitakami"] move window to output right, fullscreen
|
||||||
|
|
||||||
|
# Q Jack Control
|
||||||
|
for_window [title="qjackctl"] floating enable
|
||||||
|
|
||||||
|
|
||||||
|
# all Processing windows
|
||||||
|
#for_window [class="Processing"] floating enable
|
||||||
|
#for_window [title="jutri"] floating enable
|
||||||
|
#for_window [title="IF5"] fullscreen
|
||||||
|
|
||||||
|
for_window [title=".* - mpv"] move window to output right, floating enable
|
||||||
|
|
||||||
|
### COLORS ### ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
# colour of border, background, text, indicator, and child_border
|
||||||
|
# <colorclass> <border> <background> <text> <indicator> <child_border>
|
||||||
|
client.focused #333333 #333333 #bbbbbb #bf616a #555555
|
||||||
|
client.focused_inactive #333333 #333333 #aaaaaa #2f343f #333333
|
||||||
|
client.unfocused #333333 #333333 #666666 #2f343f #333333
|
||||||
|
client.urgent #2f343f #2f343f #d8dee8 #2f343f #990000
|
||||||
|
client.placeholder #2f343f #2f343f #d8dee8 #2f343f #333333
|
||||||
|
client.background #333333
|
||||||
|
|
||||||
|
|
||||||
|
# panel
|
||||||
|
bar {
|
||||||
|
output primary
|
||||||
|
position top
|
||||||
|
colors {
|
||||||
|
background #333333
|
||||||
|
statusline #2f343f
|
||||||
|
separator #4b5262
|
||||||
|
|
||||||
|
# colour of border, background, and text
|
||||||
|
focused_workspace #333333 #555555 #bbbbbb
|
||||||
|
active_workspace #333333 #333333 #bbbbbb
|
||||||
|
inactive_workspace #333333 #333333 #bbbbbb
|
||||||
|
urgent_workspace #333333 #ebcb8b #2f343f
|
||||||
|
}
|
||||||
|
status_command i3status
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,82 @@
|
||||||
|
general {
|
||||||
|
output_format = "i3bar"
|
||||||
|
colors = true
|
||||||
|
markup = pango
|
||||||
|
interval = 5
|
||||||
|
color_good = "#aaaaaa"
|
||||||
|
color_degraded = "#00ff00"
|
||||||
|
color_bad = "#ff4444"
|
||||||
|
}
|
||||||
|
|
||||||
|
order += "cpu_usage"
|
||||||
|
order += "load"
|
||||||
|
order += "cpu_temperature 0"
|
||||||
|
order += "disk /"
|
||||||
|
order += "disk /home"
|
||||||
|
order += "ethernet enp0s31f6"
|
||||||
|
order += "wireless wlp2s0"
|
||||||
|
order += "volume master"
|
||||||
|
order += "battery 0"
|
||||||
|
order += "tztime local"
|
||||||
|
|
||||||
|
cpu_usage {
|
||||||
|
format = "<span color='#aaaaaa'> ✵ %usage CPU </span>"
|
||||||
|
}
|
||||||
|
|
||||||
|
load {
|
||||||
|
format = "<span color='#aaaaaa'> %5min Load </span>"
|
||||||
|
}
|
||||||
|
|
||||||
|
cpu_temperature 0 {
|
||||||
|
format = "<span color='#aaaaaa'> %degrees °C </span>"
|
||||||
|
path = "/sys/class/thermal/thermal_zone0/temp"
|
||||||
|
}
|
||||||
|
|
||||||
|
disk "/" {
|
||||||
|
format = "<span color='#aaaaaa'> %free Free </span>"
|
||||||
|
}
|
||||||
|
|
||||||
|
disk "/home" {
|
||||||
|
format = "<span color='#aaaaaa'> %free Free </span>"
|
||||||
|
}
|
||||||
|
|
||||||
|
ethernet enp0s31f6 {
|
||||||
|
format_up = "<span color='#aaaaaa'> %ip </span>"
|
||||||
|
format_down = "<span color='#aaaaaa'> Disconnected </span>"
|
||||||
|
}
|
||||||
|
|
||||||
|
wireless wlp2s0 {
|
||||||
|
format_up = "<span color='#aaaaaa'> %essid </span>"
|
||||||
|
format_down = "<span color='#aaaaaa'> Disconnected </span>"
|
||||||
|
}
|
||||||
|
|
||||||
|
volume master {
|
||||||
|
format = "<span color='#aaaaaa'> %volume </span>"
|
||||||
|
#format = " %volume "
|
||||||
|
format_muted = "<span color='#aaaaaa'> Muted </span>"
|
||||||
|
device = "default"
|
||||||
|
mixer = "Master"
|
||||||
|
mixer_idx = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
battery 0 {
|
||||||
|
format = "<span color='#aaaaaa'> %status %remaining · %percentage · %consumption</span>"
|
||||||
|
#format = " %status %remaining · %percentage · %consumption"
|
||||||
|
format_down = "No Battery"
|
||||||
|
status_chr = "Charging"
|
||||||
|
status_bat = "Battery"
|
||||||
|
status_unk = "Unknown"
|
||||||
|
status_full = "Charged"
|
||||||
|
hide_seconds = true
|
||||||
|
integer_battery_capacity = true
|
||||||
|
path = "/sys/class/power_supply/BAT%d/uevent"
|
||||||
|
threshold_type = percentage
|
||||||
|
low_threshold = 10
|
||||||
|
last_full_capacity = true
|
||||||
|
}
|
||||||
|
|
||||||
|
tztime local {
|
||||||
|
format = "<span background='#81a1c1'> %time </span>"
|
||||||
|
format_time = " %a %-d %b %H:%M "
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue