various hyprland/wayland things

This commit is contained in:
Daylin Morgan 2024-03-14 09:47:25 -05:00
parent bc3e26df05
commit f281790b4b
Signed by: daylin
GPG key ID: 950D13E9719334AD
5 changed files with 28 additions and 12 deletions

View file

@ -7,7 +7,7 @@ monitor=,preferred,auto,1
env = GDK_SCALE=2 env = GDK_SCALE=2
env = XCURSOR_SIZE,24 env = XCURSOR_SIZE,24
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
env = GTK_THEME, Catppuccin-Mocha-Standard-Rosewater-Dark # env = GTK_THEME, Catppuccin-Mocha-Standard-Rosewater-Dark
general { general {

View file

@ -1,9 +1,13 @@
$mainMod = SUPER $mainMod = SUPER
$term = wezterm
$termStart = wezterm start
# $term = alacritty
# $termStart = alacritty
# Program binds # Program binds
bind = $mainMod SHIFT, RETURN, exec, wezterm bind = $mainMod SHIFT, RETURN, exec, $term
bind = $mainMod, P, exec, ~/.config/rofi/bin/launcher.sh bind = $mainMod, P, exec, ~/.config/rofi/bin/launcher.sh
bind = $mainMod, N, exec, wezterm start --class "notes-editor" -e notes-commit bind = $mainMod, N, exec, $termStart --class "notes-editor" -e notes-commit
bind = $mainMod SHIFT, Q, killactive, bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod SHIFT, L, exec, lock bind = $mainMod SHIFT, L, exec, lock
@ -41,9 +45,16 @@ bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 9, movetoworkspace, 9
# Example special workspace (scratchpad) # move active window but don't switch workspace withit
# bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod CTRL, 1, movetoworkspacesilent, 1
# bind = $mainMod SHIFT, S, movetoworkspace, special:magic bind = $mainMod CTRL, 2, movetoworkspacesilent, 2
bind = $mainMod CTRL, 3, movetoworkspacesilent, 3
bind = $mainMod CTRL, 4, movetoworkspacesilent, 4
bind = $mainMod CTRL, 5, movetoworkspacesilent, 5
bind = $mainMod CTRL, 6, movetoworkspacesilent, 6
bind = $mainMod CTRL, 7, movetoworkspacesilent, 7
bind = $mainMod CTRL, 8, movetoworkspacesilent, 8
bind = $mainMod CTRL, 9, movetoworkspacesilent, 9
bind = $mainMod, S,exec, grimblast copy area bind = $mainMod, S,exec, grimblast copy area
bind = $mainMod SHIFT,S, exec, grimblast save output bind = $mainMod SHIFT,S, exec, grimblast save output
@ -54,7 +65,6 @@ bind = , XF86AudioMute, exec, pamixer --toggle-mute
bind = , XF86MonBrightnessUp, exec, brightnessctl set +5% bind = , XF86MonBrightnessUp, exec, brightnessctl set +5%
bind = , XF86MonBrightnessDown, exec, brightnessctl set 5%- bind = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
# Move/resize windows with mainMod + LMB/RMB and dragging # Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow bindm = $mainMod, mouse:273, resizewindow
@ -68,8 +78,6 @@ bind = ,W, exec, ~/.config/rofi/bin/windows.sh
bind = ,W, submap, reset bind = ,W, submap, reset
bind = ,P, exec, ~/.config/rofi/bin/powermenu.sh bind = ,P, exec, ~/.config/rofi/bin/powermenu.sh
bind = ,P, submap, reset bind = ,P, submap, reset
# bind = ,N, exec, ~/.config/rofi/bin/notes.sh
# bind = ,N, submap, reset
bind = ,escape, submap, reset bind = ,escape, submap, reset
submap = reset submap = reset

View file

@ -11,6 +11,7 @@ profile work {
profile { profile {
output eDP-1 mode 1920x1200 position 1920,0 output eDP-1 mode 1920x1200 position 1920,0
output DP-5 mode 1920x1080 position 0,0 output DP-5 mode 1920x1080 position 0,0
exec swww img -o eDP-1 ~/.config/hypr/wallpapers/current/00005-4229950720.png & swww img -o DP-5 ~/.config/hypr/wallpapers/current/00007-2215131892.png
} }
profile { profile {

View file

@ -1,2 +1,5 @@
before-sleep 'lock' before-sleep 'lock'
timeout 300 'lock
timeout 300 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
timeout 1800 'lock'
timeout 3600 'systemctl suspend'

View file

@ -1,6 +1,6 @@
local wezterm = require("wezterm") local wezterm = require("wezterm")
local catppuccin = require("colors/catppuccin").setup({}) local catppuccin = require("colors/catppuccin").setup({})
local keys = require("keys") -- local keys = require("keys")
local padding = 10 local padding = 10
local config = {} local config = {}
@ -27,7 +27,11 @@ config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true config.hide_tab_bar_if_only_one_tab = true
config.tab_bar_at_bottom = true config.tab_bar_at_bottom = true
--config.disable_default_key_bindings = true --config.disable_default_key_bindings = true
config.enable_wayland = false
config.bold_brightens_ansi_colors = true config.bold_brightens_ansi_colors = true
config.default_gui_startup_args = { "start", "--always-new-process" } config.default_gui_startup_args = { "start", "--always-new-process" }
-- config.keys = keys.keys -- config.keys = keys.keys
-- config.window_background_opacity = .9
-- config.text_background_opacity = .9
return config return config