diff --git a/.config/i3/config b/.config/i3/config index b8dd005..fa1bbc0 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -11,7 +11,7 @@ set $mod Mod4 -font pango:monospace 8 +# font pango:monospace 8 # poweroff stuff set $mode_system System: (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown @@ -35,14 +35,17 @@ floating_modifier $mod bindsym $mod+Return exec i3-sensible-terminal # start emacs -bindsym $mod+Shift+Return exec i3-sensible-editor +bindsym $mod+Shift+Return exec em -# lock screen -bindsym $mod+l exec fuzzy-i3lock +# take screenshot +bindsym $mod+Print exec scrot ~/tmp/screenshots/'%Y-%m-%d_%H:%M:%S_$wx$h.png' # kill focused window bindsym $mod+Shift+q kill +# lock screen +bindsym $mod+l exec fuzzy-i3lock + # start dmenu (a program launcher) bindsym $mod+d exec dmenu_run @@ -140,12 +143,15 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart +# set input keyboard to us english +bindsym $mod+Control+e exec "ibus engine xkb:us::eng" + +# set input keyboard to Chỡ Quố Ngữ (vietnamese) +bindsym $mod+Control+v exec "ibus engine Unikey" + # 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'" -# open login screen on another vt (virtual terminal) -bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" - # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode @@ -185,9 +191,8 @@ bar { position top tray_output primary workspace_buttons yes - mode dock + mode hide modifier $mod - output DP-1 colors { statusline #00ff00 @@ -196,32 +201,3 @@ bar { #client.orientation #ff0000 } } -bar { - status_command i3status-rs ~/.config/i3/status-rs_sec.toml - font pango:DejaVu Sans Mono, forkawesome 8 - position top - tray_output primary - workspace_buttons yes - mode dock - modifier $mod - output HDMI-2 - - colors { - statusline #00ff00 - focused_workspace #00cc00 #00ff00 #000000 - inactive_workspace #00cc00 #008b00 #cccccc - #client.orientation #ff0000 - } -} - -workspace $ws1 output DP-1 -workspace $ws2 output DP-1 -workspace $ws3 output DP-1 -workspace $ws4 output DP-1 -workspace $ws5 output DP-1 - -workspace $ws10 output HDMI-2 -workspace $ws6 output HDMI-2 -workspace $ws7 output HDMI-2 -workspace $ws8 output HDMI-2 -workspace $ws9 output HDMI-2 diff --git a/.config/i3/status-rs.toml b/.config/i3/status-rs.toml index 12e8914..5b84626 100644 --- a/.config/i3/status-rs.toml +++ b/.config/i3/status-rs.toml @@ -1,7 +1,8 @@ +[icons] icons = "awesome" [theme] -name = "solarized-dark" +theme = "solarized-dark" [theme.overrides] idle_fg = "#00cc00" @@ -11,79 +12,52 @@ separator_fg = "#00cc00" separator_bg = "#222222" [[block]] -block = "maildir" -interval = 15 -inboxes = ["/home/finga/mail/onders.org/Inbox"] -display_type = "new" +block = "sound" -[[block]] -block = "music" -max_width = 42 -marquee_interval = 0 -marquee_speed = 0.3 -buttons = ["prev", "play", "next"] +# [[block]] +# block = "net" +# device = "enp0s25" +# format = "{ip} {speed_down} {speed_up}" [[block]] block = "net" -device = "enp0s31f6" -# format = "{ip} {graph_down} {speed_down} {graph_up} {speed_up}" -format = "{graph_down} {speed_down} {graph_up} {speed_up}" +# device = "wlp2s0" +# format = "{ip} {speed_down} {speed_up}" +# format = "{ip} {speed_down} {speed_up} {ssid} {signal_strength}" +format = "{$signal_strength $speed_down.eng() $speed_up.eng() |Wired connection} via $device" -# [[block]] -# block = "disk_space" -# path = "/" -# info_type = "used" -# format = "{path} {percentage}" - -# [[block]] -# block = "disk_space" -# path = "/home" -# info_type = "used" -# format = "{path} {percentage}" - -# [[block]] -# block = "disk_space" -# path = "/var" -# info_type = "used" -# warning = 20.0 -# format = "{path} {percentage}" - -# [[block]] -# block = "disk_space" -# path = "/tmp" -# info_type = "used" -# format = "{path} {percentage}" [[block]] block = "memory" display_type = "memory" -format_mem = "{Mup}%" +format_mem = "$mem_used_percents.eng()" clickable = false [[block]] block = "memory" display_type = "swap" -format_swap = "{SUp}%" +format_swap = "$swap_used_percents.eng()" clickable = false [[block]] block = "cpu" interval = 1 -format = "{barchart} {utilization}% {frequency}GHz" +format = "$barchart.str() $utilization.eng() $frequency.eng()" [[block]] block = "temperature" collapsed = false -format = "{min}° min, {max}° max, {average}° avg" +format = "$min - $max, ~$average|" chip = "*-isa-*" [[block]] block = "load" interval = 1 -format = "{1m} {5m} {15m}" +format = "$1m.eng() $5m.eng() $15m.eng()" [[block]] -block = "sound" +block = "battery" +format = "$percentage $time" [[block]] block = "time" diff --git a/.config/i3/status-rs_sec.toml b/.config/i3/status-rs_sec.toml deleted file mode 100644 index b53ffe5..0000000 --- a/.config/i3/status-rs_sec.toml +++ /dev/null @@ -1,58 +0,0 @@ -icons = "awesome" - -[theme] -name = "solarized-dark" - -[theme.overrides] -idle_fg = "#00cc00" -idle_bg = "#222222" -separator = "|" -separator_fg = "#00cc00" -separator_bg = "#222222" - -[[block]] -block = "uptime" - -[[block]] -block = "memory" -display_type = "memory" -format_mem = "{Mup}%" -clickable = false - -[[block]] -block = "memory" -display_type = "swap" -format_swap = "{SUp}%" -clickable = false - -[[block]] -block = "cpu" -frequency = true -interval = 1 - -[[block]] -block = "temperature" -collapsed = false -interval = 10 -format = "{min}° min, {max}° max, {average}° avg" -chip = "*-isa-*" - -[[block]] -block = "load" -interval = 1 -format = "{1m} {5m} {15m}" - -[[block]] -block = "sound" - -[[block]] -block = "time" -interval = 1 -format = "%Y-%m-%d %a (%Z) %H:%M:%S" -timezone = "Europe/Vienna" - -[[block]] -block = "time" -interval = 1 -format = "(%Z) %H:%M:%S" -timezone = "Etc/UTC" diff --git a/.gitignore.d/i3 b/.gitignore.d/i3 index cb6f044..2b80612 100644 --- a/.gitignore.d/i3 +++ b/.gitignore.d/i3 @@ -1,9 +1,8 @@ * !/.config !/.config/i3 -!/.config/i3/* -!/.config/i3status -!/.config/i3status/* +!/.config/i3/config +!/.config/i3/status-rs.toml !/.gitignore.d !/.gitignore.d/i3 !/.local diff --git a/.local/bin/fuzzy-i3lock b/.local/bin/fuzzy-i3lock index ae4b552..ef62c6b 100755 --- a/.local/bin/fuzzy-i3lock +++ b/.local/bin/fuzzy-i3lock @@ -8,6 +8,6 @@ screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png" -scrot "$screenshot" +scrot -o "$screenshot" mogrify -scale 10% -scale 1000% "$screenshot" exec i3lock -i "$screenshot"