summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/i3/config12
-rw-r--r--.config/i3blocks/config6
2 files changed, 10 insertions, 8 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 8007890..4df4590 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -8,9 +8,9 @@ set $sigaudio pkill -75 i3blocks
workspace_auto_back_and_forth yes
-set $ws1 "1:󰖟"
-set $ws2 "2:󰲢"
-set $ws3 "3:󰲤"
+set $ws1 "1:󱆃"
+set $ws2 "2:󰈹"
+set $ws3 "3:󰗰"
set $ws4 "4:󰲦"
set $ws5 "5:󰲨"
set $ws6 "6:󰲪"
@@ -56,14 +56,15 @@ bindsym Mod1+shift+9 move container to workspace $ws9
bindsym Mod1+shift+0 move container to workspace $ws10
# move workspaces between outputs on dock
-bindsym Mod1+d exec xrandr --output DP-3 --auto --primary --output eDP-1 --auto --off
-bindsym Mod1+shift+d exec xrandr --output DP-3 --auto --off --output eDP-1 --auto --primary
+bindsym Mod1+d exec xrandr --output DP-3 --auto --primary --output eDP-1 --auto --off ; exec doas sysctl hw.acpi.lid_switch_state=0
+bindsym Mod1+shift+d exec xrandr --output DP-3 --auto --off --output eDP-1 --auto --primary ; exec doas sysctl hw.acpi.lid_switch_state=S3
## WINDOWS
default_border pixel
hide_edge_borders smart
title_align center
+floating_modifier Mod1
bindsym Mod1+shift+p move scratchpad
bindsym Mod1+p scratchpad show
@@ -107,6 +108,7 @@ bindsym Mod1+shift+r restart
## SHORTCUTS
+bindsym Mod1+Pause exec xautolock -locknow ; exec doas acpiconf -s3
bindsym Mod1+Return split horizontal; exec $term
bindsym Mod1+shift+Return split vertical; exec $term
bindsym Mod4+p exec arandr
diff --git a/.config/i3blocks/config b/.config/i3blocks/config
index bf5ca79..178b82c 100644
--- a/.config/i3blocks/config
+++ b/.config/i3blocks/config
@@ -56,9 +56,9 @@ interval=10
command=cpu_count=$(sysctl -n hw.ncpu) ; avg_load=$(sysctl vm.loadavg|cut -w -f3) ; percent=$(echo "result = $avg_load / $cpu_count * 100; scale=0; result / 1"|bc -l) ; printf "󰻠 %.2d%%\n" $percent ; [ $percent -ge 70 ] && return 33 || return 0
#command=printf "󰻠 %s\n" $(top -n|sed -n '3p'|cut -w -f2)
-#[temp]
-#interval=10
-#command=celcius=$(sysctl -n dev.cpu.0.temperature|cut -d'.' -f1) ; printf "󰔏 %.3d℉\n" $(echo "$celcius * 9 / 5 + 32" | bc) ; [ $celcius -ge 80 ] && return 33 || return 0
+[temp]
+interval=10
+command=celcius=$(sysctl -n dev.cpu.0.temperature|cut -d'.' -f1) ; printf "󰔏 %.3d℉\n" $(echo "$celcius * 9 / 5 + 32" | bc) ; [ $celcius -ge 80 ] && return 33 || return 0
[battery]
interval=60