Compare commits

...
5 Commits
10 changed files with 75 additions and 35 deletions
@@ -0,0 +1 @@
AquaAI/qwen3.5:4b
@@ -22,15 +22,6 @@ function fixPulse() {
fi fi
} }
# Start up programs that use audio.
function launchi3() {
if [ -z "$skipi3" ]; then
echo Opening i3wm sound workspaces
sleep .1 && i3-msg 'workspace 5; exec brave-browser'
#sleep 5.1 && python ~/bin/start-firefox.py
fi
}
# Set up sinks. # Set up sinks.
function setupSinks() { function setupSinks() {
pactl set-default-sink speakers pactl set-default-sink speakers
@@ -66,23 +57,12 @@ function restartWireplumber() {
systemctl --user restart wireplumber systemctl --user restart wireplumber
} }
# arg parser
for arg in "$@"
do
# Skip commands for i3wm
if [[ $arg == *"-s"* ]]; then
skipi3=true
fi
done
# Wire sinks # Wire sinks
setupSinks setupSinks
# Eurorack audio interface # Eurorack audio interface
sh ~/bin/audio/es9start.sh sh ~/bin/audio/es9start.sh
launchi3
systemctl --user restart polybar systemctl --user restart polybar
sleep 5 sleep 5
restartWireplumber restartWireplumber
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
# Restore Brave and place its windows after they finish opening.
preferences="$HOME/.config/BraveSoftware/Brave-Browser/Default/Preferences"
function enable_session_restore {
if [ ! -f "$preferences" ] || ! command -v jq &> /dev/null; then
return
fi
temp_file="$(mktemp "${preferences}.XXXXXX")"
if jq '.session.restore_on_startup = 1 | .profile.exit_type = "Normal"' \
"$preferences" > "$temp_file"; then
mv "$temp_file" "$preferences"
else
rm -f "$temp_file"
fi
}
enable_session_restore
i3-msg 'workspace 9; append_layout ~/.config/i3/brave-workspace-9.json; workspace 5'
brave-browser --restore-last-session &
# Brave creates restored windows asynchronously and after startup focus has moved.
for _ in {1..20}; do
sleep 0.5
i3-msg '[class="^Brave-browser$" workspace="^(?!9$).*"] move to workspace 5' \
> /dev/null
done
+1 -1
View File
@@ -7,7 +7,7 @@ bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating, bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, $menu bind = $mainMod, D, exec, $menu
bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, J, layoutmsg, togglesplit # dwindle
bind = $mainMod, L, exec, hyprlock bind = $mainMod, L, exec, hyprlock
bind = $mainMod, F, fullscreen bind = $mainMod, F, fullscreen
-2
View File
@@ -30,7 +30,6 @@ animations {
} }
dwindle { dwindle {
pseudotile = yes
preserve_split = yes preserve_split = yes
force_split = 2 force_split = 2
} }
@@ -40,4 +39,3 @@ master {
} }
gesture = 3, horizontal, workspace gesture = 3, horizontal, workspace
+1 -1
View File
@@ -34,7 +34,7 @@ misc {
force_default_wallpaper = 0 force_default_wallpaper = 0
} }
windowrulev2 = suppressevent maximize, class:.* windowrule = suppress_event maximize, match:class .*
source = ~/.config/hypr/bind-all.conf source = ~/.config/hypr/bind-all.conf
source = ~/.config/hypr/bind-framework.conf source = ~/.config/hypr/bind-framework.conf
+32
View File
@@ -0,0 +1,32 @@
{
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"type": "con",
"nodes": [
{
"border": "pixel",
"floating": "auto_off",
"percent": 0.5,
"swallows": [
{
"class": "^Brave-browser$",
"title": ".*Music Assistant.*"
}
],
"type": "con"
},
{
"border": "pixel",
"floating": "auto_off",
"percent": 0.5,
"swallows": [
{
"class": "^Brave-browser$",
"title": ".*YouTube.*"
}
],
"type": "con"
}
]
}
+7 -6
View File
@@ -224,7 +224,8 @@ for_window [class="^Bitwig Studio$" title="^Bitwig Studio"] exec sh ~/bin/audio/
for_window [class="^Bitwig Studio$" title="^Bitwig Studio"] exec systemctl --user restart i3wm-close-window.service for_window [class="^Bitwig Studio$" title="^Bitwig Studio"] exec systemctl --user restart i3wm-close-window.service
#Other #Other
for_window [class="Signal"] move to workspace $wsSignal for_window [class="Signal"] move to workspace $wsSignal; urgent disable
for_window [class="^Brick$"] move to workspace $ws2
#bindsym $mod+F5 gaps inner current set 0; gaps outer current set 0 #bindsym $mod+F5 gaps inner current set 0; gaps outer current set 0
#bindsym $mod+F6 gaps inner current set $inner; gaps outer current set $outer #bindsym $mod+F6 gaps inner current set $inner; gaps outer current set $outer
@@ -247,7 +248,7 @@ workspace $wsSignal output DP-2
workspace $ws9 output HDMI-0 workspace $ws9 output HDMI-0
workspace $ws10 output HDMI-0 workspace $ws10 output HDMI-0
exec --no-startup-id compton & exec --no-startup-id picom --backend glx --daemon
exec --no-startup-id feh --bg-scale ~/Pictures/desktop/0001.jpg & exec --no-startup-id feh --bg-scale ~/Pictures/desktop/0001.jpg &
mode "$g13" { mode "$g13" {
@@ -263,8 +264,8 @@ bindsym $mod+F1 mode "$g13"
exec_always --no-startup-id g13d --config ~/.config/g13/resolve.bind --logo ~/.config/g13/resolve.lpbm & exec_always --no-startup-id g13d --config ~/.config/g13/resolve.bind --logo ~/.config/g13/resolve.lpbm &
# Startup programs # Startup programs
exec --no-startup-id i3-msg "workspace $wsSignal; exec flatpak run org.signal.Signal;" exec --no-startup-id flatpak run org.signal.Signal
exec --no-startup-id i3-msg "workspace $ws5" exec --no-startup-id ~/bin/start-brave.sh
exec --no-startup-id i3-msg "workspace $ws1; exec alacritty" exec --no-startup-id i3-msg "workspace $ws1; exec alacritty"
# Starts Jack for audio # Starts Jack for audio
@@ -338,8 +339,8 @@ for_window [class="Minecraft*" title="Minecraft*"] move to workspace $wsGames
for_window [class="Minecraft*" title="Minecraft*"] exec --no-startup-id cat ~/.config/g13/minecraft.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/minecraft.lpbm > /tmp/g13-0 for_window [class="Minecraft*" title="Minecraft*"] exec --no-startup-id cat ~/.config/g13/minecraft.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/minecraft.lpbm > /tmp/g13-0
# Arkham Knight # Arkham Knight
for_window [class="steam_app_208650" title="*"] move to workspace $wsGames for_window [class="steam_app_208650" title=".*"] move to workspace $wsGames
for_window [class="steam_app_208650" title="*"] exec --no-startup-id cat ~/.config/g13/arkham-knight.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/arkham-knight.lpbm > /tmp/g13-0 for_window [class="steam_app_208650" title=".*"] exec --no-startup-id cat ~/.config/g13/arkham-knight.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/arkham-knight.lpbm > /tmp/g13-0
# Factorio # Factorio
for_window [class="factorio" title="Factorio*"] move to workspace $wsGames for_window [class="factorio" title="Factorio*"] move to workspace $wsGames
+3 -4
View File
@@ -7,7 +7,6 @@ Requires=pipewire.service
WantedBy=default.target WantedBy=default.target
[Service] [Service]
Type=oneshot Type=simple
RemainAfterExit=true ExecStart=%h/git/audio/snapcast/bin/snapclient --player pipewire
ExecStart=%h/git/audio/snapcast/bin/snapclient Restart=on-failure
ExecStop=killall -q snapclient