fix: screenshot and tearing

This commit is contained in:
hesam-init 2024-02-14 18:55:36 +03:30
parent 9af67d741c
commit 5059a6e23b
4 changed files with 7 additions and 32 deletions

View file

@ -1,21 +0,0 @@
# -----------------------------------------------------
# ML4W configurations
# -----------------------------------------------------
windowrulev2 = float,class:(com.ml4w.welcome)
windowrulev2 = size 700 600,class:(com.ml4w.welcome)
windowrulev2 = nomaximizerequest,class:(com.ml4w.welcome)
windowrulev2 = nofullscreenrequest,class:(com.ml4w.welcome)
windowrulev2 = center,class:(com.ml4w.welcome)
windowrulev2 = float,class:(ml4w-welcome.py)
windowrulev2 = size 400 500,class:(ml4w-welcome.py)
windowrulev2 = nomaximizerequest,class:(ml4w-welcome.py)
windowrulev2 = nofullscreenrequest,class:(ml4w-welcome.py)
windowrulev2 = center,class:(ml4w-welcome.py)
windowrulev2 = float,class:(.config-floating)
windowrulev2 = size 1000 800,class:(.config-floating)
windowrulev2 = nomaximizerequest,class:(.config-floating)
windowrulev2 = nofullscreenrequest,class:(.config-floating)
windowrulev2 = center,class:(.config-floating)

View file

@ -1,10 +1,10 @@
# -----------------------------------------------------
# -----------------------------------------------------
# General window layout and colors
# name: "Default"
# -----------------------------------------------------
# -----------------------------------------------------
general {
max_fps = 360
max_fps = 75
gaps_in = 4
gaps_out = 5
border_size = 2
@ -12,6 +12,6 @@ general {
col.inactive_border = rgba(31313699)
no_focus_fallback = true
layout = dwindle
allow_tearing = true
allow_tearing = false
sensitivity = 0.5
}

View file

@ -12,7 +12,7 @@ hyprshot="$HOME/.config/hypr/scripts/hyprshot.sh"
# Theme Elements
prompt='Screenshot'
mesg="DIR: $(xdg-user-dir PICTURES)/Screenshots"
mesg="DIR: ~/Screenshots"
if [[ "$theme" == *'type-1'* ]]; then
list_col='1'
@ -50,7 +50,7 @@ fi
# Rofi CMD
rofi_cmd() {
rofi -theme-str "window {width: $win_width;}" \
rofi -n -theme-str "window {width: $win_width;}" \
-theme-str "listview {columns: $list_col; lines: $list_row;}" \
-theme-str 'textbox-prompt-colon {str: "";}' \
-dmenu \
@ -65,11 +65,6 @@ run_rofi() {
echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5" | rofi_cmd
}
# Copy screenshot to clipboard
copy_shot() {
tee "$file" | xclip -selection clipboard -t image/png
}
# countdown
countdown() {
for sec in $(seq $1 -1 1); do

View file

@ -16,6 +16,7 @@ configuration {
normalize-match: true;
show-icons: true;
icon-theme: "Papirus";
no-fading-openclose: true;
/* cache-dir: ;*/
steal-focus: false;
/* dpi: -1;*/