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

View File

@ -210,6 +210,7 @@
history_length = 20
### Misc/Advanced ###
dmenu = /usr/bin/tofi
# Browser for opening urls in context menu.
browser = /usr/bin/xdg-open
@ -228,7 +229,7 @@
# corners.
# The radius will be automatically lowered if it exceeds half of the
# notification height to avoid clipping text and/or icons.
corner_radius = 5
corner_radius = 10
# Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this
@ -315,6 +316,7 @@
[spotify]
appname = "Spotify"
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

View File

@ -40,19 +40,22 @@ $browser = firefox
# Or execute your favorite apps at launch like this:
exec-once = hyprpaper
exec-once = waybar
exec-once = systemctl --user start hyprpolkitagent
exec-once = dunst
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:browser silent] $browser -url "https://web.whatsapp.com"
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
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 ###
#############################
@ -220,7 +223,8 @@ bind = $mainMod SHIFT, S, exec, hyprshot -m region
bind = $mainMod, PRINT, exec, hyprshot -m window
bind = $mainMod SHIFT, B, exec, pkill waybar & hyprctl dispatch exec waybar
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
bind = $mainMod, left, movefocus, l
@ -243,7 +247,6 @@ bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
# Switch workspaces of secondary monitor with mainMod + [F1-9]
bind = $mainMod, F1, workspace, 11
@ -254,7 +257,6 @@ bind = $mainMod, F5, workspace, 15
bind = $mainMod, F6, workspace, 16
bind = $mainMod, F7, workspace, 17
bind = $mainMod, F8, workspace, 18
bind = $mainMod, F9, workspace, 19
# Move active window to a workspace with mainMod + SHIFT + [1-9] (primary monitor)
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, 7, movetoworkspace, 7
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)
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, F7, movetoworkspace, 17
bind = $mainMod SHIFT, F8, movetoworkspace, 18
bind = $mainMod SHIFT, F9, movetoworkspace, 19
# Special workspaces (scratchpad)
bind = $mainMod, F10, togglespecialworkspace, term
bind = $mainMod SHIFT, F10, movetoworkspace, special:term
bind = $mainMod, F12, togglespecialworkspace, term
bind = $mainMod SHIFT, F12, movetoworkspace, special:term
bind = $mainMod, F11, togglespecialworkspace, browser
bind = $mainMod SHIFT, F11, movetoworkspace, special:browser
bind = $mainMod, F12, togglespecialworkspace, music
bind = $mainMod SHIFT, F12, movetoworkspace, special:music
bind = $mainMod, F10, togglespecialworkspace, 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
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
windowrulev2 = float,title:^(.*Extension: Bitwarden.*)$
# Always center ClickUp command bar
windowrulev2 = center, title:ClickUp Command Bar
# Open audio settings in floating mode
windowrulev2 = float, 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;
font-family: 'Fira Sans Semibold', 'Symbols Nerd Font Mono';
font-size: 16px;
font-family: 'Cantarell', 'monospace', 'Symbols Nerd Font Mono';
font-size: 12px;
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
}
window#waybar {
background: transparent;
background: rgba(0, 0, 0, 0.5);
}
/* All modules */
@ -14,15 +14,12 @@ window#waybar {
/* Module on the left */
.modules-left {
color: #cdd6f4;
margin-top: 4px;
margin-left: 10px;
}
#custom-power {
background-color: rgba(255, 255, 255, 0.2);
color: white;
padding: 0px 9px;
border-radius: 100px;
padding: 0px 8px;
padding-left: 18px;
font-weight: 800;
}
@ -35,7 +32,6 @@ window#waybar {
margin-left: 10px;
font-size: 12px;
border-radius: 100px;
background-color: rgba(255, 255, 255, 0.2);
padding: 2px;
}
@ -43,34 +39,32 @@ window#waybar {
color: white;
animation: gradient_f 20s ease-in infinite;
transition: all 0.2s ease-in;
border-radius: 100px;
padding: 0px 4px;
margin: 0px 2px;
margin: 0px;
padding: 0px;
}
#workspaces button:hover {
background: none;
background-color: black;
color: white;
box-shadow: inherit;
text-shadow: inherit;
}
#workspaces button.active {
background-color: #33ccff;
color: #167797;
border-radius: 100px;
padding: 0px 10px;
color: #33ccff;
}
#custom-spotify {
margin-left: 20px;
padding: 0px 10px;
}
#custom-spotify:hover {
background-color: rgba(0, 0, 0, 0.4);
}
/* Module in the middle */
#clock {
color: #cdd6f4;
margin-top: 3px;
padding-left: 10px;
padding-right: 10px;
margin-right: 15px;
@ -79,36 +73,34 @@ window#waybar {
/* Module on the right */
.modules-right {
color: black;
margin-top: 3px;
color: white;
margin-right: 10px;
}
#custom-wireguard, #memory {
background-color: rgba(255, 255, 255, 0.8);
border-radius: 0px 100px 100px 0px;
padding-right: 7px;
.modules-right *:hover {
background-color: rgba(0, 0, 0, 0.2);
}
#bluetooth, #cpu {
background-color: rgba(255, 255, 255, 0.8);
border-radius: 100px 0px 0px 100px;
padding: 0px 7px;
.modules-right * {
padding: 0px 10px;
}
#memory {
margin-right: 7px;
padding-left: 5px;
}
#pulseaudio {
color: white;
margin-right: 7px;
#cpu {
padding-right: 5px;
}
#privacy {
background-color: rgba(17, 17, 27, 0.15);
padding: 0px 10px;
border-radius: 100px;
color: white;
margin-right: 7px;
}
#bluetooth {
padding-right: 5px;
}
#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",
"keybind" : "l"
}
{
"label" : "hibernate",
"action" : "systemctl hibernate",
"text" : "Hibernate",
"keybind" : "h"
}
{
"label" : "logout",
"action" : "loginctl terminate-user $USER",
@ -34,3 +28,9 @@
"text" : "Reboot",
"keybind" : "r"
}
{
"label" : "windows",
"action" : "/usr/local/bin/reboot_windows",
"text" : "Windows",
"keybind" : "w"
}

