various updates

This commit is contained in:
2025-02-27 10:40:26 +01:00
parent 7256aef51f
commit 34b5a37e8a
19 changed files with 208 additions and 78 deletions

View File

@ -290,4 +290,47 @@
"key": "ctrl+shift+i", "key": "ctrl+shift+i",
"command": "workbench.action.chat.openInEditor" "command": "workbench.action.chat.openInEditor"
}, },
{
"key": "ctrl+k e",
"command": "-workbench.files.action.focusOpenEditorsView",
"when": "workbench.explorer.openEditorsView.active"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpen"
},
{
"key": "ctrl+e",
"command": "-thunder-client.change-env",
"when": "activeWebviewPanelId == 'tc.env-view' || activeWebviewPanelId == 'tc.request-view' || activeWebviewPanelId == 'tc.runcol-view'"
},
{
"key": "ctrl+e",
"command": "-editor.action.toggleScreenReaderAccessibilityMode",
"when": "accessibilityHelpIsShown"
},
{
"key": "ctrl+r",
"command": "renameFile",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "f2",
"command": "-renameFile",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "ctrl+l",
"command": "-notebook.centerActiveCell",
"when": "notebookEditorFocused"
},
{
"key": "ctrl+shift+h",
"command": "-workbench.action.replaceInFiles"
},
{
"key": "ctrl+shift+h",
"command": "references-view.showCallHierarchy",
"when": "editorHasCallHierarchyProvider"
},
] ]

View File

@ -27,6 +27,11 @@
"**/.ammonite": true "**/.ammonite": true
}, },
// //
// File associations with languages
"files.associations": {
"*.pgpass" : "yaml",
},
//
// Settings Sync // Settings Sync
"settingsSync.ignoredSettings": [ "settingsSync.ignoredSettings": [
"sshfs.configs", "sshfs.configs",
@ -92,7 +97,7 @@
"emmet.showAbbreviationSuggestions": false, "emmet.showAbbreviationSuggestions": false,
"editor.linkedEditing": true, "editor.linkedEditing": true,
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.organizeImports": "always" // "source.organizeImports": "always"
} }
}, },
// //
@ -112,4 +117,5 @@
"emmet.showExpandedAbbreviation": "never", "emmet.showExpandedAbbreviation": "never",
"git.openRepositoryInParentFolders": "never", "git.openRepositoryInParentFolders": "never",
"editor.selectionClipboard": false, "editor.selectionClipboard": false,
"git.blame.editorDecoration.enabled": true,
} }

View File

@ -210,6 +210,7 @@
history_length = 20 history_length = 20
### Misc/Advanced ### ### Misc/Advanced ###
dmenu = /usr/bin/tofi
# Browser for opening urls in context menu. # Browser for opening urls in context menu.
browser = /usr/bin/xdg-open browser = /usr/bin/xdg-open
@ -228,7 +229,7 @@
# corners. # corners.
# The radius will be automatically lowered if it exceeds half of the # The radius will be automatically lowered if it exceeds half of the
# notification height to avoid clipping text and/or icons. # notification height to avoid clipping text and/or icons.
corner_radius = 5 corner_radius = 10
# Ignore the dbus closeNotification message. # Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this # Useful to enforce the timeout set by dunst configuration. Without this
@ -315,6 +316,7 @@
[spotify] [spotify]
appname = "Spotify" appname = "Spotify"
frame_color = "#1ED760" frame_color = "#1ED760"
format = "Now Playing\n<b>%s</b>\n%b"
# Every section that isn't one of the above is interpreted as a rules to # Every section that isn't one of the above is interpreted as a rules to

View File

