first commit
This commit is contained in:
90
hypr/hyprland.conf
Normal file
90
hypr/hyprland.conf
Normal file
@@ -0,0 +1,90 @@
|
||||
|
||||
|
||||
#SOURCES
|
||||
source = ~/.config/hypr/keybindings.conf
|
||||
source = ~/.config/hypr/input.conf
|
||||
source = ~/.config/hypr/theme.conf
|
||||
|
||||
################
|
||||
### MONITORS ###
|
||||
################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=eDP-1,2560x1600@120,auto,1.6
|
||||
monitor=HDMI-A-1,1920x1080@165,auto,auto
|
||||
exec = bash ~/.config/hypr/scripts/disable_laptop_screen.sh
|
||||
|
||||
xwayland {
|
||||
force_zero_scaling = true
|
||||
}
|
||||
env = _JAVA_AWT_WM_NONREPARENTING,1
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
#############################
|
||||
|
||||
# DARK THEME
|
||||
exec-once = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
||||
exec-once = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
||||
env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps
|
||||
|
||||
# EXECS
|
||||
exec = ~/.config/hypr/scripts/restart.sh waybar
|
||||
exec = ~/.config/hypr/scripts/restart.sh hyprpaper
|
||||
exec-once = wl-paste --type text --watch cliphist store
|
||||
exec-once = wl-paste --type image --watch cliphist store
|
||||
exec-once = export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
|
||||
env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
|
||||
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||
# "Smart gaps" / "No gaps when only"
|
||||
# uncomment all if you wish to use that.
|
||||
# workspace = w[tv1], gapsout:0, gapsin:0
|
||||
# workspace = f[1], gapsout:0, gapsin:0
|
||||
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
|
||||
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
|
||||
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
|
||||
# windowrule = rounding 0, floating:0, onworkspace:f[1]
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
dwindle {
|
||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true # You probably want this
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
master {
|
||||
new_status = master
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
misc {
|
||||
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
|
||||
}
|
||||
############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
##############################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||
|
||||
# Example windowrule
|
||||
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
||||
|
||||
# Ignore maximize requests from apps. You'll probably like this.
|
||||
windowrule = suppressevent maximize, class:.*
|
||||
|
||||
# Fix some dragging issues with XWayland
|
||||
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||
|
||||
|
||||
windowrulev2 = float, class:^(jetbrains-.*)$, title:^(?!.*)$
|
||||
windowrulev2 = float, class:^(jetbrains-.*)$, title:^(win.*)$
|
||||
windowrulev2 = float, class:^(jetbrains-.*)$, title:^(\s*)$
|
||||
|
||||
# Prevent focus stealing from pop-ups, let the main window keep focus
|
||||
windowrulev2 = noinitialfocus, class:^(jetbrains-.*)$, title:^(?!.*)$
|
||||
windowrulev2 = noinitialfocus, class:^(jetbrains-.*)$, title:^(win.*)$
|
||||
windowrulev2 = noinitialfocus, class:^(jetbrains-.*)$, title:^(\s*)$
|
||||
81
hypr/hyprland.conf.save
Normal file
81
hypr/hyprland.conf.save
Normal file
@@ -0,0 +1,81 @@
|
||||
exec-once = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
||||
exec-once = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
||||
env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps
|
||||
|
||||
#SOURCES
|
||||
source = ~/.config/hypr/keybindings.conf
|
||||
source = ~/.config/hypr/input.conf
|
||||
source = ~/.config/hypr/theme.conf
|
||||
|
||||
################
|
||||
### MONITORS ###
|
||||
################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=eDP-1,2560x1600@120,auto,1.6
|
||||
monitor=HDMI-A-1,1920x1080@165,auto,auto
|
||||
exec = bash ~/.config/hypr/scripts/disable_laptop_screen.sh
|
||||
|
||||
xwayland {
|
||||
force_zero_scaling = true
|
||||
}
|
||||
env = _JAVA_AWT_WM_NONREPARENTING,1
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
#############################
|
||||
|
||||
# DARK THEME
|
||||
exec-once = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
||||
exec-once = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
||||
env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps
|
||||
|
||||
# EXECS
|
||||
exec = ~/.config/hypr/scripts/restart.sh waybar
|
||||
exec = ~/.config/hypr/scripts/restart.sh hyprpaper
|
||||
exec-once = wl-paste --type text --watch cliphist store
|
||||
exec-once = wl-paste --type image --watch cliphist store
|
||||
|
||||
env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
|
||||
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||
# "Smart gaps" / "No gaps when only"
|
||||
# uncomment all if you wish to use that.
|
||||
# workspace = w[tv1], gapsout:0, gapsin:0
|
||||
# workspace = f[1], gapsout:0, gapsin:0
|
||||
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
|
||||
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
|
||||
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
|
||||
# windowrule = rounding 0, floating:0, onworkspace:f[1]
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
dwindle {
|
||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true # You probably want this
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
master {
|
||||
new_status = master
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
misc {
|
||||
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
|
||||
}
|
||||
############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
##############################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||
|
||||
# Example windowrule
|
||||
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
||||
|
||||
# Ignore maximize requests from apps. You'll probably like this.
|
||||
windowrule = suppressevent maximize, class:.*
|
||||
|
||||
# Fix some dragging issues with XWayland
|
||||
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||
54
hypr/hyprlock.conf
Normal file
54
hypr/hyprlock.conf
Normal file
@@ -0,0 +1,54 @@
|
||||
general {
|
||||
hide_cursor = false
|
||||
}
|
||||
|
||||
background {
|
||||
blur_passes = 3
|
||||
blur_size = 5
|
||||
path = screenshot
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
input-field {
|
||||
x = 0
|
||||
y = -20
|
||||
width = 200
|
||||
height = 50
|
||||
monitor =
|
||||
dots_size = 0.2
|
||||
dots_spacing = 0.3
|
||||
dots_center = true
|
||||
outer_color = rgba(255,255,255,0.2)
|
||||
inner_color = rgba(0,0,0,0.6)
|
||||
font_color = rgba(255,255,255,1.0)
|
||||
fade_on_empty = false
|
||||
placeholder_text =
|
||||
placeholder_font_size = 16
|
||||
}
|
||||
|
||||
label {
|
||||
monitor =
|
||||
text = $TIME
|
||||
font_size = 40
|
||||
font_family = $font
|
||||
|
||||
position = 0, 100
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
|
||||
label {
|
||||
monitor =
|
||||
text = $LAYOUT
|
||||
font_size = 24
|
||||
font_family = $font
|
||||
onclick = hyprctl switchxkblayout all next
|
||||
|
||||
position = -10, 20
|
||||
halign = right
|
||||
valign = bottom
|
||||
}
|
||||
3
hypr/hyprpaper.conf
Normal file
3
hypr/hyprpaper.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
preload = /home/hadvart/Pictures/wallpaper/main.png
|
||||
wallpaper = HDMI-A-1,/home/hadvart/Pictures/wallpaper/main.png
|
||||
wallpaper = eDP-1,/home/hadvart/Pictures/wallpaper/main.png
|
||||
28
hypr/input.conf
Normal file
28
hypr/input.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
input {
|
||||
kb_layout = us,ru
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options = grp:alt_shift_toggle
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
sensitivity = 0
|
||||
|
||||
touchpad {
|
||||
natural_scroll = true
|
||||
}
|
||||
}
|
||||
|
||||
cursor {
|
||||
no_hardware_cursors = false
|
||||
use_cpu_buffer = true
|
||||
}
|
||||
|
||||
gesture = 3, horizontal, workspace
|
||||
gesture = 3, pinchout, float
|
||||
|
||||
device {
|
||||
name = epic-mouse-v1
|
||||
sensitivity = -0.5
|
||||
}
|
||||
118
hypr/keybindings.conf
Normal file
118
hypr/keybindings.conf
Normal file
@@ -0,0 +1,118 @@
|
||||
$terminal = kitty
|
||||
$fileManager = yazi
|
||||
$menu = wofi --show drun
|
||||
$browser = zen-browser
|
||||
$editor = zeditor
|
||||
$player = spotify
|
||||
|
||||
#--------------------------------AUTO
|
||||
|
||||
# exec-once = waybar & hyprpaper & firefox
|
||||
|
||||
|
||||
#-------------------------- BINDS --------------------------------
|
||||
$mainMod = SUPER
|
||||
|
||||
bindr = $mainMod, Super_L, exec, ~/.config/wofi/wofi_toggle.sh
|
||||
|
||||
bind = $mainMod, o, exec, obsidian
|
||||
bind = $mainMod, Q, killactive,
|
||||
bind = $mainMod, T, exec, kitty
|
||||
bind = $mainMod, B, exec, $browser
|
||||
bind = $mainMod, Z, exec, zeditor
|
||||
bind = $mainMod, DELETE, exit,
|
||||
bind = $mainMod, W, exec, hyprctl dispatch togglefloating; hyprctl dispatch resizeactive exact 50% 50%; hyprctl dispatch centerwindow
|
||||
bind = $mainMod, E, exec, kitty sh -c "$fileManager"
|
||||
bind = $mainMod, R, exec, $menu
|
||||
bind = $mainMod, P, pseudo,
|
||||
bind = $mainMod, L, exec, hyprlock
|
||||
bind = CTRL_SHIFT, escape, exec, missioncenter
|
||||
bind = $mainMod, F11, fullscreen
|
||||
bind = $mainMod CTRL SHIFT, R, exec, hyprctl reload
|
||||
bind = $mainMod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy
|
||||
bind = $mainMod CTRL, E, exec, systemctl suspend
|
||||
bind = $mainMod, H, movetoworkspacesilent, special
|
||||
bind = $mainMod SHIFT, V, exec, bash $HOME/.config/hypr/scripts/floating.sh pavucontrol
|
||||
# screen utils
|
||||
bind = $mainMod ALT, C, exec, hyprpicker --autocopy --format=hex
|
||||
bind = $mainMod SHIFT, S, exec, hyprshot -m region --freeze --clipboard-only --silent
|
||||
bind = $mainMod ALT, S, exec, hyprshot -m window --freeze --clipboard-only --silent
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
bind = $mainMod, right, movefocus, r
|
||||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, d
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
bind = $mainMod SHIFT, right, resizeactive, 10 0
|
||||
bind = $mainMod SHIFT, left, resizeactive, -10 0
|
||||
bind = $mainMod SHIFT, up, resizeactive, 0 -10
|
||||
bind = $mainMod SHIFT, down, resizeactive, 0 10
|
||||
|
||||
bind = $mainMod CTRL_SHIFT, right, resizeactive, 50 0
|
||||
bind = $mainMod CTRL_SHIFT, left, resizeactive, -50 0
|
||||
bind = $mainMod CTRL_SHIFT, up, resizeactive, 0 -50
|
||||
bind = $mainMod CTRL_SHIFT, down, resizeactive, 0 50
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# Laptop multimedia keys for volume and LCD brightness
|
||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
bind = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
||||
bind = ,XF86MonBrightnessUp, exec, brightnessctl s +10%
|
||||
|
||||
# Requires playerctl
|
||||
bindl = , XF86AudioNext, exec, playerctl next
|
||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
|
||||
bind = $mainMod, F9, exec, playerctl play-pause
|
||||
bind = $mainMod, F10, exec, playerctl previous
|
||||
bind = $mainMod, F12, exec, playerctl next
|
||||
bind = ,F9, exec, playerctl --player=$player play-pause
|
||||
bind = ,F10, exec, playerctl --player=$player previous
|
||||
bind = ,F12, exec, playerctl --player=$player next
|
||||
bind = SHIFT, F9, exec, playerctl --player=zen-bin play-pause
|
||||
bind = SHIFT, F12, exec, playerctl --player=zen-bin next
|
||||
bind = SHIFT, F10, exec, playerctl --player=zen-bin previous
|
||||
|
||||
$LAPTOP_KB_ENABLED = true
|
||||
device {
|
||||
name = chuandong--l7-mix-keyboard
|
||||
enabled = $LAPTOP_KB_ENABLED
|
||||
}
|
||||
108
hypr/keybindings.conf.save
Normal file
108
hypr/keybindings.conf.save
Normal file
@@ -0,0 +1,108 @@
|
||||
$terminal = kitty
|
||||
$fileManager = yazi
|
||||
$menu = wofi --show drun
|
||||
$browser = zen-browser
|
||||
$editor = zeditor
|
||||
$player = spotify
|
||||
|
||||
#--------------------------------AUTO
|
||||
|
||||
# exec-once = waybar & hyprpaper & firefox
|
||||
|
||||
|
||||
#-------------------------- BINDS --------------------------------
|
||||
$mainMod = SUPER
|
||||
|
||||
bindr = $mainMod, Super_L, exec, ~/.config/wofi/wofi_toggle.sh
|
||||
|
||||
bind = $mainMod, Q, killactive,
|
||||
bind = $mainMod, T, exec, kitty
|
||||
bind = $mainMod, B, exec, $browser
|
||||
bind = $mainMod, Z, exec, /usr/bin/zed.sh
|
||||
bind = $mainMod, DELETE, exit,
|
||||
bind = $mainMod, W, exec, hyprctl dispatch togglefloating; hyprctl dispatch resizeactive exact 50% 50%; hyprctl dispatch centerwindow
|
||||
bind = $mainMod, E, exec, kitty sh -c "$fileManager"
|
||||
bind = $mainMod, R, exec, $menu
|
||||
bind = $mainMod, P, pseudo,
|
||||
bind = $mainMod, L, exec, hyprlock
|
||||
bind = CTRL_SHIFT, escape, exec, missioncenter
|
||||
bind = $mainMod, F11, fullscreen
|
||||
|
||||
|
||||
# screen utils
|
||||
bind = $mainMod ALT, C, exec, hyprpicker --autocopy --format=hex
|
||||
bind = $mainMod SHIFT, S, exec, hyprshot -m region --freeze --clipboard-only --silent
|
||||
bind = $mainMod ALT, S, exec, hyprshot -m window --freeze --clipboard-only --silent
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
bind = $mainMod, right, movefocus, r
|
||||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, d
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
bind = $mainMod SHIFT, right, resizeactive, 10 0
|
||||
bind = $mainMod SHIFT, left, resizeactive, -10 0
|
||||
bind = $mainMod SHIFT, up, resizeactive, 0 -10
|
||||
bind = $mainMod SHIFT, down, resizeactive, 0 10
|
||||
|
||||
bind = $mainMod CTRL_SHIFT, right, resizeactive, 50 0
|
||||
bind = $mainMod CTRL_SHIFT, left, resizeactive, -50 0
|
||||
bind = $mainMod CTRL_SHIFT, up, resizeactive, 0 -50
|
||||
bind = $mainMod CTRL_SHIFT, down, resizeactive, 0 50
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# Laptop multimedia keys for volume and LCD brightness
|
||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
|
||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
|
||||
|
||||
# Requires playerctl
|
||||
bindl = , XF86AudioNext, exec, playerctl next
|
||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
|
||||
bindr = , F9, exec, playerctl play-pause
|
||||
bindr = , F10, exec, playerctl previous
|
||||
bindr = , F12, exec, playerctl next
|
||||
bind = , F10, exec, playerctl --player=$player previous
|
||||
bind = , F12, exec, playerctl --player=$player next
|
||||
bind = SHIFT, F9, exec, playerctl --player=zen-bin play-pause
|
||||
bind = SHIFT, F12, exec, playerctl --player=zen-bin next
|
||||
bind = SHIFT, F10, exec, playerctl --player=zen-bin previous
|
||||
|
||||
25
hypr/scripts/disable_keyboard.sh
Normal file
25
hypr/scripts/disable_keyboard.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export STATUS_FILE="$XDG_RUNTIME_DIR/keyboard.status"
|
||||
|
||||
enable_keyboard() {
|
||||
printf "true" >"$STATUS_FILE"
|
||||
notify-send -u normal "Enabling Keyboard"
|
||||
hyprctl keyword '$LAPTOP_KB_ENABLED' "true" -r
|
||||
}
|
||||
|
||||
disable_keyboard() {
|
||||
printf "false" >"$STATUS_FILE"
|
||||
notify-send -u normal "Disabling Keyboard"
|
||||
hyprctl keyword '$LAPTOP_KB_ENABLED' "false" -r
|
||||
}
|
||||
|
||||
if ! [ -f "$STATUS_FILE" ]; then
|
||||
enable_keyboard
|
||||
else
|
||||
if [ $(cat "$STATUS_FILE") = "true" ]; then
|
||||
disable_keyboard
|
||||
elif [ $(cat "$STATUS_FILE") = "false" ]; then
|
||||
enable_keyboard
|
||||
fi
|
||||
fi
|
||||
8
hypr/scripts/disable_laptop_screen.sh
Normal file
8
hypr/scripts/disable_laptop_screen.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if HDMI-A-1 is present in hyprctl monitors output
|
||||
if hyprctl monitors | grep -q "HDMI-A-1"; then
|
||||
hyprctl keyword monitor eDP-1,disable
|
||||
else
|
||||
echo "HDMI-A-1 not detected. No action taken."
|
||||
fi
|
||||
7
hypr/scripts/floating.sh
Executable file
7
hypr/scripts/floating.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
hyprctl dispatch exec "[float; center] $1"
|
||||
16
hypr/scripts/restart.sh
Executable file
16
hypr/scripts/restart.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "use: $0 <program>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PROGRAM_NAME=$1
|
||||
|
||||
if pgrep -x "$PROGRAM_NAME" > /dev/null
|
||||
then
|
||||
pkill -x "$PROGRAM_NAME"
|
||||
sleep 1
|
||||
fi
|
||||
|
||||
$PROGRAM_NAME > /dev/null 2>&1 &
|
||||
85
hypr/scripts/spotify-menu.sh
Executable file
85
hypr/scripts/spotify-menu.sh
Executable file
@@ -0,0 +1,85 @@
|
||||
#!/bin/bash
|
||||
|
||||
# --- ИКОНКИ (требуется Nerd Font) ---
|
||||
# Вы можете заменить их на любые другие символы или эмодзи
|
||||
ICON_PLAY="" # Play
|
||||
ICON_PAUSE="" # Pause
|
||||
ICON_NEXT="" # Next
|
||||
ICON_PREV="" # Previous
|
||||
ICON_SHUFFLE="" # Shuffle
|
||||
ICON_REPEAT="" # Repeat
|
||||
ICON_ARTIST="" # Artist
|
||||
ICON_TITLE="" # Title (custom icon, could be for music)
|
||||
|
||||
# Проверяем, запущен ли Spotify
|
||||
if ! playerctl -p spotify status &> /dev/null; then
|
||||
wofi --show dmenu -p "Spotify" <<< " Spotify не запущен"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# --- Получение текущего состояния плеера ---
|
||||
STATUS=$(playerctl -p spotify status)
|
||||
SHUFFLE_STATUS=$(playerctl -p spotify shuffle)
|
||||
LOOP_STATUS=$(playerctl -p spotify loop)
|
||||
ARTIST=$(playerctl -p spotify metadata artist)
|
||||
TITLE=$(playerctl -p spotify metadata title)
|
||||
|
||||
# --- Формирование пунктов меню ---
|
||||
|
||||
# Строка с информацией о треке
|
||||
INFO="$ICON_ARTIST $ARTIST\n$ICON_TITLE $TITLE"
|
||||
|
||||
# Кнопка Play/Pause
|
||||
if [ "$STATUS" = "Playing" ]; then
|
||||
PLAY_PAUSE="$ICON_PAUSE Пауза"
|
||||
else
|
||||
PLAY_PAUSE="$ICON_PLAY Воспроизвести"
|
||||
fi
|
||||
|
||||
# Кнопка Shuffle
|
||||
if [ "$SHUFFLE_STATUS" = "On" ]; then
|
||||
SHUFFLE="[Вкл] $ICON_SHUFFLE Перемешать"
|
||||
else
|
||||
SHUFFLE="[Выкл] $ICON_SHUFFLE Перемешать"
|
||||
fi
|
||||
|
||||
# Кнопка Repeat
|
||||
if [ "$LOOP_STATUS" = "Track" ]; then
|
||||
REPEAT="[Трек] $ICON_REPEAT Повтор"
|
||||
elif [ "$LOOP_STATUS" = "Playlist" ]; then
|
||||
REPEAT="[Плейлист] $ICON_REPEAT Повтор"
|
||||
else
|
||||
REPEAT="[Выкл] $ICON_REPEAT Повтор"
|
||||
fi
|
||||
|
||||
# Остальные кнопки
|
||||
PREV="$ICON_PREV Пред. трек"
|
||||
NEXT="$ICON_NEXT След. трек"
|
||||
|
||||
# --- Отображение меню Wofi ---
|
||||
|
||||
# Собираем все опции в одну переменную, разделяя их новой строкой
|
||||
options="$PLAY_PAUSE\n$PREV\n$NEXT\n$SHUFFLE\n$REPEAT"
|
||||
|
||||
# Вызываем Wofi, передавая ему опции и информацию о треке в качестве заголовка
|
||||
# Используем кастомные файлы конфигурации и стилей
|
||||
choice=$(echo -e "$options" | wofi --show dmenu -p "$INFO" --conf ~/.config/wofi/spotify/config --style ~/.config/wofi/spotify/style.css)
|
||||
|
||||
# --- Обработка выбора пользователя ---
|
||||
case "$choice" in
|
||||
"$PLAY_PAUSE")
|
||||
playerctl -p spotify play-pause
|
||||
;;
|
||||
"$PREV")
|
||||
playerctl -p spotify previous
|
||||
;;
|
||||
"$NEXT")
|
||||
playerctl -p spotify next
|
||||
;;
|
||||
"$SHUFFLE")
|
||||
playerctl -p spotify shuffle Toggle
|
||||
;;
|
||||
"$REPEAT")
|
||||
playerctl -p spotify loop Playlist
|
||||
;;
|
||||
esac
|
||||
67
hypr/theme.conf
Normal file
67
hypr/theme.conf
Normal file
@@ -0,0 +1,67 @@
|
||||
general {
|
||||
gaps_in = 5
|
||||
gaps_out = 5
|
||||
|
||||
border_size = 2
|
||||
|
||||
col.active_border = rgba(f5f5f5aa)
|
||||
col.inactive_border = rgba(595959aa)
|
||||
|
||||
resize_on_border = false
|
||||
|
||||
allow_tearing = false
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 10
|
||||
rounding_power = 2
|
||||
|
||||
active_opacity = 1.0
|
||||
inactive_opacity = 0.9
|
||||
|
||||
shadow {
|
||||
enabled = true
|
||||
range = 4
|
||||
render_power = 3
|
||||
color = rgba(1a1a1aee)
|
||||
}
|
||||
|
||||
blur {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 1
|
||||
|
||||
vibrancy = 0.1696
|
||||
}
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes, please :)
|
||||
|
||||
bezier = easeOutQuint,0.23,1,0.32,1
|
||||
bezier = easeInOutCubic,0.65,0.05,0.36,1
|
||||
bezier = linear,0,0,1,1
|
||||
bezier = almostLinear,0.5,0.5,0.75,1.0
|
||||
bezier = quick,0.15,0,0.1,1
|
||||
|
||||
animation = global, 1, 10, default
|
||||
animation = border, 1, 5.39, easeOutQuint
|
||||
animation = windows, 1, 4.79, easeOutQuint
|
||||
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
|
||||
animation = windowsOut, 1, 1.49, linear, popin 87%
|
||||
animation = fadeIn, 1, 1.73, almostLinear
|
||||
animation = fadeOut, 1, 1.46, almostLinear
|
||||
animation = fade, 1, 3.03, quick
|
||||
animation = layers, 1, 3.81, easeOutQuint
|
||||
animation = layersIn, 1, 4, easeOutQuint, fade
|
||||
animation = layersOut, 1, 1.5, linear, fade
|
||||
animation = fadeLayersIn, 1, 1.79, almostLinear
|
||||
animation = fadeLayersOut, 1, 1.39, almostLinear
|
||||
animation = workspaces, 1, 1.94, almostLinear, fade
|
||||
animation = workspacesIn, 1, 1.21, almostLinear, fade
|
||||
animation = workspacesOut, 1, 1.94, almostLinear, fade
|
||||
}
|
||||
|
||||
#windowrulev2 = opacity 0.9 0.9,class:^(jetbrains-idea-ce)$
|
||||
Reference in New Issue
Block a user