[fix] Add hyprland stuff

This commit is contained in:
Uttarayan
2023-06-08 01:15:55 +05:30
parent 8ca6bc912b
commit 0e0f887597
4 changed files with 66 additions and 55 deletions

View File

@@ -4,6 +4,7 @@ $mainModShift = SUPER_SHIFT
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Return, exec, foot bind = $mainMod, Return, exec, foot
bind = $mainModShift, Return, exec, wezterm
bind = $mainModShift, Q, killactive, bind = $mainModShift, Q, killactive,
bind = $mainMod, M, exit, bind = $mainMod, M, exit,
bind = $mainModShift, f, togglefloating, bind = $mainModShift, f, togglefloating,
@@ -12,7 +13,7 @@ bind = $mainMod, Space, exec, anyrun
bind = $mainMod, p, pseudo, # dwindle bind = $mainMod, p, pseudo, # dwindle
bind = $mainModShift, v, togglesplit, # dwindle bind = $mainModShift, v, togglesplit, # dwindle
bind = $mainMod, a, exec, swaync-client -t bind = $mainMod, a, exec, swaync-client -t
bind = $mainMod, Tab, cyclenext
# Audio # Audio
bind = ,xf86audioraisevolume, exec, swayosd --output-volume raise bind = ,xf86audioraisevolume, exec, swayosd --output-volume raise
bind = ,xf86audiolowervolume, exec, swayosd --output-volume lower bind = ,xf86audiolowervolume, exec, swayosd --output-volume lower
@@ -21,6 +22,9 @@ bind = ,xf86audioprev, exec, /home/fs0c131y/.cargo/bin/mctl prev
bind = ,xf86audionext, exec, /home/fs0c131y/.cargo/bin/mctl next bind = ,xf86audionext, exec, /home/fs0c131y/.cargo/bin/mctl next
bind = ,xf86audioplay, exec, /home/fs0c131y/.cargo/bin/mctl toggle bind = ,xf86audioplay, exec, /home/fs0c131y/.cargo/bin/mctl toggle
# Screenshot
bind = $mainMod,Print, exec, grim
bind = $mainModShift,Print, exec, grim -g "$(slurp)"
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
@@ -81,3 +85,6 @@ bind = $mainMod, mouse_up, workspace, e-1
# 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
# bind = $mainMod, Tab, cyclenext, bind = ALT, Tab, bringactivetotop,

View File

@@ -28,6 +28,9 @@ exec-once = swayosd
exec-once = hyprpaper exec-once = hyprpaper
exec-once = swaync exec-once = swaync
exec-once = /usr/lib/polkit-kde-authentication-agent-1 exec-once = /usr/lib/polkit-kde-authentication-agent-1
exec-once = /usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland --start-minimized
exec-once = /usr/lib/kdeconnectd
# exec-once = linux-wallpaperengine --screen-root DP-2 2207659298 # exec-once = linux-wallpaperengine --screen-root DP-2 2207659298
# exec-once = linux-wallpaperengine --screen-root DP-3 2207659298 # exec-once = linux-wallpaperengine --screen-root DP-3 2207659298
# Source a file (multi-file configs) # Source a file (multi-file configs)

View File

