From eede1742abcf60d1bc117fabee1cf558ac6454c8 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 27 Jun 2022 19:42:56 +0100 Subject: [PATCH] Add i3 config --- home/vylpes/.config/i3/config | 49 +++++++++++++++++++---------- home/vylpes/.config/i3status/config | 42 +++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 16 deletions(-) create mode 100644 home/vylpes/.config/i3status/config diff --git a/home/vylpes/.config/i3/config b/home/vylpes/.config/i3/config index a1d3b7c..e128f4b 100644 --- a/home/vylpes/.config/i3/config +++ b/home/vylpes/.config/i3/config @@ -49,19 +49,22 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU floating_modifier $mod # Custom keybinds -bindsym $mod+Shift+f exec flameshot gui -p ~/Pictures/captures -bindsym $mod+b exec firefox +bindsym $mod+s exec flameshot gui -p ~/Pictures/captures +bindsym $mod+f exec firefox bindsym $mod+Shift+z exec dm-tool lock # ===== # start a terminal -bindsym $mod+Return exec i3-sensible-terminal +bindsym $mod+a exec i3-sensible-terminal # kill focused window -bindsym $mod+Shift+q kill +bindsym $mod+Shift+c kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+p exec --no-startup-id "rofi -combi-modi window,drun,ssh -theme Arc-Dark -font 'hack 18' -show combi" +bindsym $mod+Shift+p exec --no-startup-id "rofi -show emoji -modi emoji -theme Arc-Dark -font 'Noto Emoji 18'" +bindsym $mod+o exec --no-startup-id "passmenu -combi-modi window,drun,ssh -theme Arc-Dark -font 'hack 18' -show combi" +bindsym $mod+Shift+o exec --no-startup-id "passmenu-otp -combi-modi window,drun,ssh -theme Arc-Dark -font 'hack 18' -show combi" # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a @@ -81,10 +84,10 @@ bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move 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 # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left @@ -93,18 +96,18 @@ bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation -bindsym $mod+Shift+h split h +bindsym $mod+Shift+b split h # split in vertical orientation bindsym $mod+Shift+v split v # enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle +bindsym $mod+Mod1+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split +bindsym $mod+Mod1+s layout stacking +bindsym $mod+Mod1+w layout tabbed +bindsym $mod+Mod1+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle @@ -113,7 +116,7 @@ bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle # focus the parent container -bindsym $mod+a focus parent +bindsym $mod+Mod1+a focus parent # focus the child container #bindsym $mod+d focus child @@ -156,7 +159,7 @@ bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 # reload the configuration file -bindsym $mod+Shift+c reload +bindsym $mod+Mod1+r reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) @@ -192,5 +195,19 @@ bindsym $mod+r mode "resizer # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { + position top status_command i3status } + +# Gaps +gaps inner 10 +gaps outer 10 +gaps horizontal 10 +gaps vertical 10 +gaps top 10 +gaps right 10 +gaps bottom 10 +gaps left 10 + +default_border pixel +client.focused #555555 #555555 #ffffff #2e9ef4 #63C5DA diff --git a/home/vylpes/.config/i3status/config b/home/vylpes/.config/i3status/config new file mode 100644 index 0000000..3170ba9 --- /dev/null +++ b/home/vylpes/.config/i3status/config @@ -0,0 +1,42 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + color_good = "#63C5DA" + interval = 5 +} + +order += "ethernet _first_" +order += "disk /" +order += "load" +order += "memory" +order += "tztime local" + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +disk "/" { + format = "%avail" +} + +load { + format = "%1min" +} + +memory { + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%a %d/%m/%Y %H:%M" +}