i3 conffing
This commit is contained in:
parent
acbca69fa0
commit
ca18aea7ad
1 changed files with 52 additions and 13 deletions
65
i3/config
65
i3/config
|
@ -9,11 +9,13 @@
|
||||||
#
|
#
|
||||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||||
|
|
||||||
|
# Mod4 = Super/Windows, Mod1 = ALT
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
|
#set $mod Mod1
|
||||||
|
|
||||||
# Font for window titles. Will also be used by the bar unless a different font
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
font pango:monospace 8
|
#font pango:monospace 8
|
||||||
|
|
||||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||||
|
@ -44,10 +46,6 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
# move tiling windows via drag & drop by left-clicking into the title bar,
|
|
||||||
# or left-clicking anywhere into the window while holding the floating modifier.
|
|
||||||
tiling_drag modifier titlebar
|
|
||||||
|
|
||||||
# start a terminal
|
# start a terminal
|
||||||
bindsym $mod+Return exec i3-sensible-terminal
|
bindsym $mod+Return exec i3-sensible-terminal
|
||||||
|
|
||||||
|
@ -55,9 +53,9 @@ bindsym $mod+Return exec i3-sensible-terminal
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
|
|
||||||
# start dmenu (a program launcher)
|
# start dmenu (a program launcher)
|
||||||
bindsym $mod+d exec --no-startup-id dmenu_run
|
#bindsym $mod+d exec --no-startup-id dmenu_run
|
||||||
# A more modern dmenu replacement is rofi:
|
# A more modern dmenu replacement is rofi:
|
||||||
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
|
bindcode $mod+40 exec "rofi -show combi"
|
||||||
# There also is i3-dmenu-desktop which only displays applications shipping a
|
# There also is i3-dmenu-desktop which only displays applications shipping a
|
||||||
# .desktop file. It is a wrapper around dmenu, so you need that installed.
|
# .desktop file. It is a wrapper around dmenu, so you need that installed.
|
||||||
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
|
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
|
||||||
|
@ -96,9 +94,9 @@ bindsym $mod+v split v
|
||||||
bindsym $mod+f fullscreen toggle
|
bindsym $mod+f fullscreen toggle
|
||||||
|
|
||||||
# change container layout (stacked, tabbed, toggle split)
|
# change container layout (stacked, tabbed, toggle split)
|
||||||
bindsym $mod+s layout stacking
|
#bindsym $mod+s layout stacking
|
||||||
bindsym $mod+w layout tabbed
|
#bindsym $mod+w layout tabbed
|
||||||
bindsym $mod+e layout toggle split
|
#bindsym $mod+e layout toggle split
|
||||||
|
|
||||||
# toggle tiling / floating
|
# toggle tiling / floating
|
||||||
bindsym $mod+Shift+space floating toggle
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
@ -154,7 +152,7 @@ bindsym $mod+Shift+c reload
|
||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
bindsym $mod+Shift+r restart
|
bindsym $mod+Shift+r restart
|
||||||
# exit i3 (logs you out of your X session)
|
# exit i3 (logs you out of your X session)
|
||||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
bindsym $mod+Shift+e exec "i3-msg exit"
|
||||||
|
|
||||||
# resize window (you can also use the mouse for that)
|
# resize window (you can also use the mouse for that)
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
|
@ -183,8 +181,49 @@ mode "resize" {
|
||||||
|
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
font pango:fira code 12
|
||||||
# finds out, if available)
|
|
||||||
|
# ------------------------- COLORS -------------------------
|
||||||
|
set $fg-color #fdfff1
|
||||||
|
set $bg-color #272821
|
||||||
|
set $contrast-color #3b3c35
|
||||||
|
set $red-color #f82570
|
||||||
|
set $green-color #a6e12d
|
||||||
|
set $yellow-color #e4db73
|
||||||
|
set $orange-color #fc961f
|
||||||
|
set $purple-color #ae81ff
|
||||||
|
|
||||||
|
# class border backgr. text indicator child_border
|
||||||
|
client.focused $contrast-color $bg-color $yellow-color $contrast-color $contrast-color
|
||||||
|
client.focused_inactive $bg-color $bg-color $yellow-color $bg-color $bg-color
|
||||||
|
client.unfocused $bg-color $bg-color $contrast-color $bg-color $bg-color
|
||||||
|
client.urgent $red-color $bg-color $red-color $red-color $red-color
|
||||||
|
client.placeholder $bg-color $bg-color $yellow-color $bg-color $bg-color
|
||||||
|
client.background $fg-color
|
||||||
|
|
||||||
bar {
|
bar {
|
||||||
status_command i3status
|
status_command i3status
|
||||||
|
position top
|
||||||
|
tray_output primary
|
||||||
|
|
||||||
|
colors {
|
||||||
|
background $bg-color
|
||||||
|
statusline $fg-color
|
||||||
|
separator $fg-color
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
exec --no-startup-id xsetroot -solid "#272822"
|
||||||
|
#exec --no-startup-id xfce4-power-manager
|
||||||
|
#exec --no-startup-id blueman-applet
|
||||||
|
exec --no-startup-id dunst
|
||||||
|
exec --no-startup-id pasystray
|
||||||
|
#exec --no-startup-id nextcloud
|
||||||
|
exec --no-startup-id bitwarden-desktop
|
||||||
|
exec --no-startup-id steam -silent
|
||||||
|
#exec --no-startup-id obs --startreplaybuffer
|
||||||
|
exec --no-startup-id discord
|
||||||
|
|
||||||
|
bindsym --release Print exec "aika=$(date +%s);paiva=$(date +%y-%m-%d);kansio=~/Kuvat/scrot;mkdir -p $kansio;filu=$kansio/kuvakaappaus$aika.png;import $filu;xclip -selection clipboard -t image/png -i $filu"
|
||||||
|
bindsym --release Mod4+Print exec "aika=$(date +%s);paiva=$(date +%y-%m-%d);kansio=~/Kuvat/scrot;mkdir -p $kansio;filu=$kansio/kuvakaappaus$aika.png;import -window root $filu;xclip -selection clipboard -t image/png -i $filu"
|
||||||
|
bindsym --release Mod1+Sys_Req exec "winid=$(xwininfo | awk '{print $4}' | grep -i 0x);aika=$(date +%s);paiva=$(date +%y-%m-%d);kansio=~/Kuvat/scrot;mkdir -p $kansio;filu=$kansio/kuvakaappaus$aika.png;import -window $winid $filu;xclip -selection clipboard -t image/png -i $filu"
|
||||||
|
|
Loading…
Reference in a new issue