@ -40,19 +40,22 @@ $browser = firefox
# Or execute your favorite apps at launch like this: # Or execute your favorite apps at launch like this:
exec-once = hyprpaper exec-once = hyprpaper
exec-once = waybar
exec-once = systemctl --user start hyprpolkitagent exec-once = systemctl --user start hyprpolkitagent
exec-once = dunst exec-once = dunst
exec-once = wl-paste --type text --watch cliphist store # Stores only text data exec-once = wl-paste --type text --watch cliphist store # Stores only text data
exec-once = noisetorch -i
exec-once = [ workspace special:term silent] $terminal exec-once = [ workspace special:term silent] $terminal
exec-once = [ workspace special:browser silent] $browser -url "https://web.whatsapp.com" exec-once = [ workspace special:browser silent] $browser -url "https://web.whatsapp.com"
exec-once = [ workspace special:music silent] spotify exec-once = [ workspace special:music silent] spotify
exec-once = [ workspace special:todo silent] clickup
# Script to make bitwarden firefox extension windows launch in floating mode # Script to make bitwarden firefox extension windows launch in floating mode
exec-once = ~/.config/hypr/scripts/float-bitwarden.sh exec-once = ~/.config/hypr/scripts/float-bitwarden.sh
# Plugins
exec-once = hyprpm enable Hyprspace
exec-once = waybar 2>&1 > /home/paul/waybar.log
############################# #############################
### ENVIRONMENT VARIABLES ### ### ENVIRONMENT VARIABLES ###
############################# #############################
@ -220,7 +223,8 @@ bind = $mainMod SHIFT, S, exec, hyprshot -m region
bind = $mainMod, PRINT, exec, hyprshot -m window bind = $mainMod, PRINT, exec, hyprshot -m window
bind = $mainMod SHIFT, B, exec, pkill waybar & hyprctl dispatch exec waybar bind = $mainMod SHIFT, B, exec, pkill waybar & hyprctl dispatch exec waybar
bind = $mainMod SHIFT, C, exec, hyprpicker | wl-copy bind = $mainMod SHIFT, C, exec, hyprpicker | wl-copy
bind = $mainMod, TAB, overview:toggle # bind = $mainMod, TAB, overview:toggle
bind = $mainMod, END, exec, wlogout -b 6 -L 1100 -R 1100 -T 650 -B 650
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l bind = $mainMod, left, movefocus, l
@ -243,7 +247,6 @@ bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6 bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7 bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8 bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
# Switch workspaces of secondary monitor with mainMod + [F1-9] # Switch workspaces of secondary monitor with mainMod + [F1-9]
bind = $mainMod, F1, workspace, 11 bind = $mainMod, F1, workspace, 11
@ -254,7 +257,6 @@ bind = $mainMod, F5, workspace, 15
bind = $mainMod, F6, workspace, 16 bind = $mainMod, F6, workspace, 16
bind = $mainMod, F7, workspace, 17 bind = $mainMod, F7, workspace, 17
bind = $mainMod, F8, workspace, 18 bind = $mainMod, F8, workspace, 18
bind = $mainMod, F9, workspace, 19
# Move active window to a workspace with mainMod + SHIFT + [1-9] (primary monitor) # Move active window to a workspace with mainMod + SHIFT + [1-9] (primary monitor)
bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 1, movetoworkspace, 1
@ -265,7 +267,6 @@ bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
# Move active window to a workspace with mainMod + SHIFT + [F1-F9] (secondary monitor) # Move active window to a workspace with mainMod + SHIFT + [F1-F9] (secondary monitor)
bind = $mainMod SHIFT, F1, movetoworkspace, 11 bind = $mainMod SHIFT, F1, movetoworkspace, 11
@ -276,15 +277,16 @@ bind = $mainMod SHIFT, F5, movetoworkspace, 15
bind = $mainMod SHIFT, F6, movetoworkspace, 16 bind = $mainMod SHIFT, F6, movetoworkspace, 16
bind = $mainMod SHIFT, F7, movetoworkspace, 17 bind = $mainMod SHIFT, F7, movetoworkspace, 17
bind = $mainMod SHIFT, F8, movetoworkspace, 18 bind = $mainMod SHIFT, F8, movetoworkspace, 18
bind = $mainMod SHIFT, F9, movetoworkspace, 19
# Special workspaces (scratchpad) # Special workspaces (scratchpad)
bind = $mainMod, F10, togglespecialworkspace, term bind = $mainMod, F12, togglespecialworkspace, term
bind = $mainMod SHIFT, F10, movetoworkspace, special:term bind = $mainMod SHIFT, F12, movetoworkspace, special:term
bind = $mainMod, F11, togglespecialworkspace, browser bind = $mainMod, F11, togglespecialworkspace, browser
bind = $mainMod SHIFT, F11, movetoworkspace, special:browser bind = $mainMod SHIFT, F11, movetoworkspace, special:browser
bind = $mainMod, F12, togglespecialworkspace, music bind = $mainMod, F10, togglespecialworkspace, music
bind = $mainMod SHIFT, F12, movetoworkspace, special:music bind = $mainMod SHIFT, F10, movetoworkspace, special:music
bind = $mainMod, F9, togglespecialworkspace, todo
bind = $mainMod SHIFT, F9, movetoworkspace, special:todo
# Move/resize windows with mainMod + LMB/RMB and dragging # Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:272, movewindow
@ -320,6 +322,9 @@ windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinn
# Window rules to assign windows to workspaces # Window rules to assign windows to workspaces
windowrulev2 = float,title:^(.*Extension: Bitwarden.*)$ windowrulev2 = float,title:^(.*Extension: Bitwarden.*)$
# Always center ClickUp command bar
windowrulev2 = center, title:ClickUp Command Bar
# Open audio settings in floating mode # Open audio settings in floating mode
windowrulev2 = float, class:org.pulseaudio.pavucontrol windowrulev2 = float, class:org.pulseaudio.pavucontrol
windowrulev2 = size 500 1000, class:org.pulseaudio.pavucontrol windowrulev2 = size 500 1000, class:org.pulseaudio.pavucontrol

