From d27ed681f6e5b3557418b3a1180f064e69515e82 Mon Sep 17 00:00:00 2001 From: czjstmax Date: Sun, 21 Dec 2025 18:14:19 +0100 Subject: cumulative config files (dotfiles) update Signed-off-by: czjstmax --- cfg/i3/config | 31 ++++++++++++++++--------------- cfg/i3/jmdmenu | 4 ++-- cfg/i3/kurobar.sh | 5 +++-- cfg/i3/sway/config | 24 ++++++++++++++++++------ 4 files changed, 39 insertions(+), 25 deletions(-) (limited to 'cfg/i3') diff --git a/cfg/i3/config b/cfg/i3/config index 6bb9098..3cdb537 100644 --- a/cfg/i3/config +++ b/cfg/i3/config @@ -1,5 +1,5 @@ # ========================= -# クロナのI3チエッフギ +# クロナのi3wmチエッフギ # ==> maxwasmailed@proton.me # ========================= @@ -11,8 +11,10 @@ set $mod Mod4 # ------------------------- # default terminal & launcher # ------------------------- -set $term alacritty +#set $term alacritty +set $term kitty set $shell fish +set $jfont Iosevka # ------------------------ # system & controls @@ -41,6 +43,11 @@ bindsym XF86AudioMute exec pamixer -t # mute mic bindsym XF86AudioMicMute exec pamixer --default-source -t +# remap capslock to escape +exec --no-startup-id setxkbmap -option caps:escape +# compose key +exec --no-startup-id setxkbmap -option compose:ralt + # ------------------------- # window management # ------------------------- @@ -57,7 +64,7 @@ bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right bindsym $mod+q kill -bindsym $mod+t floating toggle +bindsym $mod+t floating toggle, resize set 672 432 bindsym $mod+v split v bindsym $mod+h split h @@ -69,12 +76,6 @@ bindsym $mod+Ctrl+Shift+Tab focus prev bindsym $mod+Tab exec i3-msg workspace next_on_output bindsym $mod+Shift+Tab exec i3-msg workspace prev_on_output -# ------------------------- -# a bit of layout -# ------------------------- -exec --no-startup-id i3-msg gaps horizontal all set 32 -exec --no-startup-id i3-msg gaps vertical all set 8 - # ------------------------- # workspaces # ------------------------- @@ -117,7 +118,7 @@ floating_modifier $mod # ------------------------- # borders / titlebars # ------------------------- -new_window pixel 16 +font pango:$jfont 9 client.focused #f82323 #0f0f0f #f82323 #0f0f0f client.focused_inactive #0f0f0f #0f0f0f #f82323 #0f0f0f client.unfocused #0f0f0f #0f0f0f #f82323 #0f0f0f @@ -129,7 +130,7 @@ client.urgent #0f0f0f #0f0f0f #f82323 #0f0f0f bar { #status_command i3status status_command ~/.config/i3/kurobar.sh - font pango:chirufont 10 + font pango:$jfont 9 position top colors { background #0f0f0f @@ -152,11 +153,11 @@ exec --no-startup-id ibus-daemon -drx exec --no-startup-id nm-applet exec --no-startup-id xsetroot -cursor_name left_ptr exec --no-startup-id xsetroot -solid "#1f1f1f" -exec --no-startup-id feh --bg-fill ~/Pictures/halftone-red0.png +exec --no-startup-id feh --bg-fill ~/Pictures/murasamBIG.png exec --no-startup-id picom exec --no-startup-id kwalletd6 -exec --no-startup-id xinput set-prop 11 "libinput Tapping Enabled" 1 -exec --no-startup-id xinput set-prop 9 "libinput Accel Speed" -1 +exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1 +exec --no-startup-id xinput set-prop "MOSART Semi. 2.4G Wireless Mouse" "libinput Accel Speed" -1 exec --no-startup-id blueman-applet # ------------------------- @@ -164,5 +165,5 @@ exec --no-startup-id blueman-applet # ------------------------- bindsym $mod+Shift+r restart bindsym $mod+Shift+e exit -bindsym $mod+l exec i3lock -c 0f0f0f +bindsym $mod+l exec i3lock diff --git a/cfg/i3/jmdmenu b/cfg/i3/jmdmenu index 8cb7beb..2f48614 100644 --- a/cfg/i3/jmdmenu +++ b/cfg/i3/jmdmenu @@ -1,10 +1,10 @@ #!/bin/bash -# simple black & white dmenu wrapper # ------------------------- # configuration # ------------------------- -DMENU_FN="chirufont-10,Noto Color Emoji-10" +#DMENU_FN="chirufont-10,Noto Color Emoji-10" +DMENU_FN="Iosevka-10,Noto Color Emoji-10" DMENU_NB="#0f0f0f" # normal background DMENU_NF="#f82323" # normal foreground DMENU_SB="#f82323" # selected background diff --git a/cfg/i3/kurobar.sh b/cfg/i3/kurobar.sh index 7018460..a9d82a0 100644 --- a/cfg/i3/kurobar.sh +++ b/cfg/i3/kurobar.sh @@ -21,7 +21,8 @@ while true; do # --- LAN ip --- # 192.168.x.x - localip=$(hostname -i | grep -oE '192\.168\.[0-9]+\.[0-9]+') + localip=$(ip -4 addr show | awk '/inet 192\.168\./ {print $2}' | cut -d/ -f1 | head -n1) + #localip=$(hostname -i | grep -oE '192\.168\.[0-9]+\.[0-9]+') # --- public IP --- # attached to the fetchpubip service and the .config/i3/fetch_public_ip.sh script @@ -38,7 +39,7 @@ while true; do dt=$(date '+%Y年%m月%d日 %H時%M分%S秒') # --- print bar line --- - echo "vol.$volume% | bat.$bat% | bri.$bright | lan.$localip | pub.$pubip | $mem_used/$mem_total gb | $dt" + echo "vol.$volume% | bat.$bat% | bri.$bright | lan.$localip | pub.$pubip | "$mem_used"/"$mem_total"gb | $dt" sleep 0.01 done diff --git a/cfg/i3/sway/config b/cfg/i3/sway/config index 68f5ef7..21b713e 100644 --- a/cfg/i3/sway/config +++ b/cfg/i3/sway/config @@ -20,7 +20,6 @@ set $shell fish bindsym Mod1+Space exec jmdmenu run bindsym $mod+BackSpace exec jmdmenu run bindsym $mod+Return exec $term -#bindsym $mod+v exec jmdmenu clipbd bindsym $mod+period exec jmdmenu bmj bindsym $mod+Shift+c exec xcolor | jmdmenu bindsym $mod+e exec nemo @@ -43,7 +42,14 @@ bindsym XF86AudioMicMute exec pamixer --default-source -t # compose key input * xkb_options compose:ralt # fallback to **KILL** dmenu when it freezes because fuck sway i guess -bindsym $mod+Alt_L+q exec kill -9 dmenu +bindsym $mod+Alt_L+q exec kill dmenu +# [re]binds +input * { + xkb_options caps:escape +} +# [un]binds +bindsym Page_Up nop +bindsym Page_Down nop # ------------------------- @@ -77,8 +83,8 @@ bindsym $mod+Shift+Tab exec i3-msg workspace prev_on_output # ------------------------- # a bit of layout # ------------------------- -exec --no-startup-id i3-msg gaps horizontal all set 32 -exec --no-startup-id i3-msg gaps vertical all set 8 +#exec --no-startup-id i3-msg gaps horizontal all set 32 +#exec --no-startup-id i3-msg gaps vertical all set 8 # ------------------------- # workspaces @@ -156,7 +162,13 @@ bar { exec --no-startup-id export GTK_USE_PORTAL=0 exec --no-startup-id export XDG_CURRENT_DESKTOP=GNOME exec --no-startup-id sudo systemctl --user mask xdg-desktop-portal-kde.service -exec --no-startup-id ibus-daemon -drx + +exec --no-startup-id export GTK_IM_MODULE=fcitx +exec --no-startup-id export QT_IM_MODULE=fcitx +exec --no-startup-id export XMODIFIERS=@im=fcitx +#exec --no-startup-id ibus-daemon -drx +exec --no-startup-id ibus start + exec --no-startup-id nm-applet exec --no-startup-id xsetroot -cursor_name left_ptr exec --no-startup-id xsetroot -solid "#1f1f1f" @@ -174,5 +186,5 @@ input "type:touchpad" { # ------------------------- bindsym $mod+Shift+r reload bindsym $mod+Shift+e exit -bindsym $mod+l exec i3lock -c 101010 +bindsym $mod+l exec /home/max/.config/sway/swaylock_colors.sh -- cgit v1.3.1