-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
496 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
for proc_dir in /proc/* | ||
do | ||
if [ -d "$proc_dir" ] | ||
then | ||
pid=$(basename "$proc_dir") | ||
if [[ $pid =~ ^-?[0-9]+$ ]] | ||
then | ||
if grep -q "VmSwap" $proc_dir/status | ||
then | ||
swap_usage_nums=$(cat $proc_dir/status | grep VmSwap | awk '{ print $2 }') | ||
if (( swap_usage_nums > 0 )) | ||
then | ||
swap_usage_unit=$(cat $proc_dir/status | grep VmSwap | awk '{ print $3 }') | ||
cmdline=$(cat $proc_dir/cmdline | sed -e "s/\x00/ /g";) | ||
echo "${swap_usage_nums}${swap_usage_unit} $cmdline" | ||
fi | ||
fi | ||
fi | ||
fi | ||
done | sort -h -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
if pgrep -x "hyprlock" > /dev/null | ||
then | ||
echo "$(date '+%Y-%m-%dT%T.%3N'): Skip locking, hyprlock is already running" >> ~/.tmp/logs/sleep.log | ||
else | ||
echo "$(date '+%Y-%m-%dT%T.%3N'): Start locking" >> ~/.tmp/logs/sleep.log | ||
hyprlock -q --immediate | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#! /bin/bash | ||
|
||
killall waybar | ||
waybar --config ~/.config/waybar/top.config --style ~/.config/waybar/top.style.css | ||
waybar --config ~/.config/waybar/bottom.config --style ~/.config/waybar/bottom.style.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# Run swaylock if it's not already running | ||
if pgrep -x "swaylock" > /dev/null | ||
if pgrep -x "hyprlock" > /dev/null | ||
then | ||
echo "Skip locking, swaylock is already running" >> ~/.tmp/logs/sleep.log | ||
echo "$(date '+%Y-%m-%dT%T.%3N'): Skip locking, hyprlock is already running" >> ~/.tmp/logs/sleep.log | ||
else | ||
echo "Start swaylock" >> ~/.tmp/logs/sleep.log | ||
swaylock --grace=0 --fade-in=0 -fF | ||
echo "$(date '+%Y-%m-%dT%T.%3N'): Start locking" >> ~/.tmp/logs/sleep.log | ||
hyprlock -q --immediate | ||
sleep 2 | ||
fi | ||
|
||
systemctl suspend | ||
# systemctl suspend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,39 @@ | ||
env = TERMINAL,kitty | ||
env = XDG_SESSION_TYPE,wayland | ||
env = WLR_NO_HARDWARE_CURSORS,1 | ||
env = XDG_CURRENT_DESKTOP,Hyprland | ||
env = XDG_SESSION_DESKTOP,Hyprland | ||
|
||
env = WLR_NO_HARDWARE_CURSORS,1 | ||
env = XCURSOR_SIZE,24 | ||
|
||
env = ELECTRON_ARGS="--enable-features=UseOzonePlatform --ozone-platform=wayland" | ||
env = WLR_USE_LIBINPUT,1 | ||
env = XDG_SESSION_TYPE,wayland | ||
env = XDG_SESSION_DESKTOP,Hyprland | ||
env = WLR_EGL_NO_MODIFIERS,0 | ||
env = MOZ_ENABLE_WAYLAND,1 | ||
# env = MOZ_DBUS_REMOTE,1 | ||
env = QT_QPA_PLATFORM,wayland # "wayland;xcb" | ||
env = QT_QPA_PLATFORMTHEME,qt5ct | ||
|
||
# Toolkits | ||
env = GDK_BACKEND,wayland,x11 | ||
env = GDK_SCALE,1 | ||
env = GDK_DPI_SCALE,1 | ||
|
||
env = SDL_VIDEODRIVER,wayland | ||
env = CLUTTER_BACKEND,wayland | ||
env = WLR_RENDERER_ALLOW_SOFTWARE,1 | ||
env = MOZ_ENABLE_WAYLAND,1 | ||
env = MOZ_DISABLE_RDD_SANDBOX,1 | ||
env = MOZ_DBUS_REMOTE,1 | ||
env = __GL_MaxFramesAllowed,1 | ||
env = PROTON_ENABLE_NGX_UPDATER,1 | ||
|
||
|
||
xwayland { | ||
force_zero_scaling = true | ||
} | ||
|
||
env = GDK_SCALE,1 | ||
env = GDK_DPI_SCALE,1 | ||
|
||
# env = WLR_USE_LIBINPUT,1 | ||
# env = WLR_EGL_NO_MODIFIERS,0 | ||
# env = WLR_RENDERER_ALLOW_SOFTWARE,1 | ||
|
||
# TODO: Check if video render is accelerated | ||
# env = MOZ_DISABLE_RDD_SANDBOX,1 | ||
# | ||
# env = __GL_MaxFramesAllowed,1 | ||
# env = PROTON_ENABLE_NGX_UPDATER,1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,12 @@ | ||
# See https://wiki.hyprland.org/Configuring/Monitors/ | ||
monitor=eDP-1, 2560x1600@60Hz, 200x1440, 1.25 | ||
monitor=eDP-2, 2560x1600@60Hz, 200x1440, 1.25 | ||
# monitor=eDP-1, [email protected], 200x1440, 1.25 | ||
# monitor=eDP-2, [email protected], 200x1440, 1.25 | ||
monitor=eDP-1, 2560x1600@60Hz, 200x1152, 1.6 | ||
|
||
monitor=HDMI-A-1, [email protected], 0x0, 1.5 | ||
monitor=HDMI-A-2, [email protected], 0x0, 2.5 | ||
# monitor=DP-6, [email protected], 0x0, 1.5 | ||
# | ||
# monitor=HDMI-A-2,disable | ||
monitor=DP-2, [email protected], 0x0, 1 | ||
# monitor=DP-2, [email protected], 0x0, 1.5 | ||
# Office | ||
monitor=desc:Samsung Electric Company LU28R55 H4ZT400899, 3840x2160@60Hz, -400x-288, 1.5 | ||
|
||
# Home Office | ||
monitor=desc:Samsung Electric Company LU28R55 HNMN700388, 3840x2160@30Hz, -400x-288, 1.5 | ||
|
||
# monitor=DP-5, [email protected], 0x720, 1 | ||
|
||
# monitor=HDMI-A-2, [email protected], 0x0, 1.25 | ||
|
||
# monitor=eDP-2, [email protected], 200x1728, 1.25 | ||
# monitor=HDMI-A-1, [email protected], 0x0, 1.25 | ||
# monitor=DP-6, [email protected], 0x0, 1.25 | ||
# Gaming | ||
monitor=desc:Samsung Electric Company C34H89x H4ZT300037, 3440x1440@100Hz, -720x0, 1.25 | ||
|
||
exec-once = hyprpaper & | ||
# exec-once = hyprctl hyprpaper wallpaper "eDP-1,~/Pictures/Wallpapers/dune-2.jpg" | ||
# exec-once = hyprctl hyprpaper wallpaper "HDMI-A-2,~/Pictures/Wallpapers/dune-2.jpg" | ||
|
||
# exec = hyprctl hyprpaper wallpaper "eDP-2,~/Pictures/Wallpapers/after_all_desktop.jpg" | ||
# exec = hyprctl hyprpaper wallpaper "HDMI-A-1,~/Pictures/Wallpapers/after_all_desktop.jpg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
device { | ||
name = jomaa-mouse01-mouse | ||
# sensitivity = 1 | ||
accel_profile = adaptive | ||
scroll_method = on_button_down | ||
scroll_button = 275 | ||
} | ||
|
||
# bind = , mouse:274, killactive, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
plugin { | ||
# hyprbars { | ||
# # bar_height = 8 | ||
# # bar_title_enabled = false | ||
# # bar_color = rgb(2a2a2a) | ||
# # bar_color = rgb(AF5F5F) | ||
# # bar_part_of_window = false | ||
# | ||
# # example buttons (R -> L) | ||
# # hyprbars-button = color, size, on-click | ||
# # hyprbars-button = rgb(ff4040), 10, , hyprctl dispatch killactive | ||
# # hyprbars-button = rgb(eeee11), 10, , hyprctl dispatch fullscreen 1 | ||
# } | ||
|
||
# hyprexpo { | ||
# columns = 3 | ||
# gap_size = 2 | ||
# bg_col = rgb(000000) | ||
# workspace_method = center current | ||
# enable_gesture = false | ||
# } | ||
} | ||
|
||
# bind = SUPER, SPACE, hyprexpo:expo, toggle # can be: toggle, off/disable or on/enable | ||
|
||
# windowrulev2 = plugin:hyprbars:nobar, focus:0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.