View File

@ -0,0 +1,6 @@
context.modules = [
{
name = libpipewire-module-raop-discover
args = { }
}
]

View File

@ -1,12 +1,12 @@
* { * {
border: none; border: none;
font-family: 'Fira Sans Semibold', 'Symbols Nerd Font Mono'; font-family: 'Cantarell', 'monospace', 'Symbols Nerd Font Mono';
font-size: 16px; font-size: 12px;
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
} }
window#waybar { window#waybar {
background: transparent; background: rgba(0, 0, 0, 0.5);
} }
/* All modules */ /* All modules */
@ -14,15 +14,12 @@ window#waybar {
/* Module on the left */ /* Module on the left */
.modules-left { .modules-left {
color: #cdd6f4; color: #cdd6f4;
margin-top: 4px;
margin-left: 10px;
} }
#custom-power { #custom-power {
background-color: rgba(255, 255, 255, 0.2);
color: white; color: white;
padding: 0px 9px; padding: 0px 8px;
border-radius: 100px; padding-left: 18px;
font-weight: 800; font-weight: 800;
} }
@ -35,7 +32,6 @@ window#waybar {
margin-left: 10px; margin-left: 10px;
font-size: 12px; font-size: 12px;
border-radius: 100px; border-radius: 100px;
background-color: rgba(255, 255, 255, 0.2);
padding: 2px; padding: 2px;
} }
@ -43,34 +39,32 @@ window#waybar {
color: white; color: white;
animation: gradient_f 20s ease-in infinite; animation: gradient_f 20s ease-in infinite;
transition: all 0.2s ease-in; transition: all 0.2s ease-in;
border-radius: 100px; margin: 0px;
padding: 0px 4px; padding: 0px;
margin: 0px 2px;
} }
#workspaces button:hover { #workspaces button:hover {
background: none; background: none;
background-color: black;
color: white; color: white;
box-shadow: inherit; box-shadow: inherit;
text-shadow: inherit; text-shadow: inherit;
} }
#workspaces button.active { #workspaces button.active {
background-color: #33ccff; color: #33ccff;
color: #167797;
border-radius: 100px;
padding: 0px 10px;
} }
#custom-spotify { #custom-spotify {
margin-left: 20px; padding: 0px 10px;
}
#custom-spotify:hover {
background-color: rgba(0, 0, 0, 0.4);
} }
/* Module in the middle */ /* Module in the middle */
#clock { #clock {
color: #cdd6f4; color: #cdd6f4;
margin-top: 3px;
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
margin-right: 15px; margin-right: 15px;
@ -79,36 +73,34 @@ window#waybar {
/* Module on the right */ /* Module on the right */
.modules-right { .modules-right {
color: black; color: white;
margin-top: 3px;
margin-right: 10px; margin-right: 10px;
} }
#custom-wireguard, #memory { .modules-right *:hover {
background-color: rgba(255, 255, 255, 0.8); background-color: rgba(0, 0, 0, 0.2);
border-radius: 0px 100px 100px 0px;
padding-right: 7px;
} }
#bluetooth, #cpu { .modules-right * {
background-color: rgba(255, 255, 255, 0.8); padding: 0px 10px;
border-radius: 100px 0px 0px 100px;
padding: 0px 7px;
} }
#memory { #memory {
margin-right: 7px; padding-left: 5px;
} }
#pulseaudio { #cpu {
color: white; padding-right: 5px;
margin-right: 7px;
} }
#privacy { #bluetooth {
background-color: rgba(17, 17, 27, 0.15); padding-right: 5px;
padding: 0px 10px;
border-radius: 100px;
color: white;
margin-right: 7px;
} }
#custom-wireguard {
padding-left: 5px;
}

