mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-15 06:32:40 +00:00
Working on hyprland configuration, working hyprlock, hyprpaper not working.
This commit is contained in:
@@ -24,7 +24,7 @@ monitor= ,preferred,auto,auto
|
|||||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||||
# Or execute your favorite apps at launch like this:
|
# Or execute your favorite apps at launch like this:
|
||||||
|
|
||||||
exec-once = swaync & elephant
|
exec-once = waybar & swaync & elephant
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
### ENVIRONMENT VARIABLES ###
|
### ENVIRONMENT VARIABLES ###
|
||||||
@@ -158,7 +158,7 @@ master {
|
|||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||||
misc {
|
misc {
|
||||||
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
force_default_wallpaper = 1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||||
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,7 +205,7 @@ device {
|
|||||||
|
|
||||||
# Example windowrule
|
# Example windowrule
|
||||||
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
||||||
#
|
|
||||||
windowrulev2 = float,class:^(float)$
|
windowrulev2 = float,class:^(float)$
|
||||||
#windowrule = float,title:InstallWebApp
|
#windowrule = float,title:InstallWebApp
|
||||||
windowrulev2 = size 800 600,class:^(float)$,title:^(Install Web App)$
|
windowrulev2 = size 800 600,class:^(float)$,title:^(Install Web App)$
|
||||||
@@ -217,5 +217,7 @@ windowrule = suppressevent maximize, class:.*
|
|||||||
# Fix some dragging issues with XWayland
|
# Fix some dragging issues with XWayland
|
||||||
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||||
|
|
||||||
|
workspace = special:hidden, invisible
|
||||||
|
|
||||||
# Include the keybinds file.
|
# Include the keybinds file.
|
||||||
source = ~/.config/hypr/keybinds.conf
|
source = ~/.config/hypr/keybinds.conf
|
||||||
|
|||||||
@@ -25,17 +25,20 @@ general {
|
|||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
# NOTE: Currently enabling animations and background 'path = screenshot' causes hyprlock
|
||||||
|
# to not work, so they are disabled.
|
||||||
animations {
|
animations {
|
||||||
enabled = true
|
enabled = false
|
||||||
bezier = linear, 1, 1, 0, 0
|
bezier = linear, 1, 1, 0, 0
|
||||||
animation = fadeIn, 1, 5, linear
|
animation = fadeIn, 1, 5, linear
|
||||||
animation = fadeOut, 1, 5, linear
|
animation = fadeOut, 1, 5, linear
|
||||||
animation = inputFieldDots, 1, 2, linear
|
animaution = inputFieldDots, 1, 2, linear
|
||||||
}
|
}
|
||||||
|
|
||||||
background {
|
background {
|
||||||
monitor = eDP-1
|
monitor =
|
||||||
path = /usr/share/hypr/lockdead2.png
|
#path = screenshot
|
||||||
|
path = ~/.config/hypr/wallpaper.png
|
||||||
blur_passes = 3
|
blur_passes = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
3
hypr/hyprpaper.conf
Normal file
3
hypr/hyprpaper.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
preload = /home/michael/.config/hypr/wallpaper.png
|
||||||
|
wallpaper = eDP-1,/home/michael/.config/hypr/wallpaper.png
|
||||||
|
splash = true
|
||||||
@@ -18,9 +18,9 @@ $fileManager = $terminal -e yazi
|
|||||||
$fileBrowser = nautilus
|
$fileBrowser = nautilus
|
||||||
$menu = walker
|
$menu = walker
|
||||||
$pwa = chromium --profile-directory=Default
|
$pwa = chromium --profile-directory=Default
|
||||||
|
$launch = gtk-launch
|
||||||
|
|
||||||
$btop = $terminal -e btop
|
$btop = $terminal -e btop
|
||||||
$chatgpt = $pwa --app-id=cadlkienfkclaiaibeoongdcgmdikeeg
|
|
||||||
$config = $terminal -e ~/.local/share/scripts/tmux-sessionator ~/.config
|
$config = $terminal -e ~/.local/share/scripts/tmux-sessionator ~/.config
|
||||||
$email = $pwa --app-id=jnpecgipniidlgicjocehkhajgdnjekh # proton mail
|
$email = $pwa --app-id=jnpecgipniidlgicjocehkhajgdnjekh # proton mail
|
||||||
$excalidraw = $pwa --app-id=fehpfgkaiahomgjlkjleaolhifmngapb
|
$excalidraw = $pwa --app-id=fehpfgkaiahomgjlkjleaolhifmngapb
|
||||||
@@ -34,13 +34,15 @@ $youtube = $pwa --app-id=agimnkijcaahngcdmfeangaknmldooml
|
|||||||
# Apps
|
# Apps
|
||||||
bind = $mainMod, Space, exec, $menu # launcher (set above)
|
bind = $mainMod, Space, exec, $menu # launcher (set above)
|
||||||
bind = $mainMod, Return, exec, $terminal
|
bind = $mainMod, Return, exec, $terminal
|
||||||
bind = $mainMod, A, exec, $chatgpt
|
bind = $mainMod, A, exec, $launch ChatGPT
|
||||||
bind = $mainMod, B, exec, $browser
|
bind = $mainMod, B, exec, $browser
|
||||||
bind = $mainMod Shift, B, exec, $btop
|
bind = $mainMod Shift, B, exec, $browser --private-window
|
||||||
bind = $mainMod, C, exec, $config
|
bind = $mainMod, C, exec, $config
|
||||||
bind = $mainMod, D, exec, $excalidraw
|
bind = $mainMod, D, exec, $excalidraw
|
||||||
|
bind = $mainMod Shift, D, exec, ~/.local/bin/toggle-desktop
|
||||||
bind = $mainMod, E, exec, $email
|
bind = $mainMod, E, exec, $email
|
||||||
bind = $mainMod, F, exec, $fileManager
|
bind = $mainMod, F, exec, $fileManager
|
||||||
|
bind = $mainMod, K, exec, $launch Komodo
|
||||||
bind = $mainMod Shift, F, exec, $fileBrowser
|
bind = $mainMod Shift, F, exec, $fileBrowser
|
||||||
bind = $mainMod Shift, G, exec, $gitea
|
bind = $mainMod Shift, G, exec, $gitea
|
||||||
bind = $mainMod, N, exec, $neovim
|
bind = $mainMod, N, exec, $neovim
|
||||||
@@ -48,9 +50,10 @@ bind = $mainMod, P, exec, $protonPass
|
|||||||
bind = $mainMod, Y, exec, $youtube
|
bind = $mainMod, Y, exec, $youtube
|
||||||
|
|
||||||
bind = $mainMod, W, killactive,
|
bind = $mainMod, W, killactive,
|
||||||
bind = $mainMod Shift, M, exit,
|
bind = $mainMod Shift, L, exec, hyprlock
|
||||||
|
# TODO: change modifier key.
|
||||||
bind = $mainMod, M, exec, ~/.local/bin/toggle-waybar
|
bind = $mainMod, M, exec, ~/.local/bin/toggle-waybar
|
||||||
bind = $mainMod, V, togglefloating,
|
bind = $mainMod, V, togglefloating
|
||||||
#bind = $mainMod, P, pseudo, # dwindle
|
#bind = $mainMod, P, pseudo, # dwindle
|
||||||
#bind = $mainMod, J, togglesplit, # dwindle
|
#bind = $mainMod, J, togglesplit, # dwindle
|
||||||
#
|
#
|
||||||
@@ -58,6 +61,10 @@ bind = $mainMod, V, togglefloating,
|
|||||||
bind = $mainMod Shift Alt, 3, exec, hyprshot -m window -o ~/Pictures
|
bind = $mainMod Shift Alt, 3, exec, hyprshot -m window -o ~/Pictures
|
||||||
bind = $mainMod Shift Alt, 4, exec, hyprshot -m region -o ~/Pictures
|
bind = $mainMod Shift Alt, 4, exec, hyprshot -m region -o ~/Pictures
|
||||||
|
|
||||||
|
bind = Ctrl, M, fullscreen
|
||||||
|
bind = Ctrl, F, exec, hyprctl dispatch togglefloating \
|
||||||
|
&& hyprctl dispatch centerwindow
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
bind = $mainMod, H, movefocus, l
|
bind = $mainMod, H, movefocus, l
|
||||||
bind = $mainMod, L, movefocus, r
|
bind = $mainMod, L, movefocus, r
|
||||||
@@ -121,7 +128,7 @@ bindl = , XF86AudioPlay, exec, playerctl play-pause
|
|||||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||||
|
|
||||||
# Shut off laptop monitor when lid is closed and on when lid is open.
|
# Shut off laptop monitor when lid is closed and on when lid is open.
|
||||||
#bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor \"eDP-1, disable\"
|
bindl = , switch:on:Lid Switch, exec, hyprctl dispatch dpms off
|
||||||
#bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor \"eDP-1, preferred, auto, auto\"
|
bindl = , switch:off:Lid Switch, exec, hyprctl dispatch dpms on
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
hypr/wallpaper.png
Normal file
BIN
hypr/wallpaper.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
29
scripts/arch/toggle-desktop
Executable file
29
scripts/arch/toggle-desktop
Executable file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Workspace to hide everything in
|
||||||
|
HIDE_WS="special:hidden"
|
||||||
|
|
||||||
|
# File to store original workspace ID
|
||||||
|
STATE_FILE="/tmp/hypr_hide_state"
|
||||||
|
|
||||||
|
# Get current workspace ID
|
||||||
|
CUR_WS=$(hyprctl -j activeworkspace | jq -r '.id')
|
||||||
|
|
||||||
|
# Check if we're currently hidden
|
||||||
|
if [[ -f "$STATE_FILE" ]]; then
|
||||||
|
# Restore windows
|
||||||
|
ORIG_WS=$(cat "$STATE_FILE")
|
||||||
|
for win in $(hyprctl -j clients | jq -r '.[] | select(.workspace.name | contains("$HIDE_WS")) | .address'); do
|
||||||
|
hyprctl dispatch movetoworkspace "$ORIG_WS,address:$win"
|
||||||
|
hyprctl dispatch workspace "$ORIG_WS"
|
||||||
|
done
|
||||||
|
rm "$STATE_FILE"
|
||||||
|
else
|
||||||
|
# Hide all windows (move to special hidden workspace)
|
||||||
|
for win in $(hyprctl -j clients | jq -r ".[] | select(.workspace.id == $CUR_WS) | .address"); do
|
||||||
|
hyprctl dispatch movetoworkspace "$HIDE_WS,address:$win"
|
||||||
|
hyprctl dispatch togglespecialworkspace "$HIDE_WS"
|
||||||
|
done
|
||||||
|
rm "$STATE_FILE"
|
||||||
|
echo "$CUR_WS" >"$STATE_FILE"
|
||||||
|
fi
|
||||||
@@ -17,6 +17,7 @@ export TERM=xterm-256color
|
|||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export VISUAL=nvim
|
export VISUAL=nvim
|
||||||
export EDITOR_PREFIX=nvim
|
export EDITOR_PREFIX=nvim
|
||||||
|
export MANPAGER="bat"
|
||||||
#export VIMINIT='source $MYVIMRC'
|
#export VIMINIT='source $MYVIMRC'
|
||||||
#export MYVIMRC="$HOME/.vim/vimrc"
|
#export MYVIMRC="$HOME/.vim/vimrc"
|
||||||
#export NVIM_APPNAME="m-housh"
|
#export NVIM_APPNAME="m-housh"
|
||||||
|
|||||||
@@ -61,14 +61,15 @@ zle -N down-line-or-beginning-search
|
|||||||
autoload -Uz colors && colors
|
autoload -Uz colors && colors
|
||||||
|
|
||||||
#------------------------------ pager ------------------------------
|
#------------------------------ pager ------------------------------
|
||||||
export LESS_TERMCAP_mb="[35m" # magenta
|
#eval "$(batman --export-env)"
|
||||||
export LESS_TERMCAP_md="[33m" # yellow
|
# export LESS_TERMCAP_mb="[35m" # magenta
|
||||||
export LESS_TERMCAP_me=""
|
# export LESS_TERMCAP_md="[33m" # yellow
|
||||||
export LESS_TERMCAP_se=""
|
# export LESS_TERMCAP_me=""
|
||||||
export LESS_TERMCAP_so="[34m" # blue
|
# export LESS_TERMCAP_se=""
|
||||||
export LESS_TERMCAP_ue=""
|
# export LESS_TERMCAP_so="[34m" # blue
|
||||||
export LESS_TERMCAP_so="[4m" # underline
|
# export LESS_TERMCAP_ue=""
|
||||||
export LESSHISTFILE="-"
|
# export LESS_TERMCAP_so="[4m" # underline
|
||||||
|
# export LESSHISTFILE="-"
|
||||||
|
|
||||||
#------------------------------ path ------------------------------
|
#------------------------------ path ------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user