Compare commits

..

20 Commits

Author SHA1 Message Date
inkch
90d283620e i3: assign new app (toggle in chromium) 2025-01-14 14:42:02 +09:00
inkch
f41c8fea5c i3: use bring-window (my own script) for pcmanfm
new way to bring app windows
2025-01-14 14:40:55 +09:00
inkch
027763171a i3: run carla on startup 2025-01-14 14:40:35 +09:00
inkch
543a855331 i3: layout tabbed for browsers 2025-01-14 14:40:15 +09:00
inkch
4db56fee78 i3: assign and window settings for music creation apps 2025-01-14 14:39:38 +09:00
inkch
3ce59de41b i3: more icons/characters in rofimoji 2025-01-14 14:37:42 +09:00
inkch
64c237babd i3: delete unused lines related rofi 2025-01-14 14:37:21 +09:00
inkch
9da96641a9 i3: change binding apps for controlling audio 2025-01-14 14:35:07 +09:00
inkch
7ed6e51c73 i3: remove moving workspace from keybindings
Hard coding with workspace number/name is not ideal solution.
If you want to see apps immediately when you press the key,
that should be handled in the script. Not here.
2025-01-14 14:32:08 +09:00
inkch
2fd2eeb7f3 i3: assign apps to newly created workspace (browser,console, and emacs) 2025-01-14 14:26:04 +09:00
inkch
d2e4e67de8 i3: add three new workspace for browser, console, and emacs 2025-01-14 14:17:22 +09:00
inkch
8fee57b18e i3: workspace 2 and 3 are now displayed on BenQ 2025-01-14 14:15:54 +09:00
inkch
84aae5f2ba polybar: increase interval 1 to 3 for the module/caffeine 2025-01-14 14:14:14 +09:00
inkch
0b5d7dd6b6 polybar: add new module ollama and its script 2025-01-14 14:13:57 +09:00
inkch
5299fa8d48 mozc: update user_dictionary.db 2025-01-14 14:11:53 +09:00
inkch
77c4036a6c yt-dlp: increase min-split-size to 4M (aria2c) 2025-01-14 14:06:17 +09:00
inkch
0a18fef87a nvim: remove trailing blank line 2025-01-14 14:02:24 +09:00
inkch
56cbe48f3f yt-dlp: reduce max-concurrent numbers to 8 (aria2c) 2025-01-14 14:00:37 +09:00
inkch
834f8131ff alacritty: add [general] for live_config_reload 2025-01-14 13:51:28 +09:00
inkch
41c657d5b4 X11: Comment out a line calling nvidia-settings
Due to a KMS error, now I'm tinkering nvidia related stuff.
2025-01-14 13:45:33 +09:00
8 changed files with 96 additions and 49 deletions

View File

@ -78,5 +78,6 @@ export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
{{ if eq .chezmoi.hostname "arch" -}}
# nvidia-settings
nvidia-settings --config="$XDG_CONFIG_HOME/nvidia/settings" --load-config-only
# 2024-10-14: Comment out below one line due to KMS error.
#nvidia-settings --config="$XDG_CONFIG_HOME/nvidia/settings" --load-config-only
{{- end }}

View File

@ -1,3 +1,4 @@
[general]
live_config_reload = true
[colors.bright]

View File

