updated dotfiles
This commit is contained in:
@@ -12,3 +12,6 @@ bold_italic_font auto
|
|||||||
font_size 14
|
font_size 14
|
||||||
|
|
||||||
background_opacity 0.90
|
background_opacity 0.90
|
||||||
|
|
||||||
|
term xterm-256color
|
||||||
|
|
||||||
|
|||||||
@@ -68,14 +68,13 @@ layout {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
spawn-at-startup "waybar" "-c" "/home/liph/.config/waybar-niri/config.jsonc" "-s" "/home/liph/.config/waybar-niri/style.css"
|
spawn-at-startup "waybar" "-c" "/home/liph/.config/niri/waybar-niri/config.jsonc" "-s" "/home/liph/.config/niri/waybar-niri/style.css"
|
||||||
spawn-at-startup "swaync"
|
spawn-at-startup "swaync"
|
||||||
spawn-at-startup "swww-daemon"
|
spawn-at-startup "swww-daemon"
|
||||||
spawn-at-startup "kitty"
|
spawn-at-startup "kitty"
|
||||||
spawn-at-startup "librewolf"
|
spawn-at-startup "librewolf"
|
||||||
spawn-at-startup "sh" "-c" "sleep 5 && exec swayidle -w timeout 300 hyprlock timeout 600 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors' timeout 3600 'systemctl suspend'"
|
spawn-at-startup "sh" "-c" "sleep 5 && exec swayidle -w timeout 300 hyprlock timeout 600 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors' timeout 3600 'systemctl suspend'"
|
||||||
|
|
||||||
|
|
||||||
prefer-no-csd
|
prefer-no-csd
|
||||||
|
|
||||||
gestures {
|
gestures {
|
||||||
@@ -84,26 +83,16 @@ gestures {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open the Firefox picture-in-picture player as floating by default.
|
|
||||||
// window-rule {
|
|
||||||
// match app-id=r#"librewolf$"# title="^Picture-in-Picture$"
|
|
||||||
// open-floating false
|
|
||||||
// }
|
|
||||||
|
|
||||||
workspace "1"
|
workspace "1"
|
||||||
workspace "2"
|
workspace "2"
|
||||||
workspace "3"
|
workspace "3"
|
||||||
// workspace "4"
|
|
||||||
// workspace "5"
|
|
||||||
|
|
||||||
// Example: block out two password managers from screen capture.
|
// Example: block out two password managers from screen capture.
|
||||||
// (This example rule is commented out with a "/-" in front.)
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
/-window-rule {
|
/-window-rule {
|
||||||
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||||
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
||||||
|
|
||||||
block-out-from "screen-capture"
|
block-out-from "screen-capture"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// terminal window-rule
|
// terminal window-rule
|
||||||
@@ -216,17 +205,15 @@ binds {
|
|||||||
// Mod+Shift+K { focus-monitor-up; }
|
// Mod+Shift+K { focus-monitor-up; }
|
||||||
// Mod+Shift+L { focus-monitor-right; }
|
// Mod+Shift+L { focus-monitor-right; }
|
||||||
|
|
||||||
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
// Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
||||||
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
// Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
||||||
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
// Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
||||||
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
|
// Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
|
||||||
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
|
// Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
|
||||||
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
// Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||||
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
// Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||||
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
// Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||||
|
|
||||||
Mod+Page_Down { focus-workspace-down; }
|
|
||||||
Mod+Page_Up { focus-workspace-up; }
|
|
||||||
Mod+U { focus-workspace-down; }
|
Mod+U { focus-workspace-down; }
|
||||||
Mod+I { focus-workspace-up; }
|
Mod+I { focus-workspace-up; }
|
||||||
Mod+Alt+J { move-column-to-workspace-down; }
|
Mod+Alt+J { move-column-to-workspace-down; }
|
||||||
@@ -234,8 +221,6 @@ binds {
|
|||||||
Mod+Alt+U { move-column-to-workspace-down; }
|
Mod+Alt+U { move-column-to-workspace-down; }
|
||||||
Mod+Alt+I { move-column-to-workspace-up; }
|
Mod+Alt+I { move-column-to-workspace-up; }
|
||||||
|
|
||||||
Mod+Shift+Page_Down { move-workspace-down; }
|
|
||||||
Mod+Shift+Page_Up { move-workspace-up; }
|
|
||||||
Mod+Shift+U { move-workspace-down; }
|
Mod+Shift+U { move-workspace-down; }
|
||||||
Mod+Shift+I { move-workspace-up; }
|
Mod+Shift+I { move-workspace-up; }
|
||||||
|
|
||||||
|
|||||||
45
scripts/scripts/niri_br.sh
Executable file
45
scripts/scripts/niri_br.sh
Executable file
@@ -0,0 +1,45 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
STATE_FILE="$HOME/.cache/brightness_state"
|
||||||
|
TEMP_FILE="$HOME/.cache/bluelight_state"
|
||||||
|
|
||||||
|
# Get screen brightness level
|
||||||
|
echo "Enter screen brightness level (0-10, where 10 = 100%):"
|
||||||
|
read -r LEVEL
|
||||||
|
|
||||||
|
# Validate input
|
||||||
|
if ! [[ "$LEVEL" =~ ^[0-9]+$ ]] || [ "$LEVEL" -lt 0 ] || [ "$LEVEL" -gt 10 ]; then
|
||||||
|
echo "Invalid input. Please enter a number between 0 and 10."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Convert to decimal (0-10 -> 0.0-1.0)
|
||||||
|
BRIGHTNESS=$(echo "scale=2; $LEVEL / 10" | bc)
|
||||||
|
|
||||||
|
# Ensure at least 0.1 to avoid complete darkness
|
||||||
|
if (($(echo "$BRIGHTNESS < 0.1" | bc -l))); then
|
||||||
|
BRIGHTNESS=0.1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ask about blue light filter
|
||||||
|
echo "Apply blue light filter? (y/n):"
|
||||||
|
read -r BLUELIGHT
|
||||||
|
|
||||||
|
if [[ "$BLUELIGHT" == "y" || "$BLUELIGHT" == "Y" ]]; then
|
||||||
|
TEMP=3400
|
||||||
|
FILTER_MSG="with blue light filter"
|
||||||
|
else
|
||||||
|
TEMP=6500
|
||||||
|
FILTER_MSG=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Apply settings
|
||||||
|
pkill -9 gammastep
|
||||||
|
gammastep -O $TEMP -b "$BRIGHTNESS" &>/dev/null &
|
||||||
|
|
||||||
|
# Save state
|
||||||
|
echo "$BRIGHTNESS" >"$STATE_FILE"
|
||||||
|
echo "$TEMP" >"$TEMP_FILE"
|
||||||
|
|
||||||
|
echo "Screen brightness set to ${LEVEL}0% $FILTER_MSG"
|
||||||
|
notify-send "Brightness" "${LEVEL}0% $FILTER_MSG" -t 2000
|
||||||
@@ -2,11 +2,13 @@ zshrc /home/liph/dotfiles/zshrc z
|
|||||||
yazi /home/liph/dotfiles/yazi/.config/yazi y
|
yazi /home/liph/dotfiles/yazi/.config/yazi y
|
||||||
tex /home/liph/Documents/tex D,t
|
tex /home/liph/Documents/tex D,t
|
||||||
tank /mnt/tank t,t
|
tank /mnt/tank t,t
|
||||||
|
scripts /home/liph/scripts d,s
|
||||||
r /home/liph/Documents/r D,r
|
r /home/liph/Documents/r D,r
|
||||||
podman /mnt/flash1/podman t,p
|
podman /mnt/flash1/podman t,p
|
||||||
ohmyposh /home/liph/dotfiles/ohmyposh/.config/ohmyposh d,o
|
ohmyposh /home/liph/dotfiles/ohmyposh/.config/ohmyposh d,o
|
||||||
obsidian /home/liph/Documents/obsidian/vault D,o
|
obsidian /home/liph/Documents/obsidian/vault D,o
|
||||||
nvim /home/liph/dotfiles/nvim/.config/nvim/ n,n,n
|
nvim /home/liph/dotfiles/nvim/.config/nvim/ n,n,n
|
||||||
|
niri /home/liph/dotfiles/niri/.config/niri d,n
|
||||||
neovim_plug /home/liph/dotfiles/nvim/.config/nvim/lua/plugins/ n,p
|
neovim_plug /home/liph/dotfiles/nvim/.config/nvim/lua/plugins/ n,p
|
||||||
mnt /mnt m
|
mnt /mnt m
|
||||||
kitty /home/liph/dotfiles/kitty/.config/kitty k
|
kitty /home/liph/dotfiles/kitty/.config/kitty k
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ alias kbu='kbdlight up 50'
|
|||||||
alias kbd='kbdlight down 50'
|
alias kbd='kbdlight down 50'
|
||||||
|
|
||||||
alias tg='~/scripts/bluelight.sh'
|
alias tg='~/scripts/bluelight.sh'
|
||||||
|
# niri brightness config
|
||||||
|
alias tgn='~/scripts/niri_br.sh'
|
||||||
|
alias tgr='~/scripts/niri_br_reset.sh'
|
||||||
|
|
||||||
# 8 commandlinetools zoxide_openfiles_nvim
|
# 8 commandlinetools zoxide_openfiles_nvim
|
||||||
alias nzo="~/scripts/zoxide_openfiles_nvim.sh"
|
alias nzo="~/scripts/zoxide_openfiles_nvim.sh"
|
||||||
@@ -98,7 +101,7 @@ alias lsm='sudo mount /dev/'
|
|||||||
alias lsu='sudo umount /mount/'
|
alias lsu='sudo umount /mount/'
|
||||||
|
|
||||||
# streamrip
|
# streamrip
|
||||||
alias ripp='rip search tidal album'
|
alias ripp='cd ~/streamrip/ && rip search tidal album'
|
||||||
alias rip='pyenv exec rip'
|
alias rip='pyenv exec rip'
|
||||||
alias ripc='nvim ~/.config/streamrip/config.toml'
|
alias ripc='nvim ~/.config/streamrip/config.toml'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user