mirror of
https://github.com/Ascyii/dotfiles.git
synced 2026-01-01 06:54:24 -05:00
Added grayscale
This commit is contained in:
@@ -23,16 +23,31 @@ exec-once = hyprsunset -t 3000
|
|||||||
exec-once = wl-clip-persist --clipboard regular
|
exec-once = wl-clip-persist --clipboard regular
|
||||||
exec-once = hyprpaper
|
exec-once = hyprpaper
|
||||||
exec-once = nm-applet
|
exec-once = nm-applet
|
||||||
exec-once = nextcloud
|
exec-once = sleep 5 && nextcloud
|
||||||
|
|
||||||
# Prevent speaker damage
|
# Prevent speaker damage
|
||||||
exec-once = wpctl set-volume @DEFAULT_AUDIO_SINK@ 42%
|
exec-once = sleep 5 && wpctl set-volume @DEFAULT_AUDIO_SINK@ 42%
|
||||||
|
|
||||||
exec-once = ~/projects/scripts/shell/rnote_mapper.sh
|
exec-once = ~/projects/scripts/shell/rnote_mapper.sh
|
||||||
|
exec-once = ~/projects/scripts/shell/toggle_grayscale.sh
|
||||||
|
|
||||||
# Mount the webdav folder configured by rclone
|
# Mount the webdav folder configured by rclone
|
||||||
exec-once = mkdir -p ~/webdav
|
exec-once = mkdir -p ~/webdav
|
||||||
exec-once = rclone mount Strato: ~/webdav
|
|
||||||
|
# Only run this on the laptops and phones that dont want to run synthing
|
||||||
|
#exec-once = rclone mount Strato: ~/webdav \
|
||||||
|
# --vfs-cache-mode writes \
|
||||||
|
# --vfs-cache-max-size 10G \
|
||||||
|
# --vfs-cache-poll-interval 5m \
|
||||||
|
# --vfs-write-back 30s \
|
||||||
|
# --buffer-size 128M \
|
||||||
|
# --dir-cache-time 12h \
|
||||||
|
# --poll-interval 5m \
|
||||||
|
# --umask 022 \
|
||||||
|
# --no-modtime \
|
||||||
|
# --daemon
|
||||||
|
|
||||||
|
#exec-once = rclone bisync Strato: ~/webdav --verbose
|
||||||
|
|
||||||
# Set the right workspace otherwise it is set to ten
|
# Set the right workspace otherwise it is set to ten
|
||||||
exec-once = sleep 0.1 && hyprctl dispatch workspace 1
|
exec-once = sleep 0.1 && hyprctl dispatch workspace 1
|
||||||
@@ -191,7 +206,7 @@ windowrulev2 = workspace 5, class:(steam)
|
|||||||
windowrulev2 = workspace 5, class:(blender)
|
windowrulev2 = workspace 5, class:(blender)
|
||||||
|
|
||||||
windowrulev2 = workspace 6, initialTitle:(LibreOffice)
|
windowrulev2 = workspace 6, initialTitle:(LibreOffice)
|
||||||
windowrulev2 = workspace 6, initialTitle:(GNU Image Manipulation Program)
|
#windowrulev2 = workspace 6, initialTitle:(GNU Image Manipulation Program)
|
||||||
windowrulev2 = workspace 6, class:(org.shotcut.Shotcut)
|
windowrulev2 = workspace 6, class:(org.shotcut.Shotcut)
|
||||||
|
|
||||||
# Social Apps
|
# Social Apps
|
||||||
@@ -229,6 +244,9 @@ windowrulev2 = float, class:(qt5ct)
|
|||||||
windowrulev2 = float, title:(Open File)
|
windowrulev2 = float, title:(Open File)
|
||||||
windowrulev2 = float, title:(Open Folder)
|
windowrulev2 = float, title:(Open Folder)
|
||||||
windowrulev2 = float, title:(Save As)
|
windowrulev2 = float, title:(Save As)
|
||||||
|
windowrulev2 = float, title:(Preferences)
|
||||||
|
|
||||||
|
windowrulev2 = float, title:(Add)
|
||||||
|
|
||||||
windowrulev2 = size 450 450, class:(Gnuplot)
|
windowrulev2 = size 450 450, class:(Gnuplot)
|
||||||
windowrulev2 = move 100 203, class:(Gnuplot)
|
windowrulev2 = move 100 203, class:(Gnuplot)
|
||||||
@@ -241,7 +259,9 @@ windowrulev2 = float, title:(Select Document)
|
|||||||
windowrulev2 = float, class:(Nextcloud)
|
windowrulev2 = float, class:(Nextcloud)
|
||||||
windowrulev2 = move 1250 28, class:(Nextcloud)
|
windowrulev2 = move 1250 28, class:(Nextcloud)
|
||||||
windowrulev2 = move 700 50, title:(Nextcloud Settings)
|
windowrulev2 = move 700 50, title:(Nextcloud Settings)
|
||||||
|
|
||||||
windowrulev2 = size 700 800, title:(Nextcloud Settings)
|
windowrulev2 = size 700 800, title:(Nextcloud Settings)
|
||||||
|
windowrulev2 = size 1200 900, title:(Add)
|
||||||
|
|
||||||
windowrulev2 = size 800 450, class:(org.pulseaudio.pavucontrol)
|
windowrulev2 = size 800 450, class:(org.pulseaudio.pavucontrol)
|
||||||
windowrulev2 = move 40 80, class:(org.pulseaudio.pavucontrol)
|
windowrulev2 = move 40 80, class:(org.pulseaudio.pavucontrol)
|
||||||
|
|||||||
23
gui/dot-config/hypr/shaders/grayscale-custom.glsl
Normal file
23
gui/dot-config/hypr/shaders/grayscale-custom.glsl
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#version 300 es
|
||||||
|
|
||||||
|
precision highp float;
|
||||||
|
|
||||||
|
in vec2 v_texcoord;
|
||||||
|
uniform sampler2D tex;
|
||||||
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
vec4 pixColor = texture(tex, v_texcoord);
|
||||||
|
float gray = 0.0;
|
||||||
|
|
||||||
|
// Get gray with luminosity and hdr
|
||||||
|
// https://en.wikipedia.org/wiki/Grayscale#Luma_coding_in_video_systems
|
||||||
|
gray = dot(pixColor.rgb, vec3(0.2627, 0.6780, 0.0593));
|
||||||
|
|
||||||
|
// Change contrast
|
||||||
|
float contrast = 0.95;
|
||||||
|
gray = (gray - 0.5) * contrast + 0.5;
|
||||||
|
gray = clamp(gray, 0.0, 1.0);
|
||||||
|
|
||||||
|
fragColor = vec4(vec3(gray), pixColor.a);
|
||||||
|
}
|
||||||
@@ -74,3 +74,6 @@ fi
|
|||||||
if [ -f "/etc/NIXOS" ]; then
|
if [ -f "/etc/NIXOS" ]; then
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# opencode
|
||||||
|
export PATH=/home/jonas/.opencode/bin:$PATH
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ export loc="$HOME/files_local/"
|
|||||||
alias oati="~/projects/scripts/oathi.sh"
|
alias oati="~/projects/scripts/oathi.sh"
|
||||||
alias imu="immich upload -r ."
|
alias imu="immich upload -r ."
|
||||||
alias chch="~/projects/scripts/check_git.sh"
|
alias chch="~/projects/scripts/check_git.sh"
|
||||||
|
alias rp="rsync --info=progress2 -a --checksum"
|
||||||
|
|
||||||
alias aut="~/projects/scripts/autostart-server.sh"
|
alias aut="~/projects/scripts/autostart-server.sh"
|
||||||
alias tt="~/projects/scripts/find_gits.sh"
|
alias tt="~/projects/scripts/find_gits.sh"
|
||||||
alias on="nvim ~/projects/planner/quick.md"
|
alias on="nvim ~/projects/planner/quick.md"
|
||||||
@@ -64,7 +66,7 @@ alias gui="Hyprland && clear"
|
|||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias tofiu='rm ~/.cache/tofi-drun'
|
alias tofiu='rm ~/.cache/tofi-drun'
|
||||||
alias ll='exa -la '
|
alias ll='exa -la '
|
||||||
alias shd="shutdown now"
|
alias shd="systemctl poweroff"
|
||||||
alias ttt='timer -f 10m'
|
alias ttt='timer -f 10m'
|
||||||
alias zshconfig="mate ~/.zshrc"
|
alias zshconfig="mate ~/.zshrc"
|
||||||
alias giter="git add . && git commit -a -m 'auto commit' && git push"
|
alias giter="git add . && git commit -a -m 'auto commit' && git push"
|
||||||
|
|||||||
@@ -33,5 +33,6 @@ Host informatik
|
|||||||
User j.hahn02
|
User j.hahn02
|
||||||
|
|
||||||
Host dock
|
Host dock
|
||||||
HostName ascyii.de
|
HostName paper.ascyii.de
|
||||||
|
Port 24
|
||||||
User admin
|
User admin
|
||||||
|
|||||||
Reference in New Issue
Block a user