commit dc53723a48b13df5e27798fe0d31e92a048a8e8a
parent 543717d6a1652d87aefa68aa49aef281317ad5ef
Author: Matsuda Kenji <ftvda283@gmail.com>
Date: Tue, 11 Aug 2020 08:55:03 +0900
edited i3wm config
Diffstat:
4 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/.Xresources b/.Xresources
@@ -4,6 +4,7 @@ URxvt.scrollstyle: plain
URxvt.cursorUnderline: true
URxvt.pointerBlank: true
URxvt.saveLines: 3000
+URxvt.fading: 20
!! Color Scheme and Opacity - gruvbox-dark https://github.com/morhetz/gruvbox
diff --git a/.config/i3/config b/.config/i3/config
@@ -15,6 +15,9 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
+# activate fcitx
+exec --no-startup-id fcitx-autostart
+
# Use pactl to adjust volume in PulseAudio.
set $refresh_volume pkill -SIGRTMIN+10 i3blocks
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_volume
@@ -123,28 +126,16 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
# 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 j resize shrink width 10 px or 10 ppt
- bindsym k resize grow height 10 px or 10 ppt
- bindsym l resize shrink height 10 px or 10 ppt
- bindsym semicolon 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
-
+ bindsym h resize shrink width 10 px or 10 ppt
+ bindsym j resize grow height 10 px or 10 ppt
+ bindsym k resize shrink height 10 px or 10 ppt
+ bindsym l resize grow width 10 px or 10 ppt
+
# resize in small ammount
- bindsym $mod+Left resize shrink width 1 px or 1 ppt
- bindsym $mod+Down resize grow height 1 px or 1 ppt
- bindsym $mod+Up resize shrink height 1 px or 1 ppt
- bindsym $mod+Right resize grow width 1 px or 1 ppt
+ bindsym $mod+h resize shrink width 1 px or 1 ppt
+ bindsym $mod+j resize grow height 1 px or 1 ppt
+ bindsym $mod+k resize shrink height 1 px or 1 ppt
+ bindsym $mod+l resize grow width 1 px or 1 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
@@ -184,5 +175,6 @@ for_window [window_role="task_dialog"] floating enable
floating_minimum_size 30 x 30
floating_maximum_size 1080 x 720
-# activate fcitx
-exec --no-startup-id fcitx-autostart
+# disable title bar
+for_window [class="^.*"] border pixel 0
+
diff --git a/.config/i3blocks/config b/.config/i3blocks/config
@@ -17,25 +17,26 @@ signal=2
[load average]
label=
command=echo "$(uptime | sed 's/.*load average: \(.*\)/\1/' | cut -d, -f1)/$(grep 'processor' /proc/cpuinfo | wc -l)"
-interval=2
+interval=5
[temperature]
label=
command=echo $(( `cat /sys/class/thermal/thermal_zone1/temp` / 1000 ))
-interval=2
+interval=5
[memory]
+label=
command=free -h | awk 'match($0, /^Mem/){print $3 " / " $2}'
-interval=2
+interval=5
[wifi]
command=./wifi.sh
-interval=2
+interval=5
[battery]
command=$PWD/battery.sh
-interval=2
+interval=5
[time]
-command=date '+%Y-%m-%d %H:%M:%S'
-interval=1
+command=$PWD/lunar_cal.sh
+interval=5
diff --git a/.config/i3blocks/lunar_cal.sh b/.config/i3blocks/lunar_cal.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+month_names=(睦月 如月 弥生 卯月 皐月 水無月 文月 葉月 長月 神無月 霜月 師走)
+month_num=`date '+%m'`
+month=${month_names[`expr $month_num - 1`]}
+echo "$month `date '+%d日 %H%M'`"