From 246973759dc58fe5f3f63212b5e1a7c324a730f4 Mon Sep 17 00:00:00 2001 From: MikeG Date: Sun, 6 Oct 2024 08:08:49 -0400 Subject: [PATCH 01/11] added volume notification --- .config/dunst/dunstrc | 4 ++-- .config/sway/config | 6 +++--- .config/waybar/config | 2 +- Scripts/background-changer.sh | 11 +++++++++++ Scripts/volume-notif.sh | 19 +++++++++++++++++++ 5 files changed, 36 insertions(+), 6 deletions(-) create mode 100755 Scripts/background-changer.sh create mode 100755 Scripts/volume-notif.sh diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 9d849b9..5b2ae60 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -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 = 24 # Scale larger icons down to this size, set to 0 to disable max_icon_size = 128 diff --git a/.config/sway/config b/.config/sway/config index 8ef280d..f484860 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -241,9 +241,9 @@ 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%+ diff --git a/.config/waybar/config b/.config/waybar/config index e88ded7..53911ef 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -30,7 +30,7 @@ "clock": { "interval": 60, - "format": "{:%a %b %e %I:%M}", + "format": "{:%a, %b %e / %I:%M /}", "tooltip-format": "{calendar}", "calendar": { "mode" : "year", diff --git a/Scripts/background-changer.sh b/Scripts/background-changer.sh new file mode 100755 index 0000000..3da6e79 --- /dev/null +++ b/Scripts/background-changer.sh @@ -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 diff --git a/Scripts/volume-notif.sh b/Scripts/volume-notif.sh new file mode 100755 index 0000000..04180ba --- /dev/null +++ b/Scripts/volume-notif.sh @@ -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 From 273db9af59275f0e2a9d5e6305d11c2d80d01eee Mon Sep 17 00:00:00 2001 From: MikeG Date: Sun, 6 Oct 2024 13:13:35 -0400 Subject: [PATCH 02/11] added brightness notification script --- .config/dunst/dunstrc | 6 ++++++ .config/sway/config | 4 ++-- Scripts/brightness_notif.sh | 14 ++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 Scripts/brightness_notif.sh diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 5b2ae60..060062e 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -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. # diff --git a/.config/sway/config b/.config/sway/config index f484860..d1ad267 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -245,8 +245,8 @@ bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && /h 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 # # Status Bar: diff --git a/Scripts/brightness_notif.sh b/Scripts/brightness_notif.sh new file mode 100755 index 0000000..60a3f00 --- /dev/null +++ b/Scripts/brightness_notif.sh @@ -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}%" From 625c2d0679b93a506f1c96994b0b3ac6be75743a Mon Sep 17 00:00:00 2001 From: MikeG Date: Tue, 8 Oct 2024 19:16:38 -0400 Subject: [PATCH 03/11] added sway keybind for screenshot select script and disabled history_ignore in dunst config, something not working properly there --- .config/dunst/dunstrc | 12 ++++++------ .config/sway/config | 2 ++ Scripts/screenshot-select.sh | 23 +++++++++++++++++++++++ 3 files changed, 31 insertions(+), 6 deletions(-) create mode 100755 Scripts/screenshot-select.sh diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 060062e..bbb04f7 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -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 = 24 + min_icon_size = 64 # Scale larger icons down to this size, set to 0 to disable max_icon_size = 128 @@ -356,11 +356,11 @@ # Icon for notifications with critical urgency, uncomment to enable #default_icon = /path/to/icon -[Volume] - history_ignore = true - -[Brightness] - history_ignore = true +# [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. diff --git a/.config/sway/config b/.config/sway/config index d1ad267..8db0be4 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -247,6 +247,8 @@ bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && /home/em bindsym XF86AudioMicMute exec pactl set-source-mute @DEFUALT_SOURCE@ toggle 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 # # Status Bar: diff --git a/Scripts/screenshot-select.sh b/Scripts/screenshot-select.sh new file mode 100755 index 0000000..04dc35e --- /dev/null +++ b/Scripts/screenshot-select.sh @@ -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 From 0c983e55a42d58c84a447ccf42b33fef5fe37666 Mon Sep 17 00:00:00 2001 From: MikeG Date: Wed, 9 Oct 2024 17:22:35 -0400 Subject: [PATCH 04/11] added quick note script and keyboard shortcut --- .config/sway/config | 3 ++- Scripts/quick-note.sh | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 Scripts/quick-note.sh diff --git a/.config/sway/config b/.config/sway/config index 8db0be4..0c0e291 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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 @@ -249,6 +249,7 @@ bindsym XF86MonBrightnessDown exec brightnessctl set 5%- && /home/emge/Scripts/b 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 # # Status Bar: diff --git a/Scripts/quick-note.sh b/Scripts/quick-note.sh new file mode 100755 index 0000000..fdd320b --- /dev/null +++ b/Scripts/quick-note.sh @@ -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 From b8e796e488da9210e16af1eeb2c95e7dd8eff5e2 Mon Sep 17 00:00:00 2001 From: MikeG Date: Thu, 10 Oct 2024 19:58:28 -0400 Subject: [PATCH 05/11] fixed trailing slash in directory path for quick note script --- Scripts/quick-note.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/quick-note.sh b/Scripts/quick-note.sh index fdd320b..56aa26e 100755 --- a/Scripts/quick-note.sh +++ b/Scripts/quick-note.sh @@ -2,7 +2,7 @@ # open quicknote # set quick note directory -dir="/home/emge/Notes/QuickNotes" +dir="/home/emge/Notes/QuickNotes/" # set current date curDate=$(date +"%Y-%m-%d") From 914e9afe5612c4e68fef3279dff929db0fc26c9f Mon Sep 17 00:00:00 2001 From: MikeG Date: Sat, 2 Nov 2024 19:39:54 -0400 Subject: [PATCH 06/11] changed sway background, switched pacman update notifier in waybar --- .config/sway/config | 7 ++++--- .config/waybar/config | 6 +++--- .config/waybar/style.css | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 0c0e291..fbb29ca 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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 # @@ -250,6 +250,7 @@ bindsym XF86MonBrightnessUp exec brightnessctl set 5%+ && /home/emge/Scripts/bri 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: diff --git a/.config/waybar/config b/.config/waybar/config index 53911ef..a1ddc81 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -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": { diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 9944841..324b0a4 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -145,6 +145,6 @@ tooltip { background-color: @foreground; } -#custom-updates.has-updates { +#custom-updates.pending-updates { color: @16; } From b70af27bfa947a02d46c3ce362e15cb0e9328209 Mon Sep 17 00:00:00 2001 From: MikeG Date: Sat, 15 Feb 2025 21:01:12 -0500 Subject: [PATCH 07/11] tweaked a couple things --- .bash_aliases | 2 +- .config/dunst/dunstrc | 8 ++++---- .config/waybar/config | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 933dead..d2d61e1 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -3,7 +3,7 @@ alias mountwww="sudo mount -t nfs manjarodesktop:/home/mg/www /mnt/www" alias mountns="sudo mount -t nfs manjarodesktop:/mnt/TerraBeef/NetShare /mnt/manjaroshare" alias sshcloud="ssh -p 1919 emge@95.217.8.112" alias config="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME" -alias syncheavy="rsync -azP --no-perms --no-owner --no-group --no-times --delete /home/emge/Development/11ty-projects/heavy-rocks/_site/ emge@95.217.8.112:/var/www/heavy.rocks/" +alias syncheavy="rsync -azP -e 'ssh -p 1919' --no-perms --no-owner --no-group --no-times --delete /home/emge/Development/11ty-projects/heavy-rocks/_site/ emge@37.27.192.252:/srv/http/" alias s!="sudo systemctl" alias portcheck="sudo lsof -i -P -n | grep LISTEN" alias pubip="dig +short myip.opendns.com @resolver1.opendns.com" diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index bbb04f7..524aa2c 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -27,13 +27,13 @@ width = 500 # The maximum height of a single notification, excluding the frame. - height = 300 + height = (0, 300) # Position the notification in the top right corner origin = top-right # Offset from the origin - offset = 25x25 + offset = (25, 25) # Scale factor. It is auto-detected if value is 0. scale = 0 @@ -61,7 +61,7 @@ progress_bar_max_width = 300 # Corner radius for the progress bar. 0 disables rounded corners. - progress_bar_corner_radius = 15 + progress_bar_corner_radius = 5 # Define which corners to round when drawing the progress bar. If progress_bar_corner_radius # is set to 0 this option will be ignored. @@ -230,7 +230,7 @@ max_icon_size = 128 # Paths to default icons (only necessary when not using recursive icon lookup) - icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ + #icon_path = /usr/share/icons/Papirus/16x16/status/:/usr/share/icons/Papirus/16x16/devices/ ### History ### diff --git a/.config/waybar/config b/.config/waybar/config index a1ddc81..eef5a29 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -144,6 +144,7 @@ "format-bluetooth": "󰂰 ", "format-muted": " ", "format-icons": { + "headphone": " ", "default": ["", ""] }, "justify": "center", From 3da5678504076d346ab9db900562481d8204ef4b Mon Sep 17 00:00:00 2001 From: MikeG Date: Fri, 21 Feb 2025 20:20:45 -0500 Subject: [PATCH 08/11] updated syncheavy back to heavydeb --- .bash_aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index d2d61e1..7997a44 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -3,7 +3,7 @@ alias mountwww="sudo mount -t nfs manjarodesktop:/home/mg/www /mnt/www" alias mountns="sudo mount -t nfs manjarodesktop:/mnt/TerraBeef/NetShare /mnt/manjaroshare" alias sshcloud="ssh -p 1919 emge@95.217.8.112" alias config="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME" -alias syncheavy="rsync -azP -e 'ssh -p 1919' --no-perms --no-owner --no-group --no-times --delete /home/emge/Development/11ty-projects/heavy-rocks/_site/ emge@37.27.192.252:/srv/http/" +alias syncheavy="rsync -azP -e 'ssh -p 1919' --no-perms --no-owner --no-group --no-times --delete /home/emge/Development/11ty-projects/heavy-rocks/_site/ emge@95.217.216.54:/var/www/heavy.rocks/" alias s!="sudo systemctl" alias portcheck="sudo lsof -i -P -n | grep LISTEN" alias pubip="dig +short myip.opendns.com @resolver1.opendns.com" From 074b7c05ffa22aa65833f7273fc1968ae8722999 Mon Sep 17 00:00:00 2001 From: MikeG Date: Thu, 27 Feb 2025 20:21:10 -0500 Subject: [PATCH 09/11] switched sway window focus keys from arrows to vim --- .config/sway/config | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index fbb29ca..ab7b4b0 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -129,15 +129,15 @@ input "10248:257:FTCS1000:00_2808:0101_Touchpad" { # Moving around: # # Move your focus around - # bindsym $mod+$left focus left - # bindsym $mod+$down focus down - # bindsym $mod+$up focus up - # bindsym $mod+$right focus right + bindsym $mod+$left focus left + bindsym $mod+$down focus down + bindsym $mod+$up focus up + bindsym $mod+$right focus right # Or use $mod+[up|down|left|right] - bindsym $mod+Left focus left - bindsym $mod+Down focus down - bindsym $mod+Up focus up - bindsym $mod+Right focus right + # bindsym $mod+Left focus left + # bindsym $mod+Down focus down + # bindsym $mod+Up focus up + # bindsym $mod+Right focus right # Move the focused window with the same, but add Shift bindsym $mod+Shift+$left move left From d06b17333d5d5e3aa5199967b033e7b95fc7bae0 Mon Sep 17 00:00:00 2001 From: MikeG Date: Thu, 12 Jun 2025 20:08:50 -0400 Subject: [PATCH 10/11] nvim clipboard and relative number options, removed swayfx - disabled swayfx specific options in config, moved swaylock config to config file --- .config/nvim/lua/config/options.lua | 2 ++ .config/sway/config | 46 ++++++++++++++--------------- .config/sway/lockman.sh | 2 +- .config/swaylock/config | 12 ++++++++ 4 files changed, 38 insertions(+), 24 deletions(-) create mode 100644 .config/swaylock/config diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua index 262e9cb..cacca34 100644 --- a/.config/nvim/lua/config/options.lua +++ b/.config/nvim/lua/config/options.lua @@ -1,6 +1,8 @@ vim.g.loaded_netrw = 1 -- disable netrw for nvim-tree vim.g.loaded_netrwPlugin = 1 -- recommended for nvim-tree +vim.opt.clipboard = "unnamedplus" -- set clipboard register vim.opt.number = true -- turn line numbers on +vim.opt.relativenumber = true -- turn relative line numbers on vim.opt.ignorecase = true -- ignore case when searching vim.opt.hlsearch = true -- highlight search results vim.opt.tabstop = 2 -- set number of spaces for a tab diff --git a/.config/sway/config b/.config/sway/config index ab7b4b0..e5461d8 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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/fly_original.png fill +output * bg ~/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png fill # # Example configuration: # @@ -66,14 +66,14 @@ output eDP-1 resolution 1920x1080 position 0,0 # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. -set $lock 'swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/fly_original.png' +set $lock 'swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png --indicator-radius 175 --indicator-y-position 525 --inside-color 000000AA' exec swayidle -w \ timeout 300 $lock \ 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+x exec $lockman ### Input configuration # @@ -290,22 +290,22 @@ client.unfocused "#2d3f76" "#2d3f76" "#ff757f" client.focused_inactive "#2d3f76" "#2d3f76" "#ff757f" ### Swayfx options -corner_radius 15 - -blur on -blur_xray off -blur_passes 2 -blur_radius 5 - -shadows off -shadows_on_csd off -shadow_blur_radius 20 -shadow_color #0000007F - -# inactive window fade amount 0.0 = no dimming, 1.0 = fully dimmed -default_dim_inactive 0.0 -dim_inactive_colors.unfocused #000000FF -dim_inactive_colors.urgent #900000FF - -# move minimized windows to scratchpad -scratchpad_minimize disable +# corner_radius 5 +# +# blur on +# blur_xray off +# blur_passes 2 +# blur_radius 5 +# +# shadows off +# shadows_on_csd off +# shadow_blur_radius 20 +# shadow_color #0000007F +# +# # inactive window fade amount 0.0 = no dimming, 1.0 = fully dimmed +# default_dim_inactive 0.0 +# dim_inactive_colors.unfocused #000000FF +# dim_inactive_colors.urgent #900000FF +# +# # move minimized windows to scratchpad +# scratchpad_minimize disable diff --git a/.config/sway/lockman.sh b/.config/sway/lockman.sh index bebfd2b..3bfe4da 100644 --- a/.config/sway/lockman.sh +++ b/.config/sway/lockman.sh @@ -2,5 +2,5 @@ swayidle \ timeout 10 'swaymsg "output * power off"' \ resume 'swaymsg "output * power on"' & -swaylock -e -F -i ~/Source/tokyonight-wallpapers/fly_original.png +swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png --indicator-radius 175 --indicator-y-position 525 --inside-color 000000AA kill %% diff --git a/.config/swaylock/config b/.config/swaylock/config new file mode 100644 index 0000000..cbff9c5 --- /dev/null +++ b/.config/swaylock/config @@ -0,0 +1,12 @@ +ignore-empty-password + +show-failed-attempts + +image=/home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png + +indicator-radius=175 +indicator-y-position=525 +inside-color=1b1d2bAA +ring-color=2d3f76ff +key-hl-color=82aaffff +bs-hl-color=ff757fff From a1296d9813311940fbe902702a5debd768b1d9be Mon Sep 17 00:00:00 2001 From: MikeG Date: Thu, 12 Jun 2025 20:16:31 -0400 Subject: [PATCH 11/11] modified swaylock lines in sway config and lock script --- .config/sway/config | 3 ++- .config/sway/lockman.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index e5461d8..b21f419 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -66,7 +66,8 @@ output eDP-1 resolution 1920x1080 position 0,0 # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. -set $lock 'swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png --indicator-radius 175 --indicator-y-position 525 --inside-color 000000AA' +# set $lock 'swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png --indicator-radius 175 --indicator-y-position 525 --inside-color 000000AA' +set $lock 'swaylock' exec swayidle -w \ timeout 300 $lock \ timeout 310 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ diff --git a/.config/sway/lockman.sh b/.config/sway/lockman.sh index 3bfe4da..582dc34 100644 --- a/.config/sway/lockman.sh +++ b/.config/sway/lockman.sh @@ -2,5 +2,6 @@ swayidle \ timeout 10 'swaymsg "output * power off"' \ resume 'swaymsg "output * power on"' & -swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png --indicator-radius 175 --indicator-y-position 525 --inside-color 000000AA +#swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png --indicator-radius 175 --indicator-y-position 525 --inside-color 000000AA +swaylock kill %%