Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
914e9afe56 | |||
b8e796e488 | |||
0c983e55a4 | |||
625c2d0679 | |||
273db9af59 | |||
246973759d |
9 changed files with 110 additions and 23 deletions
|
@ -214,7 +214,7 @@
|
||||||
enable_recursive_icon_lookup = true
|
enable_recursive_icon_lookup = true
|
||||||
|
|
||||||
# Set icon theme (only used for recursive icon lookup)
|
# 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.
|
# You can also set multiple icon themes, with the leftmost one being used first.
|
||||||
# icon_theme = "Adwaita, breeze"
|
# icon_theme = "Adwaita, breeze"
|
||||||
|
|
||||||
|
@ -224,7 +224,7 @@
|
||||||
# Scale small icons up to this size, set to 0 to disable. Helpful
|
# 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,
|
# for e.g. small files or high-dpi screens. In case of conflict,
|
||||||
# max_icon_size takes precedence over this.
|
# 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
|
# Scale larger icons down to this size, set to 0 to disable
|
||||||
max_icon_size = 128
|
max_icon_size = 128
|
||||||
|
@ -356,6 +356,12 @@
|
||||||
# Icon for notifications with critical urgency, uncomment to enable
|
# Icon for notifications with critical urgency, uncomment to enable
|
||||||
#default_icon = /path/to/icon
|
#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
|
# Every section that isn't one of the above is interpreted as a rules to
|
||||||
# override settings for certain messages.
|
# 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 ~/Wallpapers/orangeMountains.png fill
|
||||||
# output * bg #c0caf5 solid_color
|
# output * bg #c0caf5 solid_color
|
||||||
# output * bg ~/Wallpapers/wp9285156.jpg fill
|
# 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:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
|
@ -72,8 +72,8 @@ exec swayidle -w \
|
||||||
timeout 310 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
timeout 310 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||||
before-sleep $lock
|
before-sleep $lock
|
||||||
|
|
||||||
set $lockman 'exec bash ~/.config/sway/lockman.sh'
|
# set $lockman 'exec bash ~/.config/sway/lockman.sh'
|
||||||
bindsym $mod+l exec $lockman
|
# bindsym $mod+l exec $lockman
|
||||||
|
|
||||||
### Input configuration
|
### Input configuration
|
||||||
#
|
#
|
||||||
|
@ -149,7 +149,7 @@ input "10248:257:FTCS1000:00_2808:0101_Touchpad" {
|
||||||
bindsym $mod+Shift+Down move down
|
bindsym $mod+Shift+Down move down
|
||||||
bindsym $mod+Shift+Up move up
|
bindsym $mod+Shift+Up move up
|
||||||
bindsym $mod+Shift+Right move right
|
bindsym $mod+Shift+Right move right
|
||||||
#r
|
#
|
||||||
# Workspaces:
|
# Workspaces:
|
||||||
#
|
#
|
||||||
# Switch to workspace
|
# Switch to workspace
|
||||||
|
@ -241,12 +241,16 @@ bindsym $mod+r mode "resize"
|
||||||
#
|
#
|
||||||
# Custom keybinds for latop controls
|
# Custom keybinds for latop controls
|
||||||
#
|
#
|
||||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
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%
|
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
|
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 XF86AudioMicMute exec pactl set-source-mute @DEFUALT_SOURCE@ toggle
|
||||||
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
bindsym XF86MonBrightnessDown exec brightnessctl set 5%- && /home/emge/Scripts/brightness_notif.sh
|
||||||
bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
|
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:
|
# Status Bar:
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
"disk",
|
"disk",
|
||||||
"memory",
|
"memory",
|
||||||
"temperature",
|
"temperature",
|
||||||
"hyprland/window"
|
"sway/window"
|
||||||
],
|
],
|
||||||
"modules-center":
|
"modules-center":
|
||||||
[
|
[
|
||||||
"hyprland/workspaces"
|
"sway/workspaces"
|
||||||
],
|
],
|
||||||
"modules-right":
|
"modules-right":
|
||||||
[
|
[
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
"clock": {
|
"clock": {
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
"format": "{:%a %b %e %I:%M}",
|
"format": "{:%a, %b %e <big>/ %I:%M /</big>}",
|
||||||
"tooltip-format": "<tt>{calendar}</tt>",
|
"tooltip-format": "<tt>{calendar}</tt>",
|
||||||
"calendar": {
|
"calendar": {
|
||||||
"mode" : "year",
|
"mode" : "year",
|
||||||
|
@ -98,15 +98,13 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"hyprland/workspaces": {
|
"sway/workspaces": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
|
||||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
|
||||||
"on-click": "activate",
|
"on-click": "activate",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"persistent": "",
|
"persistent": "",
|
||||||
"urgent": "",
|
"urgent": "",
|
||||||
"active": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"sort-by-number": true,
|
"sort-by-number": true,
|
||||||
"persistent-workspaces": {
|
"persistent-workspaces": {
|
||||||
|
@ -117,7 +115,7 @@
|
||||||
"5": [] }
|
"5": [] }
|
||||||
},
|
},
|
||||||
|
|
||||||
"hyprland/window": {
|
"sway/window": {
|
||||||
"format": "{app_id} - {title}",
|
"format": "{app_id} - {title}",
|
||||||
"max-length": 30,
|
"max-length": 30,
|
||||||
"icon": true
|
"icon": true
|
||||||
|
@ -167,11 +165,11 @@
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"has-updates": " ",
|
"pending-updates": " ",
|
||||||
"updated": ""
|
"updated": ""
|
||||||
},
|
},
|
||||||
"exec-if": "which waybar-module-pacman-updates",
|
"exec-if": "which waybar-updates",
|
||||||
"exec": "waybar-module-pacman-updates --interval-seconds 5 --network-interval-seconds 300"
|
"exec": "waybar-updates -n"
|
||||||
},
|
},
|
||||||
|
|
||||||
"bluetooth": {
|
"bluetooth": {
|
||||||
|
|
|
@ -145,6 +145,6 @@ tooltip {
|
||||||
background-color: @foreground;
|
background-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-updates.has-updates {
|
#custom-updates.pending-updates {
|
||||||
color: @16;
|
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