summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.Xresources3
-rw-r--r--.config/i3/config1
-rw-r--r--.config/picom/picom.conf2
-rw-r--r--.config/shell/aliasrc4
-rw-r--r--.config/x11/xinitrc10
-rw-r--r--.ratpoisonrc110
6 files changed, 123 insertions, 7 deletions
diff --git a/.Xresources b/.Xresources
index 5419558..06d62e8 100644
--- a/.Xresources
+++ b/.Xresources
@@ -6,7 +6,8 @@ URxvt.imLocale: ja_JP.utf8
URxvt.imFont: xft:WenQuanYi Micro Hei Mono:size=12
URxvt.inputMethod: ibus
-URxvt.*font: xft:Iosevka Term Custom:style=Regular:size=13:antialias=True,xft:JoyPixels:pixelsize=10
+URxvt.*font: xft:Iosevka Term Custom:style=Regular:size=11:antialias=True
+/*,xft:JoyPixels:pixelsize=10*/
!! true transparency
URxvt.depth: 32
diff --git a/.config/i3/config b/.config/i3/config
index a8743f5..1ed1c12 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -10,6 +10,7 @@ font pango:Iosevka Term Custom 10
for_window [class="Tk"] floating enable
for_window [class="MVis"] floating enable
+for_window [title="Friends List"] floating enable
# no_focus [all]
# focus_on_window_activation none
diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf
index 2fdb8f4..f961da9 100644
--- a/.config/picom/picom.conf
+++ b/.config/picom/picom.conf
@@ -1 +1 @@
-# empty file, just so transparency works.
+backend = "glx"
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index a40c376..17c7b02 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -15,11 +15,13 @@ alias ea='$EDITOR ~/.config/shell/aliasrc'
alias cam='mpv --profile=low-latency --untimed /dev/video0'
alias df='df -h'
alias tma='tmux a -t'
-alias tmn='tmux new-session -s'
+alias tmn='tmux new-session -A -s'
alias wgu='sudo wg-quick up /etc/wireguard/wg0.conf'
alias wgd='sudo wg-quick down /etc/wireguard/wg0.conf'
alias zzz='sudo zzz'
+alias mvsave='rm Mizuki.ds2party.bak && mv Mizuki.ds2party Mizuki.ds2party.bak && mv Mizuki.ds2party.tmp Mizuki.ds2party'
+
# compiler
alias clang='clang -march=native -O3 -flto=thin'
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc
index 9bae254..213b2b0 100644
--- a/.config/x11/xinitrc
+++ b/.config/x11/xinitrc
@@ -8,8 +8,10 @@ eval "$(gpg-agent --daemon --allow-preset-passphrase)"
eval "$(ssh-agent)"
xrandr --addmode HDMI-A-0 1280x960
-xrandr --output DisplayPort-2 --mode 1920x1080 --primary
-xrandr --output HDMI-A-0 --mode 1280x960 --left-of DisplayPort-2
+xrandr --output HDMI-A-0 --mode 1280x960 --primary
+xrandr --output DisplayPort-2 --mode 1920x1080 --left-of HDMI-A-0
+# xrandr --output DisplayPort-2 --mode 1920x1080 --primary
+# xrandr --output HDMI-A-0 --mode 1280x960 --left-of DisplayPort-2
rfkill block bluetooth
@@ -24,7 +26,7 @@ xrdb -merge ~/.Xresources
urxvtd -q -o -f &
ibus-daemon -d -r -x
pipewire &
-picom &
mpd &
-exec i3
+#exec i3
+exec ratpoison
diff --git a/.ratpoisonrc b/.ratpoisonrc
new file mode 100644
index 0000000..39d7569
--- /dev/null
+++ b/.ratpoisonrc
@@ -0,0 +1,110 @@
+# initialise dzen2
+#exec ratpoison -c "exec ~/.local/bin/dzen-bar-left" -c "exec ~/.local/bin/dzen-bar-right"
+
+set rudeness 15
+set startupmessage 0
+
+# this only works for my primary display
+# have to adjust secondary display manually
+#set padding 0 18 0 0
+
+# set info style
+set winname class
+set wingravity center
+set transgravity center
+set border 0
+set font "xft:Hack Nerd Font:size=11"
+set bgcolor #000000
+set fgcolor #c4c4c4
+
+# Set the escape key to the ctrl-z
+escape C-z
+
+# ALIASES
+
+# store frames
+alias store-fs1 exec ratpoison -c "setenv fs1 `ratpoison -c 'fdump'`"
+alias restore-fs1 exec ratpoison -c "frestore `ratpoison -c 'getenv fs1'`"
+alias store-fs2 exec ratpoison -c "setenv fs2 `ratpoison -c 'fdump'`"
+alias restore-fs2 exec ratpoison -c "frestore `ratpoison -c 'getenv fs2'`"
+alias store-fs3 exec ratpoison -c "setenv fs3 `ratpoison -c 'fdump'`"
+alias restore-fs3 exec ratpoison -c "frestore `ratpoison -c 'getenv fs3'`"
+alias store-fs4 exec ratpoison -c "setenv fs4 `ratpoison -c 'fdump'`"
+alias restore-fs4 exec ratpoison -c "frestore `ratpoison -c 'getenv fs4'`"
+alias store-fs5 exec ratpoison -c "setenv fs5 `ratpoison -c 'fdump'`"
+alias restore-fs5 exec ratpoison -c "frestore `ratpoison -c 'getenv fs5'`"
+
+## KEYBINDS
+
+# unbind defaults
+unbind b
+unbind C-b
+unbind a
+unbind C-a
+unbind p
+unbind C-p
+unbind n
+unbind C-n
+
+# switch between windows and monitors
+definekey top s-n next
+definekey top s-p prev
+definekey top s-Left nextscreen
+definekey top s-Right nextscreen
+
+# manage frames and windows
+definekey top s-h focusleft
+definekey top s-j focusdown
+definekey top s-k focusup
+definekey top s-l focusright
+definekey top s-H exchangeleft
+definekey top s-J exchangedown
+definekey top s-K exchangeup
+definekey top s-L exchangeright
+definekey top s-C delete
+
+bind M-exclam store-fs1
+bind M-1 restore-fs1
+bind M-at store-fs2
+bind M-2 restore-fs2
+bind M-numbersign store-fs3
+bind M-3 restore-fs3
+bind M-dollar store-fs4
+bind M-4 restore-fs4
+bind M-percent store-fs5
+bind M-5 restore-fs5
+
+#bind b exec ratpoison -c "exec ~/.local/bin/dzen-bar-right" -c "set padding 0 18 0 0"
+#bind C-b exec pkill dzen-bar-right && ratpoison -c "set padding 0 0 0 0"
+#bind p exec ratpoison -c "set padding 0 0 0 0"
+#bind C-p exec ratpoison -c "set padding 0 18 0 0"
+
+# volume and media control
+definekey top XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
+definekey top XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
+definekey top XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
+#definekey top XF86AudioPrev exec mpc prev && notify-send -r "$(cat ~/.config/mpd/notification-id)" "$(mpc status)"
+#definekey top XF86AudioNext exec mpc next && notify-send -r "$(cat ~/.config/mpd/notification-id)" "$(mpc status)"
+#definekey top XF86AudioPlay exec mpc toggle && notify-send -r "$(cat ~/.config/mpd/notification-id)" "$(mpc status)"
+definekey top XF86AudioPrev exec mpc prev && exec ratpoison -c "echo $(mpc status)"
+definekey top XF86AudioNext exec mpc next && exec ratpoison -c "echo $(mpc status)"
+definekey top XF86AudioPlay exec mpc toggle && exec ratpoison -c "echo $(mpc status)"
+
+# Information
+bind C-v exec ratpoison -c "echo $(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{ print $3,$1,$2*100 }')%"
+bind C-a exec ratpoison -c "echo `date +'%A, %F - %H:%M'` `cal | tail -n +2 | sed -e 's/^Su/\n\n Su/' -e 's/.*/ & /' -e \"s/\ $(date +%e) /\<$(date +%e)\>/\"`"
+bind C-s exec ratpoison -c "echo $(date +'%A, %F - %H:%M')"
+bind C-t exec ratpoison -c "echo $(sensors | sed -n /Tctl/p | sed 's/Tctl: *+/Temp: /')"
+
+# application keybinds
+definekey top s-S-Return exec urxvtc
+definekey top s-F exec firefox -P default-release
+definekey top s-B exec firefox -P less-strict
+definekey top s-E exec emacsclient -c -a ""
+definekey top s-M exec notify-send -p "$(mpc status)" >~/.config/mpd/notification-id
+definekey top s-z exec boomer
+definekey top s-m exec mpdmenu
+definekey top s-p exec dmenu_run -m 0 -fn "xft:Hack Nerd Font:size=11" -nb "#222222" -nf "#bbbbbb" -sb "#005577" -sf "#eeeeee"
+definekey top s-Print exec scrot -s -e 'mv $f ~/pics/'
+definekey top Print exec scrot -u -e 'mv $f ~/pics/'
+