Compare commits

...

10 Commits

Author SHA1 Message Date
bf16c34de7 feat: toggleing waybar 2025-05-20 10:59:19 +01:00
35bee5b311 using mainmod 2025-05-08 17:28:52 +01:00
22f56bb73a fix: using mainmode instead 2025-05-08 17:28:13 +01:00
00e21032ed configs! 2025-05-07 15:33:04 +01:00
83a7e01a9f add-package: hyprpaper 2025-05-07 15:21:18 +01:00
517f58a6dd fix 2025-05-07 15:14:25 +01:00
6e2f124a69 fix massive JQ thing to find the names 2025-04-28 21:22:21 +01:00
98d8d45529 feat: toggling audio between speakers 2025-04-28 18:13:34 +01:00
693dcccdf0 feat: auto starts 2025-04-28 17:42:16 +01:00
d5a6c30dcc fix: muting mic works 2025-04-28 17:11:14 +01:00
9 changed files with 53 additions and 8 deletions

View File

@ -145,7 +145,7 @@ arch = [
"xorg-xinit",
"yay",
"zram-generator", "lazygit", "logseq-desktop-bin", "tailscale", "git-delta", "keepassxc", "slack-desktop-wayland", "pavucontrol", "telegram-desktop", "filelight", "nodejs", "yarn", "rustup"
, "vtsls","git-lfs", "qt6ct", "less", "ttf-fira-sans", "texlive-bin", "texstudio", "gopls", "postgresql", "hoppscotch-bin", "dbeaver", "obs-studio", "mullvad-vpn", "bun-bin", "hyprshot", "qt6-svg", "qt6-declarative", "qt5-quickcontrols2", "wl-clipboard-history", "cliphist", "stylua", "biome", "okular", "docker", "docker-compose", "bluez", "gwenview", "tailwindcss-language-server", "archlinux-xdg-menu"]
, "vtsls","git-lfs", "less", "ttf-fira-sans", "texlive-bin", "texstudio", "gopls", "postgresql", "hoppscotch-bin", "dbeaver", "obs-studio", "mullvad-vpn", "bun-bin", "hyprshot", "qt6-svg", "qt6-declarative", "qt5-quickcontrols2", "wl-clipboard-history", "cliphist", "stylua", "biome", "okular", "docker", "docker-compose", "bluez", "gwenview", "tailwindcss-language-server", "hyprpaper"]
cargo = ["wasm-pack"]

View File

@ -1,5 +1,9 @@
set fish_greeting
set -gx ANDROID_SDK_ROO
set -gx ANDROID_HOME $HOME/Android/Sdk
set -gx NDK_HOME $ANDROID_HOME/ndk/$(ls -1 $ANDROID_HOME/ndk)
alias add-pkg="bash ~/Code/dotfiles/scripts/add-package.bash"
starship init fish | source

View File

@ -51,7 +51,6 @@ $menu = wofi --show drun
exec-once = waybar
exec-once = wl-paste --watch cliphist store
#############################
### ENVIRONMENT VARIABLES ###
#############################
@ -71,6 +70,10 @@ env = QT_QPA_PLATFORMTHEME,qt5ct
exec = XDG_MENU_PREFIX=arch- kbuildsycoca6
# Default starts
exec-once = [workspace 9 silent] keepassxc
exec-once = [workspace 2 silent] vivaldi
#####################
### LOOK AND FEEL ###
#####################
@ -228,12 +231,16 @@ $mainMod = SUPER # Sets "Windows" key as main modifier
bind = $mainMod SHIFT, S, exec, hyprshot -m region -o ~/Pictures/Screenshots
bind = $mainMod, V, exec, cliphist list | fuzzel --dmenu | cliphist decode | wl-copy
bind = Control, M, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
# Audio control
bind = $mainMod, M, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bind = $mainMod, K, exec, bash ~/Code/dotfiles/scripts/toggle-speakers.bash
# Toggle waybar
bind = $mainMod, W, exec, bash ~/Code/dotfiles/scripts/toggle-waybar.bash
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, T, exec, $terminal
bind = $mainMod, Q, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod SHIFT, V, togglefloating,
bind = $mainMod, P, pseudo, # dwindle

View File

@ -0,0 +1,2 @@
proload = ~/arch.png
wallpaper = ,~/arch.png

View File

@ -39,12 +39,13 @@
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%",
"format": "{icon} {format_source} {volume}%",
"format-muted": "",
"format-source": " micrófono {volume}%",
"format-source-muted": " microphone-slash",
"format-source": "",
"format-source-muted": "",
"format-icons": {
"default": ["", "", " "]
"hdmi": ["", "", " "],
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},

1
scripts/status Normal file
View File

@ -0,0 +1 @@
speakers

View File

@ -0,0 +1,16 @@
#!/bin/bash
cd ~/Code/dotfiles/scripts
status=$(cat ./status)
speaker_id=$(pw-dump | jq 'map(select(.type == "PipeWire:Interface:Node" and .info.props.["media.class"] == "Audio/Sink" and .info.props.["alsa.card_name"] == "HDA NVidia")) | map({"id"}) | .[].id')
headphone_id=$(pw-dump | jq 'map(select(.type == "PipeWire:Interface:Node" and .info.props.["media.class"] == "Audio/Sink" and .info.props.["alsa.card_name"] == "Razer Kraken Kitty Edition")) | map({"id"}) | .[].id')
if [ $status == "speakers" ]; then
wpctl set-default $headphone_id
echo "headphones" > ./status
else
wpctl set-default $speaker_id
echo "speakers" > ./status
fi

View File

@ -0,0 +1,14 @@
cd ~/Code/dotfiles/scripts
waybar_status=$(ps -a | rg "waybar" | awk '{print $1}')
if [ -z $waybar_status ]; then
# Waybar not found. Let's toggle it
echo "Starting"
waybar &
else
# Waybar found, lets close it.
echo "Killing"
echo $(kill $waybar_status)
fi

0
scripts/waybar-status Normal file
View File