Compare commits

...

8 commits
main ... x200

5 changed files with 35 additions and 144 deletions

View file

@ -11,7 +11,7 @@
set $mod Mod4 set $mod Mod4
font pango:monospace 8 # font pango:monospace 8
# poweroff stuff # poweroff stuff
set $mode_system System: (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown 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 bindsym $mod+Return exec i3-sensible-terminal
# start emacs # start emacs
bindsym $mod+Shift+Return exec i3-sensible-editor bindsym $mod+Shift+Return exec em
# lock screen # take screenshot
bindsym $mod+l exec fuzzy-i3lock bindsym $mod+Print exec scrot ~/tmp/screenshots/'%Y-%m-%d_%H:%M:%S_$wx$h.png'
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
# lock screen
bindsym $mod+l exec fuzzy-i3lock
# start dmenu (a program launcher) # start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run 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) # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart 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) # 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-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) # resize window (you can also use the mouse for that)
mode "resize" { mode "resize" {
# These bindings trigger as soon as you enter the resize mode # These bindings trigger as soon as you enter the resize mode
@ -185,9 +191,8 @@ bar {
position top position top
tray_output primary tray_output primary
workspace_buttons yes workspace_buttons yes
mode dock mode hide
modifier $mod modifier $mod
output DP-1
colors { colors {
statusline #00ff00 statusline #00ff00
@ -196,32 +201,3 @@ bar {
#client.orientation #ff0000 #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

View file

@ -1,7 +1,8 @@
[icons]
icons = "awesome" icons = "awesome"
[theme] [theme]
name = "solarized-dark" theme = "solarized-dark"
[theme.overrides] [theme.overrides]
idle_fg = "#00cc00" idle_fg = "#00cc00"
@ -11,79 +12,52 @@ separator_fg = "#00cc00"
separator_bg = "#222222" separator_bg = "#222222"
[[block]] [[block]]
block = "maildir" block = "sound"
interval = 15
inboxes = ["/home/finga/mail/onders.org/Inbox"]
display_type = "new"
[[block]] # [[block]]
block = "music" # block = "net"
max_width = 42 # device = "enp0s25"
marquee_interval = 0 # format = "{ip} {speed_down} {speed_up}"
marquee_speed = 0.3
buttons = ["prev", "play", "next"]
[[block]] [[block]]
block = "net" block = "net"
device = "enp0s31f6" # device = "wlp2s0"
# format = "{ip} {graph_down} {speed_down} {graph_up} {speed_up}" # format = "{ip} {speed_down} {speed_up}"
format = "{graph_down} {speed_down} {graph_up} {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]]
block = "memory" block = "memory"
display_type = "memory" display_type = "memory"
format_mem = "{Mup}%" format_mem = "$mem_used_percents.eng()"
clickable = false clickable = false
[[block]] [[block]]
block = "memory" block = "memory"
display_type = "swap" display_type = "swap"
format_swap = "{SUp}%" format_swap = "$swap_used_percents.eng()"
clickable = false clickable = false
[[block]] [[block]]
block = "cpu" block = "cpu"
interval = 1 interval = 1
format = "{barchart} {utilization}% {frequency}GHz" format = "$barchart.str() $utilization.eng() $frequency.eng()"
[[block]] [[block]]
block = "temperature" block = "temperature"
collapsed = false collapsed = false
format = "{min}° min, {max}° max, {average}° avg" format = "$min - $max, ~$average|"
chip = "*-isa-*" chip = "*-isa-*"
[[block]] [[block]]
block = "load" block = "load"
interval = 1 interval = 1
format = "{1m} {5m} {15m}" format = "$1m.eng() $5m.eng() $15m.eng()"
[[block]] [[block]]
block = "sound" block = "battery"
format = "$percentage $time"
[[block]] [[block]]
block = "time" block = "time"

View file

@ -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"

View file

@ -1,9 +1,8 @@
* *
!/.config !/.config
!/.config/i3 !/.config/i3
!/.config/i3/* !/.config/i3/config
!/.config/i3status !/.config/i3/status-rs.toml
!/.config/i3status/*
!/.gitignore.d !/.gitignore.d
!/.gitignore.d/i3 !/.gitignore.d/i3
!/.local !/.local

View file

@ -8,6 +8,6 @@
screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png" screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png"
scrot "$screenshot" scrot -o "$screenshot"
mogrify -scale 10% -scale 1000% "$screenshot" mogrify -scale 10% -scale 1000% "$screenshot"
exec i3lock -i "$screenshot" exec i3lock -i "$screenshot"