View File

@ -1,11 +1,11 @@
* {
background-image: none;
box-shadow: none;
font-family: "Fira Sans Semibold", 'Courier New', Courier, monospace;
font-family: "Cantarell", 'Courier New', Courier, monospace;
}
window {
background-color: rgba(12, 12, 12, 0.8);
background-color: rgba(12, 12, 12, 0.9);
}
button {
@ -23,7 +23,7 @@ button {
button:focus, button:active, button:hover {
color: #33CCFF;
outline-style: none;
font-family: "Fira Sans Bold";
font-family: "Cantarell";
}
#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"));
}
#hibernate {
background-image: image(url("/home/paul/.config/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png"));
}
#shutdown {
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 {
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"));
}

23
.zshrc
View File

@ -112,13 +112,13 @@ fi
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Reboot to Windows
reboot_windows()
{
windows_title=$(grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2)
sudo grub-reboot "$windows_title" && sudo reboot
}
alias reboot-windows='reboot_windows'
# Reboot to Windows (REPLACED WITH SCRIPT)
# reboot_windows()
# {
# windows_title=$(grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2)
# sudo grub-reboot "$windows_title" && sudo reboot
# }
# alias reboot-windows='reboot_windows'
# Command aliases
alias py=python3
@ -142,6 +142,8 @@ alias wol=wakeonlan
alias ge=gnome-extensions
alias open="xdg-open"
alias lg="lazygit"
alias ccat="pygmentize -g -O style=monokai,linenos=1"
alias wstmux="cd ~/code/wasteside/app && tmux new -A -s wasteside"
alias R="R --no-save"
@ -152,8 +154,9 @@ export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
# autojump
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
# vscode shortcuts
alias ws="cd ~/code/wasteside/app && code . && tmux new -A -s wasteside"
# ws shortcuts
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
LS_COLORS+=':ow=01;33'
@ -179,4 +182,4 @@ export PATH="$HOME/.yarn/bin:$PATH"
# pyenv stuff (make sure this is at the end of the file)
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv init -)"