mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
feat: Hyprland updates, install package updates, new close all windows script
This commit is contained in:
@@ -38,10 +38,10 @@ source = ~/.config/hypr/autostart.conf
|
|||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
# https://wiki.hyprland.org/Configuring/Variables/#general
|
||||||
general {
|
general {
|
||||||
gaps_in = 3
|
gaps_in = 5
|
||||||
gaps_out = 0, 5, 5, 5
|
gaps_out = 0, 5, 5, 5
|
||||||
|
|
||||||
border_size = 1
|
border_size = 2
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
@@ -53,7 +53,7 @@ general {
|
|||||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||||
allow_tearing = false
|
allow_tearing = false
|
||||||
|
|
||||||
layout = master # dwindle or master
|
layout = dwindle # dwindle or master
|
||||||
}
|
}
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||||
@@ -117,9 +117,9 @@ dwindle {
|
|||||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + SHIFT + P in the keybinds section below
|
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + SHIFT + P in the keybinds section below
|
||||||
preserve_split = true # You probably want this
|
preserve_split = true # You probably want this
|
||||||
force_split = 2 # always split to the right or bottom
|
force_split = 2 # always split to the right or bottom
|
||||||
split_width_multiplier = 1.25
|
#split_width_multiplier = 1.25
|
||||||
use_active_for_splits = false
|
use_active_for_splits = false
|
||||||
default_split_ratio = 1.25
|
#default_split_ratio = 1.25
|
||||||
split_bias = 0
|
split_bias = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ bind = $mainMod, N, exec, $terminal -e nvim
|
|||||||
bind = $mainMod, P, exec, $pwa "https://pass.proton.me"
|
bind = $mainMod, P, exec, $pwa "https://pass.proton.me"
|
||||||
bind = $mainMod SHIFT, P, pseudo, # dwindle
|
bind = $mainMod SHIFT, P, pseudo, # dwindle
|
||||||
bind = $mainMod, Y, exec, $pwa "https://youtube.com"
|
bind = $mainMod, Y, exec, $pwa "https://youtube.com"
|
||||||
bind = $mainMod, V, exec, kitty --class clipse -e clipse
|
bind = $mainMod, V, exec, $terminal --class=com.ghostty.clipse -e clipse
|
||||||
bind = $mainMod, W, killactive,
|
bind = $mainMod, W, killactive,
|
||||||
bind = $mainMod SHIFT, R, exec, ~/.local/bin/waybar-restart
|
bind = $mainMod SHIFT, R, exec, ~/.local/bin/waybar-restart
|
||||||
|
|
||||||
@@ -62,6 +62,7 @@ bind = $mainMod SHIFT ALT, 4, exec, hyprshot -m region -o ~/Pictures
|
|||||||
bind = $mainMod SHIFT ALT, 3, exec, hyprshot -m window -o ~/Pictures
|
bind = $mainMod SHIFT ALT, 3, exec, hyprshot -m window -o ~/Pictures
|
||||||
|
|
||||||
bind = CTRL, F, exec, ~/.local/bin/window-toggle-floating
|
bind = CTRL, F, exec, ~/.local/bin/window-toggle-floating
|
||||||
|
#bind = CTRL, F, togglefloating,
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
bind = $mainMod, H, movefocus, l
|
bind = $mainMod, H, movefocus, l
|
||||||
|
|||||||
@@ -5,6 +5,6 @@
|
|||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor= ,preferred,auto,auto
|
monitor= ,preferred,auto,auto
|
||||||
#monitor = HDMI-A-1, preferred, 0x0, auto
|
#monitor = HDMI-A-1, preferred, 0x0, auto
|
||||||
monitor = HDMI-A-1, preferred, 0x0, 1.66667
|
#monitor = HDMI-A-1, preferred, 0x0, 1.66667
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
windowrule = float, class:^(blueberry.py)$
|
windowrule = float, class:^(blueberry.py)$
|
||||||
|
|
||||||
# Clipboard history tui in floating window.
|
# Clipboard history tui in floating window.
|
||||||
windowrule = float, class:(clipse)
|
windowrule = float, class:.*clipse.*
|
||||||
windowrule = size 622 652, class:(clipse)
|
windowrule = size 622 652, class:.*clipse.*
|
||||||
windowrule = stayfocused, class:(clipse)
|
windowrule = stayfocused, class:.*clipse.*
|
||||||
|
|
||||||
|
|
||||||
windowrule = float,class:^(float)$
|
windowrule = float,class:^(float)$
|
||||||
|
|||||||
5
scripts/arch/close-all-windows
Executable file
5
scripts/arch/close-all-windows
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
hyprctl clients -j | \
|
||||||
|
jq '.[] | .address' | \
|
||||||
|
xargs -I{} hyprctl dispatch closewindow address:{}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# The percentage of the screen size for the floating window.
|
# The percentage of the screen size for the floating window.
|
||||||
WIDTH_PERCENT=80
|
WIDTH_PERCENT=80
|
||||||
HEIGHT_PERCENT=80
|
HEIGHT_PERCENT=40
|
||||||
|
|
||||||
floating=$(hyprctl activewindow -j | jq '.floating')
|
floating=$(hyprctl activewindow -j | jq '.floating')
|
||||||
|
|
||||||
@@ -14,11 +14,14 @@ else
|
|||||||
monitor=$(hyprctl monitors -j | jq '.[] | select(.focused == true)')
|
monitor=$(hyprctl monitors -j | jq '.[] | select(.focused == true)')
|
||||||
mw=$(echo "$monitor" | jq '.width')
|
mw=$(echo "$monitor" | jq '.width')
|
||||||
mh=$(echo "$monitor" | jq '.height')
|
mh=$(echo "$monitor" | jq '.height')
|
||||||
|
ms=$(echo "$monitor" | jq '.scale')
|
||||||
|
|
||||||
neww=$((mw * $WIDTH_PERCENT / 100))
|
echo "scale: $ms"
|
||||||
newh=$((mh * $HEIGHT_PERCENT / 100))
|
|
||||||
|
|
||||||
hyprctl dispatch togglefloating \
|
neww=$(echo "scale=6; (($mw / $ms) * $WIDTH_PERCENT / 100)" | bc)
|
||||||
&& hyprctl dispatch resizeactive exact $neww $newh \
|
newh=$(echo "scale=6; (($mh / $ms) * $HEIGHT_PERCENT / 100)" | bc)
|
||||||
&& hyprctl dispatch centerwindow
|
|
||||||
|
hyprctl dispatch togglefloating &&
|
||||||
|
hyprctl dispatch resizeactive exact $neww $newh &&
|
||||||
|
hyprctl dispatch centerwindow
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ yay -S --noconfirm --needed \
|
|||||||
asahi-desktop-meta \
|
asahi-desktop-meta \
|
||||||
base-devel \
|
base-devel \
|
||||||
bat \
|
bat \
|
||||||
|
bc \
|
||||||
btop \
|
btop \
|
||||||
catppuccin-gtk-theme-mocha \
|
catppuccin-gtk-theme-mocha \
|
||||||
eza \
|
eza \
|
||||||
@@ -28,6 +29,8 @@ yay -S --noconfirm --needed \
|
|||||||
hyrpidle \
|
hyrpidle \
|
||||||
hyprlock \
|
hyprlock \
|
||||||
neovim \
|
neovim \
|
||||||
|
nodejs \
|
||||||
|
npm \
|
||||||
nwg-look \
|
nwg-look \
|
||||||
pcsc-controls \
|
pcsc-controls \
|
||||||
starship \
|
starship \
|
||||||
@@ -55,8 +58,7 @@ yay -S --noconfirm \
|
|||||||
yay -S --noconfirm walker \
|
yay -S --noconfirm walker \
|
||||||
elephant \
|
elephant \
|
||||||
elephant-calc \
|
elephant-calc \
|
||||||
elephant-symbols \
|
elephant-symbols
|
||||||
elephant-websearch
|
|
||||||
|
|
||||||
# Bluetooth management
|
# Bluetooth management
|
||||||
yay -S --noconfirm blueberry-wayland
|
yay -S --noconfirm blueberry-wayland
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ mkdir -p ~/.local/share/clipse/tmp_files
|
|||||||
touch ~/.local/share/clipse/clipboard_history.json
|
touch ~/.local/share/clipse/clipboard_history.json
|
||||||
chmod 600 ~/.local/share/clipse/clipboard_history.json
|
chmod 600 ~/.local/share/clipse/clipboard_history.json
|
||||||
|
|
||||||
|
mkdir ~/Pictures
|
||||||
|
|||||||
@@ -11,9 +11,7 @@
|
|||||||
font-family: JetbrainsMono Nerd Font;
|
font-family: JetbrainsMono Nerd Font;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
padding-right: 2px;
|
margin: 0px;
|
||||||
padding-left: 2px;
|
|
||||||
padding-bottom: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#waybar {
|
#waybar {
|
||||||
@@ -23,16 +21,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
border-radius: 10px;
|
|
||||||
background: @background;
|
background: @background;
|
||||||
margin-right: 5px;
|
border-radius: 10px;
|
||||||
margin-left: 1rem;
|
margin-top: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
margin-left: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
color: @foreground;
|
color: @foreground;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 0.4rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
@@ -123,6 +121,7 @@
|
|||||||
#custom-lock {
|
#custom-lock {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
color: @yellow;
|
color: @yellow;
|
||||||
|
margin-right: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-power {
|
#custom-power {
|
||||||
|
|||||||
Reference in New Issue
Block a user