View File

@ -0,0 +1,75 @@
monitor.alsa.rules = [
# OUTPUT DEVICES
{
matches = [
{ node.name = "alsa_output.pci-0000_01_00.1.hdmi-stereo" }
],
actions = {
update-props = {
node.description = "BenQ GL2580",
}
}
},
{
matches = [
{ node.name = "alsa_output.pci-0000_11_00.6.analog-stereo" }
],
actions = {
update-props = {
node.description = "Logitech Z313",
}
}
},
{
matches = [
{ node.name = "alsa_output.usb-Razer_Razer_BlackShark_V2_Pro-00.analog-stereo" }
],
actions = {
update-props = {
node.description = "Razer BlackShark V2 Pro",
}
}
},
{
matches = [
{ node.name = "alsa_output.usb-R__DE_Microphones_R__DE_NT-USB_Mini_514A76EB-00.analog-stereo" }
],
actions = {
update-props = {
node.description = "RØDE NT-USB Mini",
}
}
},
# INPUT DEVICES
{
matches = [
{ node.name = "alsa_input.usb-R__DE_Microphones_R__DE_NT-USB_Mini_514A76EB-00.mono-fallback" }
],
actions = {
update-props = {
node.description = "RØDE NT-USB Mini",
}
}
},
{
matches = [
{ node.name = "alsa_input.usb-Razer_Razer_BlackShark_V2_Pro-00.mono-fallback" }
],
actions = {
update-props = {
node.description = "Razer BlackShark V2 Pro",
}
}
},
{
matches = [
{ node.name = "alsa_input.pci-0000_11_00.6.analog-stereo" }
],
actions = {
update-props = {
node.description = "3.5mm Input",
}
}
}
]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="#33ccff" fill-rule="evenodd" d="M12 2.75A5.25 5.25 0 0 0 6.75 8v2.004Q7.323 9.999 8 10h8c2.828 0 4.243 0 5.121.879C22 11.757 22 13.172 22 16s0 4.243-.879 5.121C20.243 22 18.828 22 16 22H8c-2.828 0-4.243 0-5.121-.879C2 20.243 2 18.828 2 16s0-4.243.879-5.121c.53-.531 1.256-.741 2.371-.824V8a6.75 6.75 0 0 1 13.287-1.687a.75.75 0 1 1-1.452.374A5.25 5.25 0 0 0 12 2.75M12.75 14a.75.75 0 0 0-1.5 0v4a.75.75 0 0 0 1.5 0z" clip-rule="evenodd"/></svg>

Before

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 24 24"><path fill="white" fill-rule="evenodd" d="M12 2.75A5.25 5.25 0 0 0 6.75 8v2.004Q7.323 9.999 8 10h8c2.828 0 4.243 0 5.121.879C22 11.757 22 13.172 22 16s0 4.243-.879 5.121C20.243 22 18.828 22 16 22H8c-2.828 0-4.243 0-5.121-.879C2 20.243 2 18.828 2 16s0-4.243.879-5.121c.53-.531 1.256-.741 2.371-.824V8a6.75 6.75 0 0 1 13.287-1.687a.75.75 0 1 1-1.452.374A5.25 5.25 0 0 0 12 2.75M12.75 14a.75.75 0 0 0-1.5 0v4a.75.75 0 0 0 1.5 0z" clip-rule="evenodd"/></svg>

