mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-11-25 01:49:37 +01:00
Update linux config
This commit is contained in:
parent
4e8fd092de
commit
735f278b4f
@ -17,3 +17,6 @@ XDG_RUNTIME_DIR=/run/user/1000
|
||||
# / step values
|
||||
|
||||
* * * * * /home/sahin/scripts/check-battery.sh 10
|
||||
|
||||
# at each hour, remove files older than 30 days in trash directory
|
||||
0 * * * * find /home/sahin/trash -maxdepth 1 -type f -mtime +30 | xargs -i readlink -f {} | xargs -i rm {}
|
||||
|
@ -7,14 +7,18 @@
|
||||
theme=$(darkman get)
|
||||
PATH="$HOME/.local/bin/:$PATH"
|
||||
|
||||
if [ $theme == "dark" ]; then
|
||||
if [ "$theme" == "dark" ]; then
|
||||
sed -i 's/kanagawa_light.conf/kanagawa.conf/g' "$HOME/.config/kitty/kitty.conf"
|
||||
sed -i 's/tokyonight_day/tokyonight_storm/g' "$HOME/.config/kitty/kitty.conf"
|
||||
sed -i 's/Light/Origin/g' "$HOME/.config/bat/config"
|
||||
sed -i 's/flat-remix-light/tokyo-storm/g' "$HOME/.config/btop/btop.conf"
|
||||
sed -i "\$s/.*/include dark-256.theme/" "$HOME/.config/task/taskrc"
|
||||
else
|
||||
sed -i 's/kanagawa.conf/kanagawa_light.conf/g' "$HOME/.config/kitty/kitty.conf"
|
||||
sed -i 's/tokyonight_storm/tokyonight_day/g' "$HOME/.config/kitty/kitty.conf"
|
||||
sed -i 's/Origin/Light/g' "$HOME/.config/bat/config"
|
||||
sed -i 's/tokyo-storm/flat-remix-light/g' "$HOME/.config/btop/btop.conf"
|
||||
sed -i "\$s/.*/include light-256.theme/" "$HOME/.config/task/taskrc"
|
||||
fi
|
||||
|
||||
kill -SIGUSR1 $(pgrep kitty)
|
||||
|
@ -18,7 +18,7 @@ monitor=,preferred,auto,auto
|
||||
# centered
|
||||
# monitor=eDP-1,preferred,500x1107,2.0
|
||||
monitor=eDP-1,preferred,0x1107,2.0
|
||||
monitor=HDMI-A-1,preferred,0x0,1.3
|
||||
# monitor=HDMI-A-1,preferred,0x0,1.333333
|
||||
|
||||
|
||||
# monitor=eDP-1, disable
|
||||
@ -34,14 +34,14 @@ exec-once = ags
|
||||
exec-once = /usr/libexec/kf5/polkit-kde-authentication-agent-1
|
||||
|
||||
exec-once = swaybg -i "$HOME/Pictures/Wallpapers/minimal.jpg"
|
||||
# Dim screen after 60 seconds of inactivity
|
||||
exec-once = swayidle -w timeout 60 'dim-screen &' resume 'undim-screen'
|
||||
# Lock screen after idle for 120s
|
||||
exec-once = swayidle -w timeout 120 'lock-screen'
|
||||
# Dim screen 5 seconds after screen is locked. no -w option here.
|
||||
exec-once = swayidle timeout 5 'if pgrep -x swaylock; then dim-screen; fi' resume 'undim-screen'
|
||||
# Turn monitors off 20 seconds after screen is locked
|
||||
exec-once = swayidle -w timeout 20 'if pgrep -x swaylock; then hyprctl dispatch dpms off; fi' resume 'hyprctl dispatch dpms on'
|
||||
# Dim screen after 120 seconds of inactivity
|
||||
exec-once = swayidle -w timeout 120 'dim-screen &' resume 'undim-screen'
|
||||
# Lock screen after idle for 240s
|
||||
# exec-once = swayidle -w timeout 240 'lock-screen'
|
||||
# Dim screen 10 seconds after screen is locked. no -w option here.
|
||||
exec-once = swayidle timeout 10 'if pgrep -x swaylock; then dim-screen; fi' resume 'undim-screen'
|
||||
# Turn monitors off 30 seconds after screen is locked
|
||||
# exec-once = swayidle -w timeout 30 'if pgrep -x swaylock; then hyprctl dispatch dpms off; fi' resume 'hyprctl dispatch dpms on'
|
||||
|
||||
# exec-once = /usr/libexec/polkit-gnome-authentication-agent-1
|
||||
|
||||
@ -88,6 +88,11 @@ device:apple-mtp-keyboard {
|
||||
kb_rules =
|
||||
}
|
||||
|
||||
device:compx-2.4g-receiver-mouse {
|
||||
sensitivity = -1 # -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
}
|
||||
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
@ -122,7 +127,7 @@ decoration {
|
||||
col.shadow = rgba(1a1a1aee)
|
||||
|
||||
dim_inactive = true
|
||||
dim_strength = 0.1 # how much inactive windows should be dimmed, 0.0 - 1.0
|
||||
dim_strength = 0.05 # how much inactive windows should be dimmed, 0.0 - 1.0
|
||||
dim_around = 0.5 # how much the dimaround window rule should dim by. 0.0 - 1.0
|
||||
|
||||
}
|
||||
@ -219,8 +224,8 @@ $mod = SUPER
|
||||
|
||||
bind = $mod, tab, workspace, previous
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mod, return, exec, open-kitty-or-focus
|
||||
# bind = $mod, return, exec, kitty --single-instance
|
||||
# bind = $mod, return, exec, open-kitty-or-focus
|
||||
bind = $mod, return, exec, kitty --single-instance
|
||||
bind = $mod, q, killactive,
|
||||
bind = $mod, c, exec, smart-exec
|
||||
bind = $mod control, q, exit,
|
||||
@ -296,7 +301,7 @@ bind = $mod, 6, workspace, 6
|
||||
bind = $mod, 7, workspace, 7
|
||||
bind = $mod, 8, workspace, 8
|
||||
bind = $mod, 9, workspace, 9
|
||||
bind = $mod, 0, workspace, 10
|
||||
# bind = $mod, 0, workspace, 10
|
||||
|
||||
bind = $mod, comma, swapnext, prev
|
||||
bind = $mod, period, swapnext
|
||||
@ -316,12 +321,12 @@ bind = $mod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mod SHIFT, 0, movetoworkspace, 10
|
||||
# bind = $mod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
|
||||
# Scroll through existing workspaces with mod + scroll
|
||||
bind = $mod, mouse_down, workspace, e+1
|
||||
bind = $mod, mouse_up, workspace, e-1
|
||||
bind = $mod, 0, togglespecialworkspace, magic2
|
||||
bind = $mod SHIFT, 0, movetoworkspace, special:magic2
|
||||
|
||||
|
||||
# Move/resize windows with mod + LMB/RMB and dragging
|
||||
bindm = $mod, mouse:272, movewindow
|
||||
@ -329,7 +334,7 @@ bindm = $mod, mouse:273, resizewindow
|
||||
|
||||
# Scroll through existing workspaces with mod + scroll
|
||||
# doesn't seem to work with touchpad.
|
||||
# check and see if this works with mouse
|
||||
# check and see if this works with mouse: yep, it works
|
||||
bind = $mod, mouse_down, workspace, e+1
|
||||
bind = $mod, mouse_up, workspace, e-1
|
||||
|
||||
@ -345,6 +350,9 @@ bindle=,XF86AudioRaiseVolume, exec, volume up
|
||||
bindle=,XF86AudioLowerVolume, exec, volume down
|
||||
bindle=,XF86AudioMute, exec, volume toggle-mute
|
||||
|
||||
bindle=, F4, exec, grim -g "$(slurp)" - | swappy -f -
|
||||
bindle=$mod, x, exec, grim - | swappy -f -
|
||||
|
||||
# bindle=, XF86KbdBrightnessUp, exec, keyboard_backlight inc
|
||||
# bindle=, XF86KbdBrightnessDown, exec, keyboard_backlight dec
|
||||
|
||||
@ -393,7 +401,7 @@ windowrulev2 = noborder,class:(wofi)
|
||||
#
|
||||
# # bind=SUPER,mouse_down,workspace,e-1
|
||||
#
|
||||
# # bindle=, Print, exec, flameshot gui
|
||||
# bindle=, Print, exec, grim -g "$(slurp)" - | swappy -f -
|
||||
# # bindr=SUPER, SUPER_L, exec, pkill wofi || wofi --show drun
|
||||
#
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user