Skip to content

Commit

Permalink
lights|tmux|nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
sandptel committed Jan 14, 2025
1 parent 15a8acf commit 09f424b
Show file tree
Hide file tree
Showing 13 changed files with 142 additions and 342 deletions.
7 changes: 4 additions & 3 deletions config/hypr/UserConfigs/Monitors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@

# Monitors
monitor= eDP-1,1920x1080@60,0x0,1
#monitor=HDMI-A-1, 2560x1080@100, 0x-1080, 1
# monitor=HDMI-A-1, 2560x1080@60, 0x-1080, 1
# NOTE: for laptop, kindly check notes in Laptops.conf regarding display
# Created this inorder for the monitor display to not wake up if not intended.
# See here: https://github.com/hyprwm/Hyprland/issues/4090

# Some examples
#monitor = eDP-1, preferred, auto, 1
#monitor = eDP-1, 2560x1440@165, 0x0, 1 #own screen
# monitor = eDP-1, 2560x1440@165, 0x0, 1 #own screen
#monitor = DP-3, 1920x1080@240, auto, 1
#monitor = DP-1, preferred, auto, 1

#you need this one
# monitor = HDMI-A-1, preferred,0x-1080,1
monitor = HDMI-A-1, preferred,0x-1080,1


# QEMU-KVM, virtual box or vmware
#monitor = Virtual-1, 1920x1080@60,auto,1
Expand Down
17 changes: 17 additions & 0 deletions config/hypr/UserScripts/Lights.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# wal_template=$HOME/.config/wal/templates/obsidian.css
wal_cached=$HOME/.cache/wal/colors.json


link_template () {
ln -sr $wal_cached $1
}

autolit_folder=$HOME/Documents/autolitt

rm $autolitt_folder/colors.json

cp $wal_cached $autolit_folder/colors.json
# cp $wal_cached $obsidian_vault/.obsidian/obsidian1.css

6 changes: 4 additions & 2 deletions config/hypr/UserScripts/WallpaperRandom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ basename "$(basename "$RANDOMPICS")" > "$allwallDIR/current_wallpaper.txt"
# Transition config
FPS=60
TYPE="any"
DURATION=1.7
BEZIER=".43,1.19,1,.4"
DURATION=2.4
BEZIER="0,.95,1,.05"
SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER"

# Set the wallpaper
swww query || swww-daemon --format xrgb && swww img "${RANDOMPICS}" $SWWW_PARAMS

# Run additional scripts
"${scriptsDir}/WallustSwww.sh"
${UserScripts}/Lights.sh
sleep 1.2
"${scriptsDir}/Refresh.sh"

exit 0
4 changes: 2 additions & 2 deletions config/hypr/UserScripts/WallpaperSelect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ main() {

# Random choice case
if [[ "$choice" == "$RANDOM_PIC_NAME" ]]; then
swww img -o "$focused_monitor" "$RANDOM_PIC" $SWWW_PARAMS;
swww img "$RANDOM_PIC" $SWWW_PARAMS;
sleep 0.5
"$SCRIPTSDIR/WallustSwww.sh"
sleep $RELOAD_DURATION
Expand All @@ -89,7 +89,7 @@ main() {
done

if [[ $pic_index -ne -1 ]]; then
swww img -o "$focused_monitor" "${PICS[$pic_index]}" $SWWW_PARAMS
swww img "${PICS[$pic_index]}" $SWWW_PARAMS
else
echo "Image not found."
exit 1
Expand Down
3 changes: 1 addition & 2 deletions config/hypr/scripts/Refresh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ file_exists() {
return 1 # File does not exist
fi
}

${UserScripts}/Lights.sh
# Kill already running processes
_ps=(waybar rofi swaync ags)
for _prs in "${_ps[@]}"; do
Expand Down Expand Up @@ -43,7 +43,6 @@ ${SCRIPTSDIR}/WallustSwww.sh
pywalfox update

# sleep 0.5

${UserScripts}/Obsidian.sh
# ${UserScripts}/spicetify.sh
# Relaunching rainbow borders if the script exists
Expand Down
7 changes: 6 additions & 1 deletion config/hypr/scripts/WaybarCava.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ ascii_max_range = 7
EOF

# Kill cava if it's already running
pkill -f "cava -p $config_file"
# pkill -f "cava -p $config_file"

# if ( pgrep -cf "cava -p" > hyprctl monitors -j | jq '. | length' ); then
# cava -p "$config_file" | sed -u "$dict"
# printf "Started cava session with config: %s\n" "$CONFIG_FILE"
# fi
pkill -f "cava -p $config_file"
# Read stdout from cava and perform substitution in a single sed command
cava -p "$config_file" | sed -u "$dict"
37 changes: 37 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
};
nix-gaming.url = "github:fufexan/nix-gaming";
# hellwal.url = "github:sandptel/hellwal";

nixvim = {
url = "github:nix-community/nixvim/";
inputs.nixpkgs.follows = "nixpkgs";
Expand All @@ -28,6 +29,10 @@
url = "github:alexhulbert/Hyprchroma";
inputs.hyprland.follows = "hyprland";
};
hyprfocus = {
url = "github:VortexCoyote/hyprfocus";
inputs.hyprland.follows = "hyprland";
};
hyprpanel = {
url = "github:Jas-SinghFSU/HyprPanel";
# inputs.nixpkgs.follows = "nixpkgs";
Expand Down
2 changes: 1 addition & 1 deletion hosts/default/code.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ environment.systemPackages =
cargo
# vim
git
tmux
# tmux
pkg-config
# github-desktop
#vscode
Expand Down
2 changes: 2 additions & 0 deletions hosts/default/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
inputs.hyprland.homeManagerModules.default
./matugen.nix
./spicetify.nix
./tmux.nix
# ./nixvim.nix
# inputs.hellwal.homeManagerModules.default
# inputs.matugen.homeManagerModules.default
];
Expand Down
Loading

0 comments on commit 09f424b

Please sign in to comment.