mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
feat: niri, new winters ip, mail fixes
This commit is contained in:
parent
6ea3851e72
commit
915bf256da
61 changed files with 1814 additions and 965 deletions
|
|
@ -1579,6 +1579,7 @@ create a new one."
|
|||
'((:maildir "/leon/Inbox" :key ?1)
|
||||
(:maildir "/nautilus/Inbox" :key ?2)
|
||||
(:maildir "/mrswarsel/Inbox" :key ?3)
|
||||
(:maildir "/work/Inbox" :key ?4)
|
||||
(:maildir "/Sent Mail" :key ?s)
|
||||
(:maildir "/Trash" :key ?t)
|
||||
(:maildir "/Drafts" :key ?d)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ command_not_found_handle() {
|
|||
fi
|
||||
|
||||
echo -n "searching nix-index..."
|
||||
ATTRS=$(@nix-locate@ --minimal --no-group --type x --type s --top-level --whole-name --at-root "/bin/$1")
|
||||
ATTRS=$(@nix-locate@ --minimal --no-group --type x --type s --whole-name --at-root "/bin/$1")
|
||||
|
||||
case $(echo -n "$ATTRS" | grep -c "^") in
|
||||
0)
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
headless="false"
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
-h)
|
||||
headless="true"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid option detected."
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
SHARESCREEN="$(nix eval --raw ~/.dotfiles#nixosConfigurations."$(hostname)".config.home-manager.users."$(whoami)".swarselsystems.sharescreen)"
|
||||
|
||||
if [[ $headless == "true" ]]; then
|
||||
wl-mirror "$SHARESCREEN"
|
||||
else
|
||||
wl-mirror "$SHARESCREEN" &
|
||||
sleep 0.1
|
||||
swaymsg '[app_id=at.yrlf.wl_mirror] move to workspace 14:T'
|
||||
swaymsg '[app_id=at.yrlf.wl_mirror] fullscreen'
|
||||
fi
|
||||
36
files/scripts/swarselcheck-niri.sh
Normal file
36
files/scripts/swarselcheck-niri.sh
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
while :; do
|
||||
case ${1:-} in
|
||||
-k | --kitty)
|
||||
cmd=(sh -c 'kitty --app-id kittyterm -o confirm_os_window_close=0 zellij attach --create kittyterm' '&')
|
||||
searchapp="kittyterm"
|
||||
;;
|
||||
-e | --element)
|
||||
cmd=(element-desktop)
|
||||
searchapp="Element"
|
||||
;;
|
||||
-d | --vesktop)
|
||||
cmd=(vesktop)
|
||||
searchapp="vesktop"
|
||||
;;
|
||||
-s | --spotifyplayer)
|
||||
cmd=(sh -c 'kitty --add-id spotifytui -o confirm_os_window_close=0 spotify_player' '&')
|
||||
searchapp="spotifytui"
|
||||
;;
|
||||
*) break ;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
WIN_INFO=$(niri msg -j windows | jq --arg search "$searchapp" '.[] | select (.app_id | test($search)) | { id, is_focused, workspace_id }')
|
||||
ID=$(echo "$WIN_INFO" | jq -r '.id // empty')
|
||||
IS_FOCUSED=$(echo "$WIN_INFO" | jq -r '.is_focused // empty')
|
||||
TARGET_MONITOR=$(niri msg -j workspaces | jq --arg search "" '.[] | select (.name != null and (.name | test($search))) | { output }' | jq -r '.output // empty')
|
||||
CURRENT_WORKSPACE=$(niri msg -j workspaces | jq -r '.[] | select (.is_active == true) | .output // empty')
|
||||
|
||||
if [ -z "$ID" ]; then
|
||||
niri msg action spawn -- "${cmd[@]}"
|
||||
elif [ "$IS_FOCUSED" ]; then
|
||||
niri msg action move-window-to-workspace "" --window-id "$ID" --focus false
|
||||
else
|
||||
niri msg action focus-monitor "$TARGET_MONITOR" && niri msg action move-window-to-workspace "$CURRENT_WORKSPACE" --window-id "$ID" && niri msg action focus-floating
|
||||
fi
|
||||
|
|
@ -1,21 +1,39 @@
|
|||
# scheme: "better-contrast"
|
||||
author: "Swarsel"
|
||||
base00: "1D252C" # #1d252c passt
|
||||
base01: "171D23" # #171d23
|
||||
base02: "5EC4FF" # #5EC4FF
|
||||
base03: "566C7D" # #566C7D passt
|
||||
base04: "5EC4FF" # #5EC4FF passt
|
||||
base05: "A0B3C5" # #A0B3C5 passt
|
||||
base06: "C06ECE" # #C06ECE passt
|
||||
base07: "A0B3C5" # #A0B3C5 passt
|
||||
base08: "D95468" # #D95468 passt
|
||||
base09: "FFA880" # #ffA880 passt
|
||||
base0A: "5EC4FF" # #5EC4FF
|
||||
base0B: "8BD49C" # #8BD49C
|
||||
base0C: "008B94" # #008B94 passt
|
||||
base0D: "5EC4FF" # #5EC4FF passt
|
||||
base0E: "C06ECE" # #C06ECE passt
|
||||
base0F: "5EC4FF" # #5EC4FF passt
|
||||
author: "Swarsel"
|
||||
base00: "1d252c" #1d252c"
|
||||
base01: "171d23" #171d23"
|
||||
base02: "206a86" #206a86"
|
||||
base03: "003a66" #003a66"
|
||||
base04: "5ec4ff" #5ec4ff"
|
||||
base05: "a0b3c5" #a0b3c5"
|
||||
base06: "7ed4ff" #7ed4ff"
|
||||
base07: "8ef4ff" #8ef4ff"
|
||||
base08: "d95468" #d95468"
|
||||
base09: "ffa880" #ffa880"
|
||||
base0A: "6ed4ff" #6ed4ff"
|
||||
base0B: "8bd49c" #8bd49c"
|
||||
base0C: "008b94" #008b94"
|
||||
base0D: "5ec4ff" #5ec4ff"
|
||||
base0E: "c06ece" #c06ece"
|
||||
base0F: "3c0044" #3c0044"
|
||||
|
||||
# base00: "1D252C" # #1d252c passt
|
||||
# base01: "171D23" # #171d23
|
||||
# base02: "5EC4FF" # #5EC4FF
|
||||
# base03: "566C7D" # #566C7D passt
|
||||
# base04: "5EC4FF" # #5EC4FF passt
|
||||
# base05: "A0B3C5" # #A0B3C5 passt
|
||||
# base06: "C06ECE" # #C06ECE passt
|
||||
# base07: "A0B3C5" # #A0B3C5 passt
|
||||
# base08: "D95468" # #D95468 passt
|
||||
# base09: "FFA880" # #ffA880 passt
|
||||
# base0A: "5EC4FF" # #5EC4FF
|
||||
# base0B: "8BD49C" # #8BD49C
|
||||
# base0C: "008B94" # #008B94 passt
|
||||
# base0D: "5EC4FF" # #5EC4FF passt
|
||||
# base0E: "C06ECE" # #C06ECE passt
|
||||
# base0F: "5EC4FF" # #5EC4FF passt
|
||||
|
||||
# base00 - Default Background
|
||||
# base01 - Lighter Background (Used for status bars)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue