hyprland eww and doom stuff

This commit is contained in:
Zastian Pretorius
2022-12-16 15:52:33 +00:00
parent 70e011ee00
commit e6d063988a
4 changed files with 54 additions and 30 deletions

View File

@@ -7,7 +7,6 @@
# Please note not all available settings / options are set here.
# For a full list, see the wiki (basic and advanced configuring)
#
exec-once=hyprctl setcursor Simp1e 16
exec-once=~/.config/script/theme-fix
exec-once=eww open bar
exec-once=systemctl --user restart xdg-desktop-portal
@@ -16,11 +15,23 @@ exec-once=~/.config/script/waylock.sh
exec-once=~/.azotebg
exec-once=foot -s
exec-once=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
monitor=,preferred,auto,1
#workspace=eDP-1,2
exec-once=autoadb scrcpy -s '{}'
exec-once=hyprctl setcursor oreo_purple_cursors 16
exec-once=fcitx5 -d
monitor=HDMI-A-1,1920x1080@60,0x0,1
monitor=DP-3,1920x1080@60,1920x0,1
workspace=HDMI-A-1,10
#workspace=HDMI-A-1,1
wsbind=1,DP-3
wsbind=2,DP-3
wsbind=3,DP-3
wsbind=4,DP-3
wsbind=5,DP-3
wsbind=6,DP-3
wsbind=7,DP-3
wsbind=8,DP-3
wsbind=9,DP-3
wsbind=10,HDMI-A-1
misc:disable_hyprland_logo=true
@@ -49,10 +60,7 @@ general {
col.active_border=0xff8218c4
col.inactive_border=0x66333333
layout=dwindle
apply_sens_to_raw=1 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
damage_tracking=full # leave it on full unless you hate your GPU and want to make it suffer
}
decoration {
@@ -84,11 +92,6 @@ dwindle {
col.group_border_active=0xff8218c4
}
gestures {
workspace_swipe=no
}
@@ -101,6 +104,9 @@ windowrule=float,qalculate-gtk
#windowrule=size 1000 500, mpv
#windowrule=move 460,290, mpv
windowrule=float,imv
windowrule=float,scrcpy
windowrule=size 412 876, scrcpy
windowrule=center, scrcpy
# rofi
windowrule = float, Rofi
@@ -108,7 +114,6 @@ blurls=rofi
windowrule=float,title:^(kami)$
windowrule=size 1000 500,title:^(kami)$
windowrule=center,title^(kami)$
#windowrule=pseudo,abc
@@ -116,26 +121,31 @@ windowrule=center,title^(kami)$
windowrule=tile,WebApp-ytmusic4224
windowrule=tile,WebApp-discord5149
windowrule=workspace 10,krita
windowrule=workspace 10,inkscape
windowrule=workspace 10,Gimp-2.10
windowrule=workspace 10,Blender
# example binds
bind=ALT,Return,exec,footclient
bind=ALT,A,exec,kitty --class kitty --title kami ~/Documents/Rust/kami/target/release/kami
bind=ALT,A,exec,footclient --title kami ~/Documents/Rust/kami/target/release/kami
bind=ALT,Q,killactive,
bind=ALT,F,exec,pcmanfm
bind=ALT,B,exec,firefox
bind=ALT,E,exec,emacsclient --alternate-editor= --create-frame
bind=,107,exec,~/.config/script/wayscreenshot.sh
bind=ALT,Z,exec,~/.config/hypr/monitors.sh
bind=SHIFT,107,exec,grim -g "$(slurp)" - | wl-copy
bind=ALTSHIFT,Q,exit,
bind=ALTSHIFT,F,togglefloating,
bind=ALTSHIFT,T,fullscreen,0
bind=ALT,D,exec,rofi -no-lazy-greb -show drun -icon-theme 'Papirus' -show-icons
#wofi --show drun -o DP-3
# toggle waybar
bind=SUPER,W,exec,~/.config/script/hide_waybar.sh
bind=ALT,H,focusmonitor,eDP-1
bind=ALT,L,focusmonitor,HDMI-A-1
bind=ALT,H,focusmonitor,HDMI-A-1
bind=ALT,L,focusmonitor,DP-3
bind=ALT,K,cyclenext,prev
bind=ALT,J,cyclenext,
@@ -168,7 +178,7 @@ submap=reset # will reset the submap, meaning end the current one and return to
# audio controlls
bind=,XF86AudioRaiseVolume,exec,pamixer -i 5
bind=,XF86AudioLowerVolume,exec,pamixer -d 5
#bind=,XF86AudioRaiseVolume,exec,pamixer --toggle-mute
bind=,XF86AudioMute,exec,pamixer --toggle-mute
# media controlles
bind=,XF86AudioMedia,exec,playerctl play-pause
@@ -188,16 +198,16 @@ bind=ALT,9,workspace,9
bind=ALT,0,workspace,10
bind=ALT,51,togglespecialworkspace
bind=ALTSHIFT,1,movetoworkspace,1
bind=ALTSHIFT,2,movetoworkspace,2
bind=ALTSHIFT,3,movetoworkspace,3
bind=ALTSHIFT,4,movetoworkspace,4
bind=ALTSHIFT,5,movetoworkspace,5
bind=ALTSHIFT,6,movetoworkspace,6
bind=ALTSHIFT,7,movetoworkspace,7
bind=ALTSHIFT,8,movetoworkspace,8
bind=ALTSHIFT,9,movetoworkspace,9
bind=ALTSHIFT,0,movetoworkspace,10
bind=ALTSHIFT,1,movetoworkspacesilent,1
bind=ALTSHIFT,2,movetoworkspacesilent,2
bind=ALTSHIFT,3,movetoworkspacesilent,3
bind=ALTSHIFT,4,movetoworkspacesilent,4
bind=ALTSHIFT,5,movetoworkspacesilent,5
bind=ALTSHIFT,6,movetoworkspacesilent,6
bind=ALTSHIFT,7,movetoworkspacesilent,7
bind=ALTSHIFT,8,movetoworkspacesilent,8
bind=ALTSHIFT,9,movetoworkspacesilent,9
bind=ALTSHIFT,0,movetoworkspacesilent,10
bind=ALT,48,movetoworkspace,special
bind=SUPER,mouse_down,workspace,e+1

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env sh
#
# this script is to aulter the default settings in hyprland.conf
#
# read $HOME/.config/hypr/hyprland.conf and if the text after monitor= is "HDMI-A-1,1920x1080@60,0x0,1,mirror,DP-3" change it to ",preferred,auto,1"
if [ -f $HOME/.config/hypr/hyprland.conf ]; then
if grep -q "monitor=HDMI-A-1,1920x1080@60,0x0,1,mirror,HTMI-A-2" $HOME/.config/hypr/hyprland.conf; then
sed -i 's/monitor=HDMI-A-1,1920x1080@60,0x0,1,mirror,HDMI-A-2/monitor=,preferred,auto,1/g' $HOME/.config/hypr/hyprland.conf
else
sed -i 's/monitor=,preferred,auto,1/monitor=HDMI-A-1,1920x1080@60,0x0,1,mirror,HTMI-A-2/g' $HOME/.config/hypr/hyprland.conf
fi
fi