@@ -1,53 +1,54 @@
local wezterm = require 'wezterm'; -- local wezterm = require 'wezterm';
return { return {}
font = wezterm.font_with_fallback { "Hasklug Nerd Font", "Hasklug Nerd Font Mono" }, -- return {
font_size = 16, -- font = wezterm.font_with_fallback { "Hasklug Nerd Font", "Hasklug Nerd Font Mono" },
colors = { -- font_size = 16,
-- The default text color -- -- colors = {
foreground = "#f8f8f2", -- -- -- The default text color
-- The default background color -- -- foreground = "#f8f8f2",
-- background = "#282a36", -- -- -- The default background color
-- Overrides the cell background color when the current cell is occupied by the -- -- -- background = "#282a36",
-- cursor and the cursor style is set to Block -- -- -- Overrides the cell background color when the current cell is occupied by the
cursor_bg = "#f8f8f2", -- -- -- cursor and the cursor style is set to Block
-- Overrides the text color when the current cell is occupied by the cursor -- -- cursor_bg = "#f8f8f2",
cursor_fg = "#000", -- -- -- Overrides the text color when the current cell is occupied by the cursor
-- Specifies the border color of the cursor when the cursor style is set to Block, -- -- cursor_fg = "#000",
-- or the color of the vertical or horizontal bar when the cursor style is set to -- -- -- Specifies the border color of the cursor when the cursor style is set to Block,
-- Bar or Underline. -- -- -- or the color of the vertical or horizontal bar when the cursor style is set to
cursor_border = "#52ad70", -- -- -- Bar or Underline.
-- the foreground color of selected text -- -- cursor_border = "#52ad70",
selection_fg = "#ffffff", -- -- -- the foreground color of selected text
-- the background color of selected text -- -- selection_fg = "#ffffff",
selection_bg = "#ffffff", -- -- -- the background color of selected text
-- The color of the scrollbar "thumb"; the portion that represents the current viewport -- -- selection_bg = "#ffffff",
scrollbar_thumb = "#222222", -- -- -- The color of the scrollbar "thumb"; the portion that represents the current viewport
-- The color of the split lines between panes -- -- scrollbar_thumb = "#222222",
split = "#444444", -- -- -- The color of the split lines between panes
ansi = { "#21222c", "#ff5555", "#50fa7b", "#f1fa8c", "#bd93f9", "#ff79c6", "#8be9fd", "#f8f8f2" }, -- -- split = "#444444",
brights = { "#6272a4", "#ff6e6e", "#69ff94", "#ffffa5", "#d6acff", "#ff92df", "#a4ffff", "#ffffff" }, -- -- ansi = { "#21222c", "#ff5555", "#50fa7b", "#f1fa8c", "#bd93f9", "#ff79c6", "#8be9fd", "#f8f8f2" },
-- Arbitrary colors of the palette in the range from 16 to 255 -- -- brights = { "#6272a4", "#ff6e6e", "#69ff94", "#ffffa5", "#d6acff", "#ff92df", "#a4ffff", "#ffffff" },
indexed = { [136] = "#af8700" }, -- -- -- Arbitrary colors of the palette in the range from 16 to 255
-- Since: nightly builds only -- -- indexed = { [136] = "#af8700" },
-- When the IME, a dead key or a leader key are being processed and are effectively -- -- -- Since: nightly builds only
-- holding input pending the result of input composition, change the cursor -- -- -- When the IME, a dead key or a leader key are being processed and are effectively
-- to this color to give a visual cue about the compose state. -- -- -- holding input pending the result of input composition, change the cursor
compose_cursor = "orange", -- -- -- to this color to give a visual cue about the compose state.
}, -- -- -- compose_cursor = "orange",
-- color_scheme = "Catppuccin Mocha", -- -- },
initial_cols = 120, -- -- -- color_scheme = "Catppuccin Mocha",
hide_tab_bar_if_only_one_tab = true, -- initial_cols = 120,
window_background_opacity = 0.8, -- hide_tab_bar_if_only_one_tab = true,
cursor_blink_rate = 8, -- window_background_opacity = 0.8,
default_cursor_style = "BlinkingBlock", -- cursor_blink_rate = 8,
default_prog = { "fish", "-l" }, -- -- default_cursor_style = "BlinkingBlock",
window_padding = { -- default_prog = { "fish", "-l" },
left = 2, -- window_padding = {
right = 0, -- left = 2,
top = 2, -- right = 0,
bottom = 0, -- top = 2,
}, -- bottom = 0,
window_decorations = "RESIZE", -- },
use_ime = false, -- window_decorations = "RESIZE",
} -- -- use_ime = false,
-- }

View File

@@ -80,7 +80,7 @@
<mode> <mode>
<width>2560</width> <width>2560</width>
<height>1440</height> <height>1440</height>
<rate>59.951</rate> <rate>169.771</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>