feat: Some window configuration updates, waybar color changes, clipse history changed, and adds logout service to clear clipboard history

This commit is contained in:
2025-09-27 11:04:19 -04:00
parent 129f452045
commit 35b7dca7e4
12 changed files with 40 additions and 39 deletions

1
.gitignore vendored
View File

@@ -17,3 +17,4 @@ ansible/collections/*
ansible/galaxy_cache/*
ansible/galaxy_token
**/lazy-lock.json
**/*.target.wants/*

View File

@@ -1,7 +1,7 @@
{
"allowDuplicates": false,
"historyFile": "$XDG_DATA_HOME/clipse/clipboard_history.json",
"maxHistory": 100,
"maxHistory": 50,
"logFile": "$XDG_DATA_HOME/clipse/clipse.log",
"themeFile": "custom_theme.json",
"tempDir": "$XDG_DATA_HOME/clipse/tmp_files",
@@ -33,4 +33,3 @@
"heightCut": 2
}
}

View File

@@ -23,7 +23,7 @@ quit-after-last-window-closed-delay = 5m
# macos-titlebar-proxy-icon = hidden
# macos-icon = custom-style
keybind = super+shift+t=toggle_quick_terminal
keybind = ctrl+shift+t=toggle_quick_terminal
# Splits
keybind = super+j=goto_split:down

View File

@@ -13,23 +13,6 @@ source = ~/.config/hypr/keybinds.conf
source = ~/.config/hypr/input.conf
source = ~/.config/hypr/autostart.conf
###################
### PERMISSIONS ###
###################
# See https://wiki.hyprland.org/Configuring/Permissions/
# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
# for security reasons
# ecosystem {
# enforce_permissions = 1
# }
# permission = /usr/(bin|local/bin)/grim, screencopy, allow
# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
#####################
### LOOK AND FEEL ###
#####################
@@ -38,13 +21,13 @@ source = ~/.config/hypr/autostart.conf
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
gaps_in = 5
gaps_in = 3
gaps_out = 0, 5, 5, 5
border_size = 2
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.active_border = rgb(89b4fa) rgb(f2cdcd) 45deg
col.inactive_border = rgba(595959aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
@@ -58,7 +41,7 @@ general {
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
rounding = 2
rounding = 5
rounding_power = 2
# Change transparency of focused and unfocused windows

View File

@@ -29,7 +29,7 @@ $pwa = ~/.local/bin/launch-webapp
# Apps
bind = $mainMod, Space, exec, $menu # launcher (set above)
bind = $mainMod, Return, exec, $terminal
bind = $mainMod, A, exec, $pwa "https://chatgpt.com"
bind = $mainMod, A, exec, $pwa "https://chatgpt.com" --class com.chromium.chatgpt
bind = $mainMod, B, exec, $browser
bind = $mainMod SHIFT, B, exec, $browser --private-window
bind = $mainMod, C, exec, $terminal -e ~/.local/share/scripts/tmux-sessionator ~/.config

View File

@@ -6,19 +6,20 @@
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
#
# Force bluetooth settings to be a floating window
windowrule = float, class:^(blueberry.py)$
windowrule = float, tag:floating-window
windowrule = center, tag:floating-window
windowrule = size 800 600, tag:floating-window
# Force windows to be a floating window
windowrule = tag +floating-window, class:^(blueberry.py|org.gnome.Nautilus)$
# Force bluetooth settings to stay focused when visible.
windowrule = stayfocused, class:(blueberry.py)
# Clipboard history tui in floating window.
windowrule = float, class:.*clipse.*
windowrule = size 622 652, class:.*clipse.*
windowrule = tag +floating-window, class:.*clipse.*
windowrule = stayfocused, class:.*clipse.*
windowrule = float,class:^(float)$
windowrule = size 800 600,class:^(float)$,title:^(Install Web App)$
windowrule = center,class:^(float)$,title:^(Install Web App)$
# Ignore maximize requests from apps. You'll probably like this.
windowrule = suppressevent maximize, class:.*

View File

@@ -9,7 +9,7 @@ createCmd("BufEnter", {
-- HACK: Set filetype to markdown for '.md' files.
-- Not sure why it doesn't detect these as markdown files, but this fixes the issue.
vim.cmd.setlocal("filetype=markdown")
vim.cmd.setlocal("textwidth=80")
vim.cmd.setlocal("textwidth=120")
vim.cmd.setlocal("spell spelllang=en_us")
end,
})
@@ -64,6 +64,7 @@ createCmd("TextYankPost", {
end,
})
-- Force zsh scripts to use bash syntax hyighlighting.
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = "*",
callback = function(args)

View File

@@ -1,5 +1,8 @@
#!/bin/zsh
#!/bin/bash
wl-copy --clear && \
rm ~/.local/share/clipse/clipboard_history.json >/dev/null 2>&1
#wl-copy --clear >/dev/null 2>&1 && \
if [ -n "$WAYLAND_DISPLAY" ]; then
wl-copy --clear
fi
rm ~/.local/share/clipse/clipboard_history.json >/dev/null 2>&1

View File

@@ -13,7 +13,7 @@ CUR_WS=$(hyprctl -j activeworkspace | jq -r '.id')
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
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

View File

@@ -4,3 +4,5 @@ systemctl --user enable --now hyprpaper.service
systemctl --user enable --now hypridle.service
espanso service register
sudo setcap "cap_dac_override+p" $(which espanso)
systemctl --user enable --now logout-task.service

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Clear clipboard history at logout
DefaultDependencies=no
Before=exit.target
[Service]
Type=oneshot
ExecStart=%h/.local/bin/clear-clipboard-history
[Install]
WantedBy=exit.target

View File

@@ -5,7 +5,7 @@
@define-color red #f38ba8;
@define-color yellow #f9e2af;
@define-color peach #fab387;
@define-color lavender #b4befe;
@define-color maroon #eba0ac;
* {
font-family: JetbrainsMono Nerd Font;