@ -52,6 +52,9 @@ set $ws_media "8"
set $ws_util "9"
set $ws_game "10"
set $ws_browser "21"
set $ws_console "22"
set $ws_emacs "23"
{{- if eq .chezmoi.hostname "arch" }}
set $DELL "primary"
@ -59,8 +62,8 @@ set $BenQ "HDMI-0"
workspace $ws0 output $BenQ
workspace $ws1 output $BenQ
workspace $ws2 output $DELL
workspace $ws3 output $DELL
workspace $ws2 output $BenQ
workspace $ws3 output $BenQ
workspace $ws4 output $DELL
workspace $ws5 output $DELL
workspace $ws6 output $DELL
@ -68,6 +71,9 @@ workspace $ws7 output $DELL
workspace $ws8 output $BenQ
workspace $ws9 output $BenQ
workspace $ws10 output $DELL
workspace $ws_browser output $DELL
workspace $ws_console output $DELL
workspace $ws_emacs output $DELL
{{- end }}
@ -195,9 +201,9 @@ bindsym $m+bracketright move right; resize set width 80 ppt
#############################################
## Alacritty
bindsym $m+comma exec --no-startup-id launch-console; workspace $ws2
bindsym $m+comma exec --no-startup-id launch-console
bindsym $m+$s+comma exec --no-startup-id launch-console tmp
bindsym $m+$s+period exec --no-startup-id launch-console emacs; workspace $ws3
bindsym $m+$s+period exec --no-startup-id launch-console emacs
@ -212,8 +218,8 @@ bindsym $m+$s+period exec --no-startup-id launch-console emacs; workspace $ws3
# bindsym $a+Down exec --no-startup-id pamixer -d 1 # decrease volume 1%
# bindsym $a+j exec --no-startup-id pamixer -d 1 # decrease volume 1%
bindsym $m+apostrophe exec --no-startup-id launch-pavucontrol
bindsym $m+$s+quotedbl exec --no-startup-id qpwgraph
bindsym $m+apostrophe exec --no-startup-id goto-window carla.Carla2 carla
bindsym $m+$s+quotedbl exec --no-startup-id launch-pavucontrol
# bindsym $m+$a+n exec --no-startup-id start-music-console
bindsym $m+$a+j exec --no-startup-id mpc --host 10.0.2.1 volume -2
bindsym $m+$a+k exec --no-startup-id mpc --host 10.0.2.1 volume +2
@ -231,28 +237,24 @@ bindsym $m+$a+slash exec --no-startup-id nowplaying
#####################################
# Browser
bindsym $m+m exec --no-startup-id open-brave; workspace $ws1
bindsym $m+$s+m exec --no-startup-id open-librewolf-private; workspace $ws1
bindsym $m+n exec --no-startup-id open-firefox-dev
bindsym $m+m exec --no-startup-id open-librewolf
bindsym $m+$s+m exec --no-startup-id open-librewolf-private
bindsym $m+n exec --no-startup-id toggl; workspace $ws_util
# Calendar/Tasks/Mail
bindsym $m+period exec --no-startup-id open-emacs; workspace $ws3
bindsym $m+slash exec --no-startup-id open-emacs-org-capture; workspace $ws3
# Emacs
bindsym $m+period exec --no-startup-id open-emacs
bindsym $m+slash exec --no-startup-id open-emacs-org-capture
# File manager
bindsym $m+grave exec --no-startup-id pcmanfm
bindsym $m+grave exec --no-startup-id bring-window pcmanfm pcmanfm
# Dictionary
bindsym $m+$s+slash exec --no-startup-id goldendictxdg.sh
# Rofi
# bindsym $m+space exec "rofi -show run -modi 'run,calc' -calc-command 'echo {result} | xsel -ib'"
bindsym $m+Return exec --no-startup-id rofi -show combi
# bindsym $m+Tab exec --no-startup-id "rofi -matching fuzzy -show window"
# bindsym $c+semicolon exec --no-startup-id clipcat-menu --finder custom
# bindsym $m+semicolon exec --no-startup-id rofi-copyq
bindsym $m+semicolon exec --no-startup-id "copyq show"
bindsym $m+$s+semicolon exec --no-startup-id "rofimoji"
bindsym $m+$s+semicolon exec --no-startup-id "rofimoji -f emojis html math miscellaneous musical supplemental_punctuation"
# Color pikcer
bindsym $m+$c+$s+a exec --no-startup-id gpick
@ -339,23 +341,42 @@ for_window [title="Alacritty@tmux:emacs"] move position left, resize set width 2
for_window [class="org.remmina.Remmina"] floating enable, resize set 1200 900, move position center
# Browser
for_window [class="Brave"] layout tabbed
for_window [class="Firefox"] layout tabbed
for_window [class="LibreWolf"] layout tabbed
for_window [class="Chromium"] layout tabbed
# floating music applications
for_window [class="Hydrogen"] floating enable, resize set 1200 750, move position 1940 px 30 px
for_window [class="Hydrogen" title="Mixer"] floating enable, resize set 1200 750, move position 1940 px 790 px
for_window [class="Surge XT"] floating enable, resize set 1200 750, move position 3260 px 100 px
for_window [class="Surge XT"] floating enable, resize set 1200 750, move position 3280 px 30 px
for_window [class="Qsynth"] floating enable, move position 2480 px 1200 px
for_window [class="Drumstick Metronome"] floating enable, resize set 100 100, move position 4000 px 1010 px
for_window [class="FLTK"] floating enable, resize set 1200 560, move position 3160 px 840 px # giada
for_window [class="FLTK" title="Warning"] floating enable, move position center
for_window [class="FLTK" title="Configuration"] floating enable, move position center
for_window [class="TkFDialog" title="Select Audio files"] floating enable, move position center 1000 px 800 px
for_window [class="Tk" title="Ultimate Vocal Remover"] floating enable, move position center
for_window [class="(g|G)metronome"] floating enable, move position center
for_window [class="LibreWolf" title=".*Extension:.*"] floating enable, resize set 720 840, move position center
for_window [class="(m|M)uted"] floating enable, resize set 1200 900, move position center
for_window [class="(a|A)udacity"] floating enable, resize set 1200 600, move position 3280 px 840 px
## assign application to specific workspace
### Tips: Run `xprop` (command line tool) to retrieve class, instance and title.
# Browser
assign [class="LibreWolf"] $ws_browser
assign [class="firefox-developer-edition"] $ws_browser
assign [class="Brave"] $ws_browser
assign [class="(c|C)hromium"] $ws_browser
assign [instance="track.toggl.com__timer"] $ws_util
# Terminal
assign [title="Alacritty@tmux:default"] $ws2
assign [title="Alacritty@tmux:emacs"] $ws3
assign [class="Emacs"] $ws3
assign [title="Alacritty@tmux:default"] $ws_console
assign [title="Alacritty@tmux:emacs"] $ws_emacs
assign [class="Emacs"] $ws_emacs
# VirtualBox setting
@ -371,6 +392,8 @@ assign [class="Homebank"] $ws5
assign [class="Hydrogen"] $ws_music # Drum machine
assign [class="Surge XT"] $ws_music # Synthesizer
assign [class="FLTK"] $ws_music # Giada (loop machine)
assign [class="muted"] $ws_music # music util tool
assign [class="(a|A)udacity"] $ws_music
# Photo/Music/Video Editing
assign [class="Rawtherapee"] $ws_studio # RAW image editor
@ -455,6 +478,8 @@ exec --no-startup-id flameshot > /dev/null 2>&1
# Audio
exec --no-startup-id start-mpd
exec --no-startup-id shairport-sync -o=pa
# JACK/Carla
exec --no-startup-id carla /home/inkch/Carla/play.carxp
# redshift (like f.lux)

