Salta al contingut principal

sxhkdrc

 

# Launch Browser (Firefox)
super + b
    firefox

# Launch Private Browser (Firefox Incognito Mode)
super + shift + b
    firefox -private-window

# Launch Terminal (Ghostty)
super + Return
    kitty

# Launch Rofi Application Menu
super + space
       rofi -show drun run window -line-padding 4 -hide-scrollbar -show-icons -theme ~/.config/bspwm/rofi/config.rasi

alt + Tab
    rofi -show window -config ~/.config/bspwm/rofi/config.rasi -modi window -line-padding 4 -hide-scrollbar -show-icons

super + w
     rofi -show dmenu ~/.config/bspwm/scripts/rofi-network-manager.sh

# Launch Floating Terminal
super + shift + Return
    gnome-terminal
    
# Show Keybinding Help Script
super + h
  ~/.config/bspwm/scripts/help

# Launch File Manager (Thunar)
super + f
    thunar

# Launch Geany (Text Editor)
super + e
    geany

# Launch GIMP (Image Editor)
super + g
    gimp

# Launch Pulsemixer (Audio Mixer in Tilix)
super + v
   kitty -e pulsemixer

# Launch Discord
super + d
    darktable

# Launch OBS (Screen Recording/Streaming)
super + o
    obs

# Set Window State: Floating Mode
super + shift + space
    bspc node -t ~floating

# Set Window State: Fullscreen Mode
super + shift + f
    bspc node -t fullscreen

# Reload sxhkd (Hotkey Daemon)
super + Escape
    pkill -USR1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
    
# Reload bspwm (Window Manager)
super + shift + r
    bspc wm -r; notify-send 'bspwm' 'Restarted'

# Quit bspwm (Exit Window Manager)
super + shift + q
    bspc quit

# Close Focused Window
super + q
    bspc node -c
    
# Shutdown or Reboot
super + x
    ~/.config/bspwm/scripts/power.sh

# Rotate Window 90° Clockwise
super + i
    bspc node -R 90

# Rotate Window 90° Counterclockwise
super + shift + i
    bspc node -R -90

# Change Focus to Left Window
super + Left
    bspc node -f west

# Change Focus to Window Below
super + Down
    bspc node -f south

# Change Focus to Window Above
super + Up
    bspc node -f north

# Change Focus to Right Window
super + Right
    bspc node -f east

# Swap Focused Window with Left Window
super + shift + Left
    bspc node -s west

# Swap Focused Window with Window Below
super + shift + Down
    bspc node -s south

# Swap Focused Window with Window Above
super + shift + Up
    bspc node -s north

# Swap Focused Window with Right Window
super + shift + Right
    bspc node -s east

# Switch to Workspace 1-12
super + {1-9,0,F1,F2}
    bspc desktop --focus ^{1-9,10,11,12}

# Move Focused Window to Workspace 1-12
super + shift + {1-9,0,F1,F2}
    bspc node --to-desktop ^{1-9,10,11,12}

# Expand window width both sides
super + ctrl + Left
    bspc node -z right 40 0; bspc node -z left 40 0

# Shrink window width both sides
super + ctrl + Right
    bspc node -z right -40 0; bspc node -z left -40 0

# Resize Window: Shrink Down
super + ctrl + Down
    bspc node -z top 0 40; bspc node -z bottom 40 0

# Resize Window: Shrink Up
super + ctrl + Up
    bspc node -z top 0 -40; bspc node -z bottom -40 0

# Increase Volume (Custom Script)
super + Insert
    ~/.config/bspwm/scripts/changevolume up

# Decrease Volume (Custom Script)
super + Delete
    ~/.config/bspwm/scripts/changevolume down

# Mute Volume (Custom Script)
super + m
    ~/.config/bspwm/scripts/changevolume mute

# Increase Volume (Using pamixer)
XF86AudioRaiseVolume
    pamixer -i 2

# Decrease Volume (Using pamixer)
XF86AudioLowerVolume
    pamixer -d 2

# Increase Screen Brightness
XF86MonBrightnessUp
    xbacklight +10

# Decrease Screen Brightness
XF86MonBrightnessDown
    xbacklight -10

# Take a Screenshot (Region Select)
super + Print
    flameshot gui --path ~/Screenshots/

# Take a Fullscreen Screenshot
Print
    flameshot full --path ~/Screenshots/
    
# Enable Redshift (Night Light)
super + alt + r
    ~/.config/bspwm/scripts/redshift-on

# Disable Redshift (Night Light)
super + alt + b
    ~/.config/bspwm/scripts/redshift-off

# Resize All Windows Equally
super + equal
    bspc query -N -d | xargs -I % bspc node % -B

Comentaris

Entrades populars d'aquest blog

Configurar fastfetch

Fastfetch és una de les múltiples opcions que tenim per mostrar la configuració del nostre sistema, substituint al clàssic neofetch que ha deixat de tenir suport per ser actualitzat. Aquest programa està allotjat a Github, on podrem trobar tota la informació sobre el mateix. FASTFETCH  També podrem trobar webs que ens expliquen com configuar-ho: DesdeLinux Cadascú pot modificar al seu gust la configuració inicial. En el meu cas em va agradar com ho va solucionar en Drew Grif ( https://justaguylinux.com/ ) Ho vaig copiar i modificar amb petits detalls que vaig creure que jo volia. La fantàstica cosa que té GNU/Linux. Per això us deixo aquí la meva configuració del meu fastfetch. Es veu així CONFIG.JSONC

Canviar propietat de fitxer o disc

Una solució quan em trobo que formato un disc amb gparted, que com ho fem com a superusuari, ens genera a quest com a propietari d'ús del mateix. Aleshores quan volem gestionar fitxers entre el disc extern i altre, no ens ho permet. Per aquest motiu hi ha un línia de comandament que ens ajuda a solucionar-ho. $ sudo chown -R "nom usuari" /media/"nomhome"/"nom del disc"  $ sudo chown -R jordi /media/jordi/"Master PHOTOS" Posem -R per fer-ho recursiu a tot els fitxers i carpetes. Si només fos en un fitxer no posaríem el <-R>. Important és posar entre cometes el nom de l'etiqueta del disc perquè funcioni correctament.  

Swappiness

La swappiness és el valor de transferència del sistema en llegir i enviar dades cap a la swap. Per defecte acostuma a venir en una valor de 60. La swappiness va de 0 a 100. Si tenim un disc sòlid com SSD o nvm2, per preservar la seva eficàcia i durada és convenient rebaixar aquest valor a uns valors entre 10 i 20 . Generalment es recomana 10, però cadascú escull el creu més adient. Si poséssim 0 la desactivaríem. Per saber el valor que tenim escriurem el següent a la terminal $ cat /proc/sys/vm/swappiness   A mi em surt 10 perquè ja l'he modificat. a vosaltres us sortirà 60. Per modificar el número de la swappiness de forma permanent haurem de modificar el fitxer següent amb l'editor nano $ sudo nano /etc/sysctl.d/99-swappiness.conf   I haurem d'escriure la línia que es veu a la imatge: vm.swappiness = 10 . Ctrl+O; Enter; Ctrl+X. Aleshores per consultar quin valor tenim ho sabrem amb aquesta línia de comandament $ sudo sysctl vm.swappiness   Hi ha altre f...