Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
914e9afe56 | |||
b8e796e488 | |||
0c983e55a4 | |||
625c2d0679 | |||
273db9af59 | |||
246973759d |
9 changed files with 105 additions and 16 deletions
|
@ -214,7 +214,7 @@
|
|||
enable_recursive_icon_lookup = true
|
||||
|
||||
# Set icon theme (only used for recursive icon lookup)
|
||||
icon_theme = "Papirus, Adwaita"
|
||||
icon_theme = "Papirus-Dark, Adwaita"
|
||||
# You can also set multiple icon themes, with the leftmost one being used first.
|
||||
# icon_theme = "Adwaita, breeze"
|
||||
|
||||
|
@ -224,7 +224,7 @@
|
|||
# Scale small icons up to this size, set to 0 to disable. Helpful
|
||||
# for e.g. small files or high-dpi screens. In case of conflict,
|
||||
# max_icon_size takes precedence over this.
|
||||
min_icon_size = 16
|
||||
min_icon_size = 64
|
||||
|
||||
# Scale larger icons down to this size, set to 0 to disable
|
||||
max_icon_size = 128
|
||||
|
@ -356,6 +356,12 @@
|
|||
# Icon for notifications with critical urgency, uncomment to enable
|
||||
#default_icon = /path/to/icon
|
||||
|
||||
# [Volume]
|
||||
# history_ignore = true
|
||||
#
|
||||
# [Brightness]
|
||||
# history_ignore = true
|
||||
|
||||
# Every section that isn't one of the above is interpreted as a rules to
|
||||
# override settings for certain messages.
|
||||
#
|
||||
|
|
|
@ -43,7 +43,7 @@ bindsym $mod+Shift+m exec dunstctl close-all
|
|||
# output * bg ~/Wallpapers/orangeMountains.png fill
|
||||
# output * bg #c0caf5 solid_color
|
||||
# output * bg ~/Wallpapers/wp9285156.jpg fill
|
||||
output * bg ~/Source/tokyonight-wallpapers/tron_original.png fill
|
||||
output * bg ~/Source/tokyonight-wallpapers/fly_original.png fill
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
|
@ -72,8 +72,8 @@ exec swayidle -w \
|
|||
timeout 310 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||
before-sleep $lock
|
||||
|
||||
set $lockman 'exec bash ~/.config/sway/lockman.sh'
|
||||
bindsym $mod+l exec $lockman
|
||||
# set $lockman 'exec bash ~/.config/sway/lockman.sh'
|
||||
# bindsym $mod+l exec $lockman
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
|
@ -149,7 +149,7 @@ input "10248:257:FTCS1000:00_2808:0101_Touchpad" {
|
|||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
#r
|
||||
#
|
||||
# Workspaces:
|
||||
#
|
||||
# Switch to workspace
|
||||
|
@ -241,12 +241,16 @@ bindsym $mod+r mode "resize"
|
|||
#
|
||||
# Custom keybinds for latop controls
|
||||
#
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && /home/emge/Scripts/volume-notif.sh
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && /home/emge/Scripts/volume-notif.sh
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && /home/emge/Scripts/volume-notif.sh
|
||||
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFUALT_SOURCE@ toggle
|
||||
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||
bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
|
||||
bindsym XF86MonBrightnessDown exec brightnessctl set 5%- && /home/emge/Scripts/brightness_notif.sh
|
||||
bindsym XF86MonBrightnessUp exec brightnessctl set 5%+ && /home/emge/Scripts/brightness_notif.sh
|
||||
bindsym Print exec /home/emge/Scripts/screenshot.sh
|
||||
bindsym $mod+Shift+s exec /home/emge/Scripts/screenshot-select.sh
|
||||
bindsym $mod+Shift+u exec /home/emge/Scripts/quick-note.sh
|
||||
bindsym $mod+Shift+p exec hyprpicker -a
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
"clock": {
|
||||
"interval": 60,
|
||||
"format": "{:%a %b %e %I:%M}",
|
||||
"format": "{:%a, %b %e <big>/ %I:%M /</big>}",
|
||||
"tooltip-format": "<tt>{calendar}</tt>",
|
||||
"calendar": {
|
||||
"mode" : "year",
|
||||
|
@ -165,11 +165,11 @@
|
|||
"format": "{icon}",
|
||||
"return-type": "json",
|
||||
"format-icons": {
|
||||
"has-updates": " ",
|
||||
"pending-updates": " ",
|
||||
"updated": ""
|
||||
},
|
||||
"exec-if": "which waybar-module-pacman-updates",
|
||||
"exec": "waybar-module-pacman-updates --interval-seconds 5 --network-interval-seconds 300"
|
||||
"exec-if": "which waybar-updates",
|
||||
"exec": "waybar-updates -n"
|
||||
},
|
||||
|
||||
"bluetooth": {
|
||||
|
|
|
@ -145,6 +145,6 @@ tooltip {
|
|||
background-color: @foreground;
|
||||
}
|
||||
|
||||
#custom-updates.has-updates {
|
||||
#custom-updates.pending-updates {
|
||||
color: @16;
|
||||
}
|
||||
|
|
11
Scripts/background-changer.sh
Executable file
11
Scripts/background-changer.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
wallpapers_path=/home/emge/Wallpapers/
|
||||
|
||||
# while true; do
|
||||
# swaybg -i $(find $wallpapers_path -type f | shuf -n 1) -m fill
|
||||
# sleep 29m
|
||||
# done
|
||||
# sleep 1m
|
||||
|
||||
swaymsg output "*" bg $(find $wallpapers_path -type f | shuf -n 1) fill
|
14
Scripts/brightness_notif.sh
Executable file
14
Scripts/brightness_notif.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
# dunst change brightness notification
|
||||
|
||||
# set varialbe $brightness to current brightness level
|
||||
brightness=$(cat /sys/class/backlight/acpi_video0/actual_brightness)
|
||||
|
||||
# set variable $max to current max brightness level
|
||||
max=$(cat /sys/class/backlight/acpi_video0/max_brightness)
|
||||
|
||||
# calculate percentage
|
||||
brightness_percent=$(((brightness * 100) / max))
|
||||
|
||||
# show brightness notification
|
||||
dunstify -u low -i brightness -h string:x-dunst-stack-tag:Brightness -h int:value:"$brightness_percent" "Brightness: ${brightness_percent}%"
|
12
Scripts/quick-note.sh
Executable file
12
Scripts/quick-note.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
# open quicknote
|
||||
|
||||
# set quick note directory
|
||||
dir="/home/emge/Notes/QuickNotes/"
|
||||
|
||||
# set current date
|
||||
curDate=$(date +"%Y-%m-%d")
|
||||
|
||||
file=$dir$curDate".md"
|
||||
|
||||
foot nvim $file
|
23
Scripts/screenshot-select.sh
Executable file
23
Scripts/screenshot-select.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
# take screenshot of selection and save to
|
||||
# default screenshots directory
|
||||
|
||||
# set default screenshots directory
|
||||
dir="/home/emge/Pictures/screenshots/"
|
||||
|
||||
# set current date
|
||||
curDate=$(date +"%Y-%m-%d")
|
||||
|
||||
i="1"
|
||||
file=$dir$curDate"_"$i".png"
|
||||
|
||||
while [ -f $file ] ;
|
||||
do
|
||||
i=$((i + "1"))
|
||||
file=$dir$curDate"_"$i".png"
|
||||
done
|
||||
|
||||
grim -g "$(slurp)" $file
|
||||
|
||||
# show screenshot notification
|
||||
dunstify -u low -i accessories-screenshot -h string:x-dunst-stack-tag:Screenshot "Screenshot saved:" $file
|
19
Scripts/volume-notif.sh
Executable file
19
Scripts/volume-notif.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
# dunst change volume notification
|
||||
|
||||
# set varialbe $volume to current volume level
|
||||
# --get-volume returns two equal values, the awk
|
||||
# pipe pulls just the first one - both values
|
||||
# should match unless balance was adjusted
|
||||
volume=$(pulsemixer --get-volume | awk '{print $1}')
|
||||
|
||||
# set variable $muted to current mute setting
|
||||
muted=$(pulsemixer --get-mute)
|
||||
|
||||
if [[ $muted == 1 || $volume == 0 ]]; then
|
||||
# show muted notification
|
||||
dunstify -u low -i audio-volume-muted -h string:x-dunst-stack-tag:Volume "Volume Muted"
|
||||
else
|
||||
# show volume notification
|
||||
dunstify -u low -i audio-volume-high -h string:x-dunst-stack-tag:Volume -h int:value:"$volume" "Volume: ${volume}%"
|
||||
fi
|
Loading…
Reference in a new issue