Before

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -4,12 +4,6 @@
"text" : "Lock", "text" : "Lock",
"keybind" : "l" "keybind" : "l"
} }
{
"label" : "hibernate",
"action" : "systemctl hibernate",
"text" : "Hibernate",
"keybind" : "h"
}
{ {
"label" : "logout", "label" : "logout",
"action" : "loginctl terminate-user $USER", "action" : "loginctl terminate-user $USER",
@ -34,3 +28,9 @@
"text" : "Reboot", "text" : "Reboot",
"keybind" : "r" "keybind" : "r"
} }
{
"label" : "windows",
"action" : "/usr/local/bin/reboot_windows",
"text" : "Windows",
"keybind" : "w"
}

View File

@ -1,11 +1,11 @@
* { * {
background-image: none; background-image: none;
box-shadow: none; box-shadow: none;
font-family: "Fira Sans Semibold", 'Courier New', Courier, monospace; font-family: "Cantarell", 'Courier New', Courier, monospace;
} }
window { window {
background-color: rgba(12, 12, 12, 0.8); background-color: rgba(12, 12, 12, 0.9);
} }
button { button {
@ -23,7 +23,7 @@ button {
button:focus, button:active, button:hover { button:focus, button:active, button:hover {
color: #33CCFF; color: #33CCFF;
outline-style: none; outline-style: none;
font-family: "Fira Sans Bold"; font-family: "Cantarell";
} }
#lock { #lock {
@ -38,10 +38,6 @@ button:focus, button:active, button:hover {
background-image: image(url("/home/paul/.config/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png")); background-image: image(url("/home/paul/.config/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png"));
} }
#hibernate {
background-image: image(url("/home/paul/.config/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png"));
}
#shutdown { #shutdown {
background-image: image(url("/home/paul/.config/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png")); background-image: image(url("/home/paul/.config/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png"));
} }
@ -49,3 +45,7 @@ button:focus, button:active, button:hover {
#reboot { #reboot {
background-image: image(url("/home/paul/.config/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png")); background-image: image(url("/home/paul/.config/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
} }
#windows {
background-image: image(url("/home/paul/.config/wlogout/icons/windows.png"), url("/usr/local/share/wlogout/icons/windows.png"));
}

21
.zshrc
View File

@ -112,13 +112,13 @@ fi
# alias zshconfig="mate ~/.zshrc" # alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh" # alias ohmyzsh="mate ~/.oh-my-zsh"
# Reboot to Windows # Reboot to Windows (REPLACED WITH SCRIPT)
reboot_windows() # reboot_windows()
{ # {
windows_title=$(grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2) # windows_title=$(grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2)
sudo grub-reboot "$windows_title" && sudo reboot # sudo grub-reboot "$windows_title" && sudo reboot
} # }
alias reboot-windows='reboot_windows' # alias reboot-windows='reboot_windows'
# Command aliases # Command aliases
alias py=python3 alias py=python3
@ -142,6 +142,8 @@ alias wol=wakeonlan
alias ge=gnome-extensions alias ge=gnome-extensions
alias open="xdg-open" alias open="xdg-open"
alias lg="lazygit" alias lg="lazygit"
alias ccat="pygmentize -g -O style=monokai,linenos=1"
alias wstmux="cd ~/code/wasteside/app && tmux new -A -s wasteside" alias wstmux="cd ~/code/wasteside/app && tmux new -A -s wasteside"
alias R="R --no-save" alias R="R --no-save"
@ -152,8 +154,9 @@ export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
# autojump # autojump
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh [ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
# vscode shortcuts # ws shortcuts
alias ws="cd ~/code/wasteside/app && code . && tmux new -A -s wasteside" alias wsproddb="psql -h ep-shiny-brook-a23l5gzv-pooler.eu-central-1.aws.neon.tech -d neondb -U neondb_owner"
alias wsdevdb="psql -h ep-bitter-queen-a2jgwcaj-pooler.eu-central-1.aws.neon.tech -d verceldb -U default"
# Fix ls colors for synology directories # Fix ls colors for synology directories
LS_COLORS+=':ow=01;33' LS_COLORS+=':ow=01;33'