+++ /dev/null
-#!/bin/bash
-item(){
- echo "{\"full_text\": \"$1\"}$2"
-}
-
-battery(){
- path=/sys/class/power_supply
- now=$(($(cat "$path/BAT0/charge_now")*100/$(cat "$path/BAT0/charge_full")))
- [ "$(cat "$path/ADP1/online")" -eq "1" ] && charge="(C)"
- [ "$now" -ge "100" ] && now="FULL"
- echo -n "$now%$charge"
-}
-
-volume(){
- mixer=$(amixer 2>&1 | head -5 | tail -1)
- echo $mixer | grep -q "\[on\]" || mute="(M)"
- volume=$(echo $mixer | grep -Po "(?<=\[)[0-9]{1,3}%")
- echo -n "vol: $volume$mute"
-}
-
-while true;
-do
- echo "$(volume) | $(battery) | $(date +%x\ %X)"
- sleep 10
-done
exec xbacklight -set 50
exec netctltray
+# Custom keybindings
+bindsym $mod+l exec xautolock -locknow
+bindsym $mod+p exec passmenu
+
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
-# lock the screen
-bindsym $mod+l exec xautolock -locknow
# kill focused window
bindsym $mod+Shift+quotedbl kill
bindsym $mod+Shift+period exec i3-msg exit
# resize window (you can also use the mouse for that)
-mode "resize" {
- # These bindings trigger as soon as you enter the resize mode
-
- # Pressing left will shrink the window’s width.
- # Pressing right will grow the window’s width.
- # Pressing up will shrink the window’s height.
- # Pressing down will grow the window’s height.
- bindsym h resize shrink width 10 px or 10 ppt
- bindsym t resize grow height 10 px or 10 ppt
- bindsym n resize shrink height 10 px or 10 ppt
- bindsym s resize grow width 10 px or 10 ppt
-
- # same bindings, but for the arrow keys
- bindsym Left resize shrink width 10 px or 10 ppt
- bindsym Down resize grow height 10 px or 10 ppt
- bindsym Up resize shrink height 10 px or 10 ppt
- bindsym Right resize grow width 10 px or 10 ppt
-
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
-}
-
-bindsym $mod+p mode "resize"
+#mode "resize" {
+# # These bindings trigger as soon as you enter the resize mode
+#
+# # Pressing left will shrink the window’s width.
+# # Pressing right will grow the window’s width.
+# # Pressing up will shrink the window’s height.
+# # Pressing down will grow the window’s height.
+# bindsym h resize shrink width 10 px or 10 ppt
+# bindsym t resize grow height 10 px or 10 ppt
+# bindsym n resize shrink height 10 px or 10 ppt
+# bindsym s resize grow width 10 px or 10 ppt
+#
+# # same bindings, but for the arrow keys
+# bindsym Left resize shrink width 10 px or 10 ppt
+# bindsym Down resize grow height 10 px or 10 ppt
+# bindsym Up resize shrink height 10 px or 10 ppt
+# bindsym Right resize grow width 10 px or 10 ppt
+#
+# # back to normal: Enter or Escape
+# bindsym Return mode "default"
+# bindsym Escape mode "default"
+#}
+#
+#bindsym $mod+p mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)