summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-05-19 22:07:39 +0200
committerjohannst <johannes.stoelp@gmail.com>2020-05-19 22:07:39 +0200
commit481e960f7da5e37eec55d29587b69f3960537ff5 (patch)
tree1df9b2e0cb3c10a8b325b030c9d30abf9ab6ad46
parenta0089cb4a117930f3b9c36bcbbd6be8cf3747ff8 (diff)
downloaddotfiles-481e960f7da5e37eec55d29587b69f3960537ff5.tar.gz
dotfiles-481e960f7da5e37eec55d29587b69f3960537ff5.zip
update i3blocks & i3wm
-rw-r--r--i3blocks.conf12
-rw-r--r--i3wm.conf40
2 files changed, 32 insertions, 20 deletions
diff --git a/i3blocks.conf b/i3blocks.conf
index d0f66e5..4709eb8 100644
--- a/i3blocks.conf
+++ b/i3blocks.conf
@@ -112,23 +112,21 @@ border=#b16286
#
[date]
-command=echo "$(date '+%Y-%m-%d')"
-label=
+command=date '+%Y-%m-%d'
+label=
interval=60
-separator=false
-separator_block_width=5
# blue
border=#458588
[time]
-command=echo "$(date '+%H:%M:%S')"
-label=
+command=date '+%H:%M:%S'
+label=
interval=5
# olive
border=#98971a
[time]
-command=echo "$(TZ='Asia/Tokyo' date '+%H:%M:%S')"
+command=TZ='Asia/Tokyo' date '+%H:%M:%S'
label=🍣
interval=5
# white
diff --git a/i3wm.conf b/i3wm.conf
index 3e0549d..f8e6ea2 100644
--- a/i3wm.conf
+++ b/i3wm.conf
@@ -10,9 +10,11 @@
# super key
set $mod Mod4
-set $my_font xos4 Terminus
+#set $my_font xos4 Terminus
+#set $my_font Noto Sans Mono
+set $my_font Font Awesome 5 Brands Regular
-font pango:$my_font 12
+font pango:$my_font 10
# $mod+mouse to move/rezie window in floating mode
floating_modifier $mod
@@ -26,8 +28,13 @@ bindsym $mod+Shift+s reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -f '$my_font' -t warning -m 'Kill X-Sessions' -b 'Kill!' 'i3-msg exit'"
bindsym $mod+Return exec i3-sensible-terminal
-bindsym $mod+d exec "dmenu_run -b -l 15 -nf '#bbbbbb' -nb '#222222' -sb '#ff8700' -sf '#ffffff' -fn '$my_font' -p '>_'"
-bindsym $mod+p exec "passmenu -b -l 15 -nf '#bbbbbb' -nb '#222222' -sb '#ff8700' -sf '#ffffff' -fn '$my_font' -p '>_'"
+# demnu
+#bindsym $mod+d exec "dmenu_run -b -l 15 -nf '#bbbbbb' -nb '#222222' -sb '#ff8700' -sf '#ffffff' -fn '$my_font' -p '>_'"
+#bindsym $mod+p exec "passmenu -b -l 15 -nf '#bbbbbb' -nb '#222222' -sb '#ff8700' -sf '#ffffff' -fn '$my_font' -p '>_'"
+# rofi
+bindsym $mod+d exec "rofi -show drun"
+bindsym $mod+p exec "rofi -show pass"
+bindsym $mod+Tab exec "rofi -show window"
#
# Layout Key Bindings
@@ -96,7 +103,7 @@ bindsym $mod+Shift+0 move container to workspace 10
#
# arrow f047
-set $resize_mode 
+set $resize_mode (r)
bindsym $mod+r mode $resize_mode
# bindings for resize mode
@@ -142,7 +149,7 @@ bindsym $mod+Control+l exec $lock_cmd
# lock f023
# moon f186
set $power_mode  (l)  (s)
-bindsym $mod+Pause mode "$power_mode"
+bindsym $mod+Home mode "$power_mode"
mode "$power_mode" {
bindsym l exec $lock_cmd, mode "default"
@@ -188,11 +195,11 @@ client.background $col_x_whi
#
bar {
- font pango: $my_font, Noto Color Emoji 10, FontAwesome 10
+ font pango: $my_font 10
position top
height 22
- status_command i3blocks -c ~/.i3/i3blocks.conf
- #status_command i3status --config ~/.i3/i3status.conf
+ status_command i3blocks -c ~/.config/i3/i3blocks.conf
+ #status_command i3status --config ~/.config/i3/i3status.conf
colors {
background $col_x_bla
@@ -209,13 +216,20 @@ bar {
}
#
-# Thinkpad T410 Volume Keys
+# Function Keys
#
-bindsym XF86AudioRaiseVolume exec "amixer set Master 5%+"
-bindsym XF86AudioLowerVolume exec "amixer set Master 5%-"
-bindsym XF86AudioMute exec "amixer set Master toggle"
+# Alsamixer controls
+# bindsym XF86AudioRaiseVolume exec "amixer set Master 5%+"
+# bindsym XF86AudioLowerVolume exec "amixer set Master 5%-"
+# bindsym XF86AudioMute exec "amixer set Master toggle"
+# Pulse Audio controls
+bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
+bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
+bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
+bindsym XF86MonBrightnessUp exec "xbacklight -inc 10"
+bindsym XF86MonBrightnessDown exec "xbacklight -dec 10"
# PLAYGROUND