Compare commits
10 Commits
be876256f2
...
bf16c34de7
Author | SHA1 | Date | |
---|---|---|---|
bf16c34de7 | |||
35bee5b311 | |||
22f56bb73a | |||
00e21032ed | |||
83a7e01a9f | |||
517f58a6dd | |||
6e2f124a69 | |||
98d8d45529 | |||
693dcccdf0 | |||
d5a6c30dcc |
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
2
config/hypr/hyprpaper.conf
Normal file
2
config/hypr/hyprpaper.conf
Normal file
@ -0,0 +1,2 @@
|
||||
proload = ~/arch.png
|
||||
wallpaper = ,~/arch.png
|
@ -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
1
scripts/status
Normal file
@ -0,0 +1 @@
|
||||
speakers
|
16
scripts/toggle-speakers.bash
Normal file
16
scripts/toggle-speakers.bash
Normal 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
|
14
scripts/toggle-waybar.bash
Normal file
14
scripts/toggle-waybar.bash
Normal 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
0
scripts/waybar-status
Normal file
Reference in New Issue
Block a user