View File

@ -1,2 +1 @@
return { 'tpope/vim-surround' }

View File

@ -61,7 +61,7 @@ font-5 = "Symbols Nerd Font:pixelsize=12;2"
{{- if eq .chezmoi.hostname "arch" }}
modules-left = i3 clicker xwindow
modules-center = date
modules-right = pueue filesystem temp cpu memory eth-down eth-up ipv6 caffeine cam tray
modules-right = pueue filesystem temp cpu memory eth-down eth-up ipv6 ollama caffeine cam tray
{{- else if eq .chezmoi.hostname "buzz" }}
modules-left = i3 xwindow
modules-center = date
@ -141,13 +141,20 @@ format-background = ${colors.alert}
label-padding-left = 2
label-padding-right = 2
exec = /home/inkch/.config/polybar/scripts/clicker-stat.sh
{{ end }}
[module/ollama]
type = custom/script
format = <label>
label = %output%
interval = 3
exec = /home/inkch/.config/polybar/scripts/ollama.sh
{{- end }}
[module/caffeine]
type = custom/script
format = <label>
label = %output%
interval = 1
interval = 3
exec = /home/inkch/.config/polybar/scripts/caffeine-check-status.py
click-left = /home/inkch/.config/polybar/scripts/caffeine-toggle.py

View File

@ -0,0 +1,6 @@
#!/usr/bin/dash
if systemctl is-active ollama >/dev/null; then
echo 'ol'
else
echo ''
fi

View File

@ -1,22 +1,30 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBZZDhwYzVWQ1cxVGlSVXg5
W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ba8KNm9zcwCpSRQb/eFOZSnEzlIWJGz8TbIleu2I0q3IUIbaHXNGjMcByM
nCh5OLr6Y4H4XIXl9nVaeWJOy4YEG9vG+nboq+z3WbnufV/+Z9e6aviSCY+GgcyO
jW/h06tAbWHzubYVhj81oS/N/WBrk3ryelIVhKxIcs7hvNEX0jnPC19EJh9NbXuQ
oY8K+Gz83Y/HFUKnLBQtah+Zu5t4OcmTEuCfoxGXqk+SAN2aD42strqQzXdLDEbI
5rR/t/Key/DocBAQZW7aLIee/q44xGKmELT32+nHWQFi8sWzGPIVkrE5sQVZtWmM
6jT8oipTQrKReLzeVnlBjd1uI6/+7Ngm54e/O0+/72Qf9ZlgkLBthsZUEIRXVTsA
miHx4zEMX4DNrsI5FIvqBr0M6GBOFImOeLysjPNawJdx+9OObAiLY1fZecGFb0qV
QK9kxcS7ahbVNEfzhqfvX5LCF2EJukBt9zd+JY3E2BvH8qNtSyLtWqWAMnDtbNhL
F7s74olskxz15n3n93byll7ezboJrifr7dJQwC3w4gvCGFiU5dVblHb0JyQWTXP9
KF7PzMaDos25m2AxExVCta/+PG/6zzETDJ9brW/zq2tPRxsTGKaL6nmaarg+8Ne0
0rv+Wcc+l83q7QrRfLY1PaKK5PxmZ7yW1V3X4aUnYpB6ZpT9uILDjjhX6o9UT2AX
LY3pSORQmK59W+WE/VcwEkYCGieV0WACpJsLgTZ0VcPkrs7fl1TQPNJWS0u6Qy73
wpNWPk5qiQs11GJEHdjuzxSGdNGkmf3Zs003/i7Nf0tpBv2lLPRxsTgUwuxMOsBc
iXI2ff80KA==
-----END AGE ENCRYPTED FILE-----

View File

@ -2,4 +2,4 @@
--prefer-free-formats
-o /mnt/hdd/vids/yt/%(uploader)s/%(title).250s.%(ext)s
--downloader 'aria2c'
--downloader-args 'aria2c:--console-log-level=warn -j 16 -x 16 -s 16 -k 1M -U "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"'
--downloader-args 'aria2c:--console-log-level=warn -j 8 -x 8 -s 8 -k 4M -U "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"'