mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2026-09-05 10:49:17 +00:00
Compare commits
5
Commits
fe212c0a92
...
0bb66b057d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0bb66b057d | ||
|
|
4f45baccc3 | ||
|
|
b1f2623edb | ||
|
|
27897b86b4 | ||
|
|
2ae891ebab |
@@ -0,0 +1 @@
|
||||
AquaAI/qwen3.5:4b
|
||||
@@ -22,15 +22,6 @@ function fixPulse() {
|
||||
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.
|
||||
function setupSinks() {
|
||||
pactl set-default-sink speakers
|
||||
@@ -66,23 +57,12 @@ function restartWireplumber() {
|
||||
systemctl --user restart wireplumber
|
||||
}
|
||||
|
||||
# arg parser
|
||||
for arg in "$@"
|
||||
do
|
||||
# Skip commands for i3wm
|
||||
if [[ $arg == *"-s"* ]]; then
|
||||
skipi3=true
|
||||
fi
|
||||
done
|
||||
|
||||
# Wire sinks
|
||||
setupSinks
|
||||
|
||||
# Eurorack audio interface
|
||||
sh ~/bin/audio/es9start.sh
|
||||
|
||||
launchi3
|
||||
systemctl --user restart polybar
|
||||
sleep 5
|
||||
restartWireplumber
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -7,7 +7,7 @@ bind = $mainMod, E, exec, $fileManager
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, D, exec, $menu
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
bind = $mainMod, J, layoutmsg, togglesplit # dwindle
|
||||
bind = $mainMod, L, exec, hyprlock
|
||||
bind = $mainMod, F, fullscreen
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ animations {
|
||||
}
|
||||
|
||||
dwindle {
|
||||
pseudotile = yes
|
||||
preserve_split = yes
|
||||
force_split = 2
|
||||
}
|
||||
@@ -40,4 +39,3 @@ master {
|
||||
}
|
||||
|
||||
gesture = 3, horizontal, workspace
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ misc {
|
||||
force_default_wallpaper = 0
|
||||
}
|
||||
|
||||
windowrulev2 = suppressevent maximize, class:.*
|
||||
windowrule = suppress_event maximize, match:class .*
|
||||
|
||||
source = ~/.config/hypr/bind-all.conf
|
||||
source = ~/.config/hypr/bind-framework.conf
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
|
||||
#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+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 $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 &
|
||||
|
||||
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 &
|
||||
|
||||
# Startup programs
|
||||
exec --no-startup-id i3-msg "workspace $wsSignal; exec flatpak run org.signal.Signal;"
|
||||
exec --no-startup-id i3-msg "workspace $ws5"
|
||||
exec --no-startup-id flatpak run org.signal.Signal
|
||||
exec --no-startup-id ~/bin/start-brave.sh
|
||||
exec --no-startup-id i3-msg "workspace $ws1; exec alacritty"
|
||||
|
||||
# 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
|
||||
|
||||
# Arkham Knight
|
||||
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=".*"] 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
|
||||
|
||||
# Factorio
|
||||
for_window [class="factorio" title="Factorio*"] move to workspace $wsGames
|
||||
|
||||
@@ -7,7 +7,6 @@ Requires=pipewire.service
|
||||
WantedBy=default.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=true
|
||||
ExecStart=%h/git/audio/snapcast/bin/snapclient
|
||||
ExecStop=killall -q snapclient
|
||||
Type=simple
|
||||
ExecStart=%h/git/audio/snapcast/bin/snapclient --player pipewire
|
||||
Restart=on-failure
|
||||
|
||||
Reference in New Issue
Block a user