change hyprland congif (change bg utils && startup procedure)
This commit is contained in:
parent
a53bd62554
commit
377fd10818
|
@ -8,16 +8,17 @@ in
|
||||||
extraConfig = "
|
extraConfig = "
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
monitor = ,highrr,auto,1
|
monitor=,preferred,auto,auto
|
||||||
monitor = ,highres,auto,1
|
monitor=,1920x1200,auto,auto
|
||||||
|
|
||||||
# autostart
|
# autostart
|
||||||
exec-once = hyprctl setcursor Catppuccin-Frappe-Dark 15
|
exec-once = hyprctl setcursor Catppuccin-Frappe-Dark 15
|
||||||
exec-once = systemctl --user import-environment &
|
exec-once = systemctl --user import-environment &
|
||||||
exec-once = hash dbus-update-activation-environment 2>/dev/null &
|
exec-once = hash dbus-update-activation-environment 2>/dev/null &
|
||||||
exec-once = dbus-update-activation-environment --systemd &
|
exec-once = dbus-update-activation-environment --systemd &
|
||||||
exec-once = swww init && swaylock && load-env
|
exec-once = swaybg -m fill -i ~/Pictures/wallpapers/wallpaper.png && swaylock
|
||||||
exec-once = wl-paste --type text --watch cliphist store && wl-paste --type image --watch cliphist store && mako &
|
# exec-once =
|
||||||
|
exec-once = mako &
|
||||||
exec-once = waybar &
|
exec-once = waybar &
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
@ -129,7 +130,7 @@ in
|
||||||
bind = $mainMod, D, exec, pkill wofi || wofi --show drun
|
bind = $mainMod, D, exec, pkill wofi || wofi --show drun
|
||||||
bind = $mainMod, Escape, exec, swaylock
|
bind = $mainMod, Escape, exec, swaylock
|
||||||
bind = $mainMod, Suppr, exec, pkill wlogout || wlogout -b 4
|
bind = $mainMod, Suppr, exec, pkill wlogout || wlogout -b 4
|
||||||
bind = SUPER, V, exec, cliphist list | wofi -dmenu | cliphist decode | wl-copy
|
# bind = SUPER, V, exec, cliphist list | wofi -dmenu | cliphist decode | wl-copy
|
||||||
bind = $mainMod, P, pseudo,
|
bind = $mainMod, P, pseudo,
|
||||||
bind = $mainMod, J, togglesplit,
|
bind = $mainMod, J, togglesplit,
|
||||||
bind = $mainMod, E, exec, thunar
|
bind = $mainMod, E, exec, thunar
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{ inputs, pkgs, ...}:
|
{ inputs, pkgs, ...}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
swww
|
# swww
|
||||||
|
swaybg
|
||||||
inputs.hypr-contrib.packages.${pkgs.system}.grimblast
|
inputs.hypr-contrib.packages.${pkgs.system}.grimblast
|
||||||
hyprpicker
|
hyprpicker
|
||||||
wofi
|
wofi
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
cliphist
|
# cliphist
|
||||||
wf-recorder
|
wf-recorder
|
||||||
glib
|
glib
|
||||||
wayland
|
wayland
|
||||||
|
|
|
@ -1,25 +1,16 @@
|
||||||
{pkgs, ...}: let
|
{pkgs, ...}: let
|
||||||
wall-change = pkgs.writeShellScriptBin "wall-change" ''
|
wall-change = pkgs.writeShellScriptBin "wall-change" ''
|
||||||
swww img $1 --transition-type random --transition-pos "$(hyprctl cursorpos)" --transition-duration 3
|
swaybg -m fill -i $1
|
||||||
'';
|
'';
|
||||||
load-env = pkgs.writeShellScriptBin "load-env" ''
|
wallpaper-picker = pkgs.writeShellScriptBin "wallpaper-picker" ''
|
||||||
bash ~/.local/bin/env/animation
|
wallpaper_folder=$HOME/Pictures/wallpapers
|
||||||
bash ~/.local/bin/env/layout
|
wallpaper_location="$(ls $wallpaper_folder | wofi -n --show dmenu)"
|
||||||
bash ~/.local/bin/env/opacity
|
if [[ -d $wallpaper_folder/$wallpaper_location ]]; then
|
||||||
bash ~/.local/bin/env/blur
|
wallpaper_temp="$wallpaper_location"
|
||||||
bash ~/.local/bin/env/wallpaper
|
elif [[ -f $wallpaper_folder/$wallpaper_location ]]; then
|
||||||
'';
|
wall-change $wallpaper_folder/$wallpaper_temp/$wallpaper_location
|
||||||
toggle-animation = pkgs.writeShellScriptBin "toggle-animation" ''
|
|
||||||
blur_val=$(hyprctl getoption animations:enabled | grep int)
|
|
||||||
echo "$blur_val"
|
|
||||||
if [[ "$blur_val" == " int: 1" ]]; then
|
|
||||||
rm -rf ~/.local/bin/env/animation
|
|
||||||
echo "hyprctl --batch 'keyword animations:enabled 0'" > ~/.local/bin/env/animation
|
|
||||||
hyprctl --batch "keyword animations:enabled 0"
|
|
||||||
else
|
else
|
||||||
rm -rf ~/.local/bin/env/animation
|
exit 1
|
||||||
echo "hyprctl --batch 'keyword animations:enabled 1'" > ~/.local/bin/env/animation
|
|
||||||
hyprctl --batch "keyword animations:enabled 1"
|
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
push = pkgs.writeShellScriptBin "push" ''
|
push = pkgs.writeShellScriptBin "push" ''
|
||||||
|
@ -33,53 +24,22 @@
|
||||||
echo "Git wasn't initialized here."
|
echo "Git wasn't initialized here."
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
toggle-blur = pkgs.writeShellScriptBin "toggle-blur" ''
|
push = pkgs.writeShellScriptBin "commit" ''
|
||||||
blur_val=$(hyprctl getoption decoration:blur | grep int)
|
git_directory=$PWD/.git
|
||||||
echo "$blur_val"
|
if [[ -d $git_directory ]];then
|
||||||
if [[ "$blur_val" == " int: 1" ]]; then
|
git add .
|
||||||
rm -rf ~/.local/bin/env/blur
|
read -p "Enter commit name: " commit_name
|
||||||
echo "hyprctl --batch 'keyword decoration:blur 0'" > ~/.local/bin/env/blur
|
git commit -m "$commit_name"
|
||||||
hyprctl --batch "keyword decoration:blur 0"
|
|
||||||
else
|
else
|
||||||
rm -rf ~/.local/bin/env/blur
|
echo "Git wasn't initialized here."
|
||||||
echo "hyprctl --batch 'keyword decoration:blur 1'" > ~/.local/bin/env/blur
|
|
||||||
hyprctl --batch "keyword decoration:blur 1"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
toggle-opacity = pkgs.writeShellScriptBin "toggle-opacity" ''
|
|
||||||
opacity_val=$(hyprctl getoption decoration:active_opacity | grep float)
|
|
||||||
echo "$opacity_val"
|
|
||||||
if [[ "$opacity_val" == " float: 0.850000" ]]; then
|
|
||||||
rm -rf ~/.local/bin/env/opacity
|
|
||||||
echo "hyprctl --batch 'keyword decoration:active_opacity 1.0 ; keyword decoration:inactive_opacity 1.0 ; keyword decoration:fullscreen_opacity 1.0'" > ~/.local/bin/env/opacity
|
|
||||||
hyprctl --batch "keyword decoration:active_opacity 1.0 ; keyword decoration:inactive_opacity 1.0 ; keyword decoration:fullscreen_opacity 1.0"
|
|
||||||
else
|
|
||||||
rm -rf ~/.local/bin/env/opacity
|
|
||||||
echo "hyprctl --batch 'keyword decoration:active_opacity 0.8500 ; keyword decoration:inactive_opacity 0.76 ; keyword decoration:fullscreen_opacity 1.0'" > ~/.local/bin/env/opacity
|
|
||||||
hyprctl --batch "keyword decoration:active_opacity 0.8500 ; keyword decoration:inactive_opacity 0.76 ; keyword decoration:fullscreen_opacity 1.0"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
wallpaper-picker = pkgs.writeShellScriptBin "wallpaper-picker" ''
|
|
||||||
wallpaper_folder=$HOME/Pictures/wallpapers
|
|
||||||
wallpaper_location="$(ls $wallpaper_folder | wofi -n --show dmenu)"
|
|
||||||
if [[ -d $wallpaper_folder/$wallpaper_location ]]; then
|
|
||||||
wallpaper_temp="$wallpaper_location"
|
|
||||||
elif [[ -f $wallpaper_folder/$wallpaper_location ]]; then
|
|
||||||
wall-change $wallpaper_folder/$wallpaper_temp/$wallpaper_location
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
home.file.".local/bin/toggle_layout".source = ./toggle_layout;
|
|
||||||
home.file.".local/bin/anime".source = ./ani-cli;
|
home.file.".local/bin/anime".source = ./ani-cli;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wall-change
|
wall-change
|
||||||
wallpaper-picker
|
wallpaper-picker
|
||||||
load-env
|
|
||||||
toggle-animation
|
|
||||||
toggle-blur
|
|
||||||
toggle-opacity
|
|
||||||
push
|
push
|
||||||
|
commit
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
current_layout=$(hyprctl getoption general:layout)
|
|
||||||
|
|
||||||
for word in $current_layout
|
|
||||||
do
|
|
||||||
temp="${word%\"}"
|
|
||||||
temp="${temp#\"}"
|
|
||||||
if [ $temp == "dwindle" ]; then
|
|
||||||
rm -rf ~/.local/bin/env/layout
|
|
||||||
echo "hyprctl --batch 'keyword general:layout master;'" > ~/.local/bin/env/layout
|
|
||||||
hyprctl --batch "keyword general:layout master;"
|
|
||||||
fi
|
|
||||||
if [ $temp == "master" ]; then
|
|
||||||
rm -rf ~/.local/bin/env/layout
|
|
||||||
echo "hyprctl --batch 'keyword general:layout dwindle;'" > ~/.local/bin/env/layout
|
|
||||||
hyprctl --batch "keyword general:layout dwindle;"
|
|
||||||
fi
|
|
||||||
done
|
|
Loading…
Reference in a new issue