updates
No files matched your search
@@ -8,12 +8,12 @@ $RunCMD = $scriptsDir/RunCMD.sh
|
||||
$UserConfigs = $HOME/dotfiles/hypr/UserConfigs
|
||||
|
||||
#VolumeControl
|
||||
bindle = ,XF86MonBrightnessUp, exec, swayosd-client --brightness=raise 5
|
||||
bindle = ,XF86MonBrightnessDown, exec, swayosd-client --brightness=lower 5
|
||||
bindle = ,XF86AudioRaiseVolume, exec, swayosd-client --output-volume 5
|
||||
bindle = ,XF86AudioLowerVolume, exec, swayosd-client --output-volume -5
|
||||
bindle = ,XF86AudioMute, exec, swayosd-client --output-volume mute-toggle
|
||||
bindle = ,XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle # Mic mute key
|
||||
bindle = ,XF86MonBrightnessUp, exec, $RunCMD brightness --inc
|
||||
bindle = ,XF86MonBrightnessDown, exec, $RunCMD brightness --dec
|
||||
bindle = ,XF86AudioRaiseVolume, exec, $RunCMD volume --inc
|
||||
bindle = ,XF86AudioLowerVolume, exec, $RunCMD volume --dec
|
||||
bindle = ,XF86AudioMute, exec, $RunCMD volume --toggle
|
||||
bindle = ,XF86AudioMicMute, exec, $RunCMD volume --toggle-mic
|
||||
#bind = ,XF86MonBrightnessUp, exec, brightnessctl set +5%
|
||||
#bind = ,XF86MonBrightnessDown, exec, brightnessctl set 5%-
|
||||
#bind = ,XF86AudioRaiseVolume, exec, pamixer -i 5 # Volume Higher key
|
||||
|
||||
@@ -60,27 +60,6 @@ bind = $mainMod, H, exec, killall -SIGUSR1 waybar
|
||||
|
||||
|
||||
# ScreenShot
|
||||
bind = $mainMod, Z, exec, grim -g "$(slurp)" - | tee ~/Pictures/"$(date '+%d-%b_%H-%M-%S')_${RANDOM}".png | wl-copy
|
||||
bind = ,Print, exec, grim - | tee ~/Pictures/"$(date '+%d-%b_%H-%M-%S')_${RANDOM}".png | wl-copy
|
||||
bind = $mainMod, Z, exec, $RunCMD screenshot --area
|
||||
bind = ,Print, exec, $RunCMD screenshot --now
|
||||
|
||||
|
||||
|
||||
# ags related
|
||||
#bind = CTRL SHIFT, R, exec, pkill ags ; ags
|
||||
#
|
||||
#bind = SUPER, R, exec, ags toggle-window applauncher__window
|
||||
#
|
||||
#bind = SUPER_SHIFT, W, exec, ags toggle-window wallpaper-picker__window # wallpaper picker
|
||||
#
|
||||
#bind = CTRL ALT, R, exec, ags -r "recorder.start()" # Recorder
|
||||
#
|
||||
#bind = $mainMod, Z, exec, ags -r "recorder.screenshot()" # Partial
|
||||
#bind = ,Print, exec, ags -r "recorder.screenshot(true)" # Full
|
||||
#
|
||||
#bind = ,Caps_Lock, exec, ags -r 'update_capslock()'
|
||||
#
|
||||
#bind = $mainMod, escape, exec, ags -t powermenu__window # PowerMenu
|
||||
#bind = $mainMod Caps_Lock, H, exec, ags -r 'moveBar("left")'
|
||||
#bind = $mainMod Caps_Lock, J, exec, ags -r 'moveBar("bottom")'
|
||||
#bind = $mainMod Caps_Lock, K, exec, ags -r 'moveBar("top")'
|
||||
#bind = $mainMod Caps_Lock, L, exec, ags -r 'moveBar("right")'
|
||||
@@ -58,23 +58,17 @@ decoration {
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes
|
||||
|
||||
bezier = wind, 0.05, 0.9, 0.1, 1.05
|
||||
bezier = winIn, 0.1, 1.1, 0.1, 1.1
|
||||
bezier = winOut, 0.3, -0.3, 0, 1
|
||||
bezier = liner, 1, 1, 1, 1
|
||||
|
||||
animation = windows, 1, 6, wind, slide
|
||||
animation = windowsIn, 1, 6, winIn, slide
|
||||
animation = windowsOut, 1, 5, winOut, slide
|
||||
animation = windowsMove, 1, 5, wind, slide
|
||||
animation = border, 1, 1, liner
|
||||
animation = borderangle, 1, 180, liner, loop #used by rainbow borders and rotating colors
|
||||
animation = fade, 1, 10, default
|
||||
animation = workspaces, 1, 5, wind
|
||||
enabled = true
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 9, default
|
||||
}
|
||||
|
||||
|
||||
input {
|
||||
kb_layout=us,np
|
||||
kb_variant =
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
viewBox="0 0 512 512" xml:space="preserve">
|
||||
<g>
|
||||
<path style="fill:#F2D23D;" d="M256.007,423.724c-0.004,0-0.004,0-0.007,0c-14.626,0-26.483,11.857-26.483,26.483v35.31
|
||||
C229.517,500.143,241.374,512,256,512c0.004,0,0.004,0,0.007,0c14.622-0.004,26.476-11.859,26.476-26.483v-35.31
|
||||
C282.483,435.583,270.629,423.728,256.007,423.724z"/>
|
||||
<path style="fill:#F2D23D;" d="M256.007,0c-0.004,0-0.004,0-0.007,0c-14.626,0-26.483,11.857-26.483,26.483v35.31
|
||||
c0,14.626,11.857,26.483,26.483,26.483c0.004,0,0.004,0,0.007,0c14.622-0.004,26.476-11.859,26.476-26.483v-35.31
|
||||
C282.483,11.859,270.629,0.004,256.007,0z"/>
|
||||
<path style="fill:#F2D23D;" d="M256.007,141.241h-0.004c-63.276,0-114.755,51.481-114.755,114.759s51.479,114.759,114.755,114.759
|
||||
h0.004c63.278-0.002,114.759-51.481,114.759-114.759C370.766,192.724,319.285,141.243,256.007,141.241z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#EEBF00;" d="M256.004,141.241c-63.276,0-114.755,51.481-114.755,114.76c0,63.278,51.479,114.757,114.755,114.757
|
||||
h0.004V141.241H256.004z"/>
|
||||
<path style="fill:#EEBF00;" d="M256.007,88.276V0c-0.004,0-0.004,0-0.007,0c-14.626,0-26.483,11.857-26.483,26.483v35.31
|
||||
c0,14.626,11.857,26.483,26.483,26.483C256.004,88.276,256.004,88.276,256.007,88.276z"/>
|
||||
<path style="fill:#EEBF00;" d="M256,423.724c-14.626,0-26.483,11.857-26.483,26.483v35.31C229.517,500.143,241.374,512,256,512
|
||||
c0.004,0,0.004,0,0.007,0v-88.276C256.004,423.724,256.004,423.724,256,423.724z"/>
|
||||
</g>
|
||||
<path style="fill:#F2D23D;" d="M423.724,256c0,14.626,11.857,26.483,26.483,26.483h35.31C500.143,282.483,512,270.626,512,256
|
||||
c0-14.626-11.857-26.483-26.483-26.483h-35.31C435.581,229.517,423.724,241.374,423.724,256z"/>
|
||||
<path style="fill:#EEBF00;" d="M26.483,282.483h35.31c14.626,0,26.483-11.857,26.483-26.483c0-14.626-11.857-26.483-26.483-26.483
|
||||
h-35.31C11.857,229.517,0,241.374,0,256C0,270.626,11.857,282.483,26.483,282.483z"/>
|
||||
<path style="fill:#F2D23D;" d="M399.567,74.98l-24.97,24.968c-10.342,10.342-10.342,27.11,0,37.452
|
||||
c5.171,5.171,11.949,7.758,18.725,7.758s13.556-2.586,18.725-7.756l24.97-24.968c10.342-10.342,10.342-27.11,0-37.452
|
||||
C426.68,64.637,409.911,64.637,399.567,74.98z"/>
|
||||
<path style="fill:#EEBF00;" d="M99.949,374.597l-24.968,24.968c-10.342,10.342-10.342,27.109,0,37.452
|
||||
c5.171,5.171,11.949,7.756,18.725,7.756s13.556-2.586,18.725-7.756l24.97-24.968c10.342-10.342,10.342-27.11,0-37.452
|
||||
C127.061,364.256,110.292,364.254,99.949,374.597z"/>
|
||||
<path style="fill:#F2D23D;" d="M399.567,437.018c5.171,5.171,11.949,7.756,18.725,7.756c6.778,0,13.556-2.585,18.727-7.756
|
||||
c10.342-10.342,10.342-27.11,0-37.452l-24.97-24.968c-10.341-10.341-27.11-10.341-37.452,0.002
|
||||
c-10.342,10.342-10.342,27.109,0,37.452L399.567,437.018z"/>
|
||||
<path style="fill:#EEBF00;" d="M99.949,137.401c5.171,5.171,11.949,7.756,18.727,7.756c6.778,0,13.556-2.586,18.725-7.758
|
||||
c10.342-10.342,10.342-27.11,0-37.452L112.433,74.98c-10.341-10.341-27.11-10.341-37.452,0c-10.342,10.342-10.342,27.11,0,37.452
|
||||
L99.949,137.401z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 234 KiB |
@@ -0,0 +1,7 @@
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
|
||||
<svg width="800px" height="800px" viewBox="-4.8 -4.8 57.60 57.60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
␍<g id="SVGRepo_bgCarrier" stroke-width="0"/>
|
||||
␍<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#CCCCCC" stroke-width="0.9600000000000002"/>
|
||||
␍<g id="SVGRepo_iconCarrier"> <path d="M16 6H8C6.89543 6 6 6.89543 6 8V16" stroke="#f6f5f4" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> <path d="M16 42H8C6.89543 42 6 41.1046 6 40V32" stroke="#f6f5f4" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> <path d="M32 42H40C41.1046 42 42 41.1046 42 40V32" stroke="#f6f5f4" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> <path d="M32 6H40C41.1046 6 42 6.89543 42 8V16" stroke="#f6f5f4" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> <rect x="14" y="14" width="20" height="20" rx="2" fill="#e01b24" stroke="#f6f5f4" stroke-width="4"/> </g>
|
||||
␍</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 23 KiB |
@@ -12,21 +12,24 @@ source "$CONFIG_FILE"
|
||||
######################################
|
||||
|
||||
toggle_touchpad() {
|
||||
local status_file="$STATUS_FILE"
|
||||
local action
|
||||
local status_file="$STATUS_FILE"
|
||||
local action
|
||||
|
||||
if [[ ! -e "$status_file" ]] || ! $(<"$status_file"); then
|
||||
echo "1" > "$status_file"
|
||||
action="enabled"
|
||||
else
|
||||
echo "0" > "$status_file"
|
||||
action="disabled"
|
||||
fi
|
||||
# Toggle the status in the status file
|
||||
if [[ ! -e "$status_file" ]] || [[ $(<"$status_file") -eq 0 ]]; then
|
||||
echo "1" > "$status_file"
|
||||
action="enabled"
|
||||
else
|
||||
echo "0" > "$status_file"
|
||||
action="disabled"
|
||||
fi
|
||||
|
||||
notify-send -u low -i "$notif" "Touchpad $action"
|
||||
hyprctl keyword "device:$HYPRLAND_DEVICE:enabled" "$(cat "$status_file")"
|
||||
# Notify the user and update the touchpad status
|
||||
notify-send -u low -i "$notif" "Touchpad $action"
|
||||
hyprctl keyword "device:$HYPRLAND_DEVICE:enabled" "$(cat "$status_file")"
|
||||
}
|
||||
|
||||
|
||||
######################################
|
||||
# #
|
||||
# Toggle wifi state #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# For TouchPad
|
||||
HYPRLAND_DEVICE="dll07a7:01-044e:120b"
|
||||
HYPRLAND_DEVICE="dll07a7:01-044e:120b-touchpad"
|
||||
DIR=$HOME/.cache
|
||||
STATUS_FILE="$DIR/touchpad.status"
|
||||
|
||||
@@ -45,3 +45,4 @@ config_dir="$HOME/dotfiles/waybar/configs"
|
||||
waybar_config="$HOME/dotfiles/waybar/config"
|
||||
RunCMD="$SCRIPTSDIR/RunCMD.sh"
|
||||
|
||||
iDIR="$HOME/dotfiles/hypr/assets"
|
||||
@@ -5,7 +5,7 @@ source ~/dotfiles/hypr/scripts/Device_cmd.sh
|
||||
source ~/dotfiles/hypr/scripts/Rofi_cmd.sh
|
||||
source ~/dotfiles/hypr/scripts/System_cmd.sh
|
||||
source ~/dotfiles/hypr/scripts/Music_cmd.sh
|
||||
|
||||
source ~/dotfiles/hypr/scripts/Util.sh
|
||||
|
||||
help() {
|
||||
declare -F
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Source the configuration file.
|
||||
CONFIG_FILE=~/dotfiles/hypr/scripts/Ref.sh
|
||||
source "$CONFIG_FILE"
|
||||
|
||||
brightness() {
|
||||
local notification_timeout=1000
|
||||
|
||||
get_backlight() {
|
||||
brightnessctl -m | cut -d, -f4
|
||||
}
|
||||
|
||||
get_icon() {
|
||||
local current=$(get_backlight | sed 's/%//')
|
||||
echo "$iDIR/brightness.svg"
|
||||
}
|
||||
|
||||
notify_user() {
|
||||
local current=$(get_backlight | sed 's/%//')
|
||||
local icon=$(get_icon)
|
||||
notify-send -e -h string:x-canonical-private-synchronous:brightness_notif -h int:value:$current -u low -i "$icon" "Brightness : $current%"
|
||||
}
|
||||
|
||||
change_backlight() {
|
||||
brightnessctl set "$1" && notify_user
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
--get) get_backlight ;;
|
||||
--inc) change_backlight "+10%" ;;
|
||||
--dec) change_backlight "10%-" ;;
|
||||
*) get_backlight ;;
|
||||
esac
|
||||
}
|
||||
|
||||
volume() {
|
||||
get_volume() {
|
||||
local volume=$(pamixer --get-volume)
|
||||
[[ "$volume" -eq "0" ]] && echo "Muted" || echo "$volume%"
|
||||
}
|
||||
|
||||
get_icon() {
|
||||
local current=$(get_volume)
|
||||
if [[ "$current" == "Muted" ]]; then
|
||||
echo "$iDIR/volume-mute.png"
|
||||
elif [[ "${current%\%}" -le 30 ]]; then
|
||||
echo "$iDIR/volume-low.png"
|
||||
elif [[ "${current%\%}" -le 60 ]]; then
|
||||
echo "$iDIR/volume-mid.png"
|
||||
else
|
||||
echo "$iDIR/volume-high.png"
|
||||
fi
|
||||
}
|
||||
|
||||
notify_user() {
|
||||
local volume=$(get_volume)
|
||||
local icon=$(get_icon)
|
||||
if [[ "$volume" == "Muted" ]]; then
|
||||
notify-send -e -h string:x-canonical-private-synchronous:volume_notif -u low -i "$icon" "Volume: Muted"
|
||||
else
|
||||
notify-send -e -h int:value:"${volume%\%}" -h string:x-canonical-private-synchronous:volume_notif -u low -i "$icon" "Volume: $volume"
|
||||
fi
|
||||
}
|
||||
|
||||
change_volume() {
|
||||
pamixer "$1" "$2" && notify_user
|
||||
}
|
||||
|
||||
toggle_mute() {
|
||||
if pamixer --get-mute; then
|
||||
pamixer -u && notify-send -e -u low -i "$(get_icon)" "Volume Switched ON"
|
||||
else
|
||||
pamixer -m && notify-send -e -u low -i "$iDIR/volume-mute.png" "Volume Switched OFF"
|
||||
fi
|
||||
}
|
||||
|
||||
toggle_mic() {
|
||||
if pamixer --default-source --get-mute; then
|
||||
pamixer --default-source -u && notify-send -e -u low -i "$iDIR/microphone.png" "Microphone Switched ON"
|
||||
else
|
||||
pamixer --default-source -m && notify-send -e -u low -i "$iDIR/microphone-mute.png" "Microphone Switched OFF"
|
||||
fi
|
||||
}
|
||||
|
||||
notify_mic_user() {
|
||||
local volume=$(pamixer --default-source --get-volume)
|
||||
local icon=$(pamixer --default-source --get-mute && echo "$iDIR/microphone-mute.png" || echo "$iDIR/microphone.png")
|
||||
notify-send -e -h int:value:"$volume" -h string:x-canonical-private-synchronous:volume_notif -u low -i "$icon" "Mic-Level: $volume%"
|
||||
}
|
||||
|
||||
change_mic_volume() {
|
||||
pamixer --default-source "$1" "$2" && notify_mic_user
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
--get) get_volume ;;
|
||||
--inc) change_volume -i 5 ;;
|
||||
--dec) change_volume -d 5 ;;
|
||||
--toggle) toggle_mute ;;
|
||||
--toggle-mic) toggle_mic ;;
|
||||
--mic-inc) change_mic_volume -i 5 ;;
|
||||
--mic-dec) change_mic_volume -d 5 ;;
|
||||
*) get_volume ;;
|
||||
esac
|
||||
}
|
||||
|
||||
screenshot() {
|
||||
local notify_cmd_shot="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/screenshot.svg"
|
||||
local time=$(date "+%d-%b_%H-%M-%S")
|
||||
local dir="$(xdg-user-dir)/Pictures/Screenshots"
|
||||
local file="Screenshot_${time}_${RANDOM}.png"
|
||||
local active_window_path="${dir}/Screenshot_${time}_$(hyprctl -j activewindow | jq -r '.class').png"
|
||||
|
||||
notify_view() {
|
||||
local msg="Screenshot Saved."
|
||||
[[ "$1" == "active" && ! -e "$active_window_path" ]] && msg="Screenshot NOT Saved."
|
||||
$notify_cmd_shot "$msg"
|
||||
}
|
||||
|
||||
countdown() {
|
||||
for ((sec=$1; sec>0; sec--)); do
|
||||
notify-send -h string:x-canonical-private-synchronous:shot-notify -t 1000 -i "$iDIR/timer.png" "Taking shot in: $sec"
|
||||
sleep 1
|
||||
done
|
||||
}
|
||||
|
||||
take_shot() {
|
||||
cd "$dir" && grim - | tee "$file" | wl-copy
|
||||
sleep 2
|
||||
notify_view "$1"
|
||||
}
|
||||
|
||||
shot_timer() {
|
||||
countdown "$1"
|
||||
sleep 1
|
||||
take_shot "$2"
|
||||
}
|
||||
|
||||
shotarea() {
|
||||
local tmpfile=$(mktemp)
|
||||
local area=$(slurp)
|
||||
[[ -z "$area" ]] && { notify-send -u low -i "$iDIR/picture.png" 'No area selected'; rm "$tmpfile"; return; }
|
||||
grim -g "$area" - > "$tmpfile" && [[ -s "$tmpfile" ]] && {
|
||||
wl-copy < "$tmpfile"
|
||||
mv "$tmpfile" "$dir/Screenshot_$(date '+%d-%b_%H-%M-%S')_${RANDOM}.png"
|
||||
notify_view
|
||||
}
|
||||
rm "$tmpfile"
|
||||
}
|
||||
|
||||
shotactive() {
|
||||
hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' | grim -g - "$active_window_path"
|
||||
sleep 1
|
||||
notify_view "active"
|
||||
}
|
||||
|
||||
[[ ! -d "$dir" ]] && mkdir -p "$dir"
|
||||
|
||||
case "$1" in
|
||||
--now) take_shot ;;
|
||||
--in5) shot_timer 5 ;;
|
||||
--in10) shot_timer 10 ;;
|
||||
--area) shotarea ;;
|
||||
--active) shotactive ;;
|
||||
*) echo "Available Options: --now --in5 --in10 --area --active" ;;
|
||||
esac
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
/home/sankalp/Pictures/wallpapers/wall-15.png
|
||||
/home/sankalp/Pictures/wallpapers/wall-27.jpg
|
||||
|
Before Width: | Height: | Size: 2.2 MiB After Width: | Height: | Size: 2.0 MiB |
@@ -1,38 +0,0 @@
|
||||
window {
|
||||
padding: 0;
|
||||
border-radius: 10px;
|
||||
border: solid 1px #1b1d1d;
|
||||
background: alpha(black, 0.75);
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
image, label {
|
||||
color: @theme_fg_color;
|
||||
}
|
||||
|
||||
progressbar:disabled,
|
||||
image:disabled {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
progressbar {
|
||||
min-height: 5px;
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
}
|
||||
trough {
|
||||
min-height: inherit;
|
||||
border-radius: inherit;
|
||||
border: none;
|
||||
background: alpha(@theme_fg_color, 0.5);
|
||||
}
|
||||
progress {
|
||||
min-height: inherit;
|
||||
border-radius: inherit;
|
||||
border: none;
|
||||
background: @theme_fg_color;
|
||||
}
|
||||