Basic updates.
This commit is contained in:
parent
08c122f3fd
commit
a3bd316ea2
@ -1,14 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
sudo ryzenadj-service &
|
||||||
|
|
||||||
# Enable Tear Free
|
# Enable Tear Free
|
||||||
xrandr --output eDP --set TearFree on
|
xrandr --output eDP --set TearFree on
|
||||||
|
|
||||||
# Load xresources
|
# Set dpms to 0
|
||||||
xrdb --merge $HOME/.config/X11/xresources
|
xset dpms 0 0 0
|
||||||
|
|
||||||
# Disable mouse acceleration
|
# Load xresources
|
||||||
xinput --set-prop 18 'libinput Accel Speed' 0
|
xrdb $HOME/.config/X11/xresources
|
||||||
xinput --set-prop 18 'libinput Accel Profile Enabled' 0, 1
|
|
||||||
|
# Disable mouse acceleration and change sensitivity
|
||||||
|
mouse-settings
|
||||||
|
|
||||||
# Hide the mouse after 5 seconds
|
# Hide the mouse after 5 seconds
|
||||||
unclutter --timeout 5 &
|
unclutter --timeout 5 &
|
||||||
@ -26,7 +30,9 @@ xrdb -merge $HOME/.Xresources
|
|||||||
xmonad --recompile
|
xmonad --recompile
|
||||||
|
|
||||||
# Set wallpaper
|
# Set wallpaper
|
||||||
xwallpaper --stretch $HOME/pics/wallpapers/cowppuccin.png
|
xwallpaper --stretch $HOME/pics/wallpapers/wawe.jpg
|
||||||
|
|
||||||
|
[ -f "$HOME/.cache/gaming.lock" ] && rm $HOME/.cache/gaming.lock
|
||||||
|
|
||||||
# Run xmonad with dbus
|
# Run xmonad with dbus
|
||||||
exec dbus-launch --exit-with-session xmonad
|
exec dbus-launch --exit-with-session xmonad
|
||||||
|
@ -6,3 +6,5 @@ Xft.hintstyle: hintfull
|
|||||||
Xft.hinting: 1
|
Xft.hinting: 1
|
||||||
Xft.antialias: 1
|
Xft.antialias: 1
|
||||||
Xft.rgba: rgb
|
Xft.rgba: rgb
|
||||||
|
|
||||||
|
URxvt.*font: xft:Comic Code Ligatures:size=14,xft:Symbols Nerd Font:size=14
|
||||||
|
@ -13,21 +13,21 @@ window:
|
|||||||
|
|
||||||
font:
|
font:
|
||||||
normal:
|
normal:
|
||||||
family: IBMPlex Mono
|
family: JetBrainsMono Nerd Font
|
||||||
style: Regular
|
style: Regular
|
||||||
|
|
||||||
bold:
|
bold:
|
||||||
family: IBMPlex Mono
|
family: JetBrainsMono Nerd Font
|
||||||
|
|
||||||
style: Bold
|
style: Bold
|
||||||
|
|
||||||
italic:
|
italic:
|
||||||
family: IBMPlex Mono
|
family: JetBrainsMono Nerd Font
|
||||||
|
|
||||||
style: Italic
|
style: Italic
|
||||||
|
|
||||||
bold_italic:
|
bold_italic:
|
||||||
family: IBMPlex Mono
|
family: JetBrainsMono Nerd Font
|
||||||
|
|
||||||
style: Bold Italic
|
style: Bold Italic
|
||||||
|
|
||||||
@ -35,82 +35,154 @@ font:
|
|||||||
|
|
||||||
builtin_box_drawing: true
|
builtin_box_drawing: true
|
||||||
|
|
||||||
colors:
|
schemes:
|
||||||
# Default colors
|
catppuccin_frappe: &catppuccin_frappe
|
||||||
primary:
|
# Default colors
|
||||||
background: "#303446" # base
|
primary:
|
||||||
foreground: "#C6D0F5" # text
|
background: "#303446" # base
|
||||||
# Bright and dim foreground colors
|
foreground: "#C6D0F5" # text
|
||||||
dim_foreground: "#C6D0F5" # text
|
# Bright and dim foreground colors
|
||||||
bright_foreground: "#C6D0F5" # text
|
dim_foreground: "#C6D0F5" # text
|
||||||
|
bright_foreground: "#C6D0F5" # text
|
||||||
|
|
||||||
# Cursor colors
|
# Cursor colors
|
||||||
cursor:
|
cursor:
|
||||||
text: "#303446" # base
|
text: "#303446" # base
|
||||||
cursor: "#F2D5CF" # rosewater
|
cursor: "#F2D5CF" # rosewater
|
||||||
vi_mode_cursor:
|
vi_mode_cursor:
|
||||||
text: "#303446" # base
|
text: "#303446" # base
|
||||||
cursor: "#BABBF1" # lavender
|
cursor: "#BABBF1" # lavender
|
||||||
|
|
||||||
# Search colors
|
# Search colors
|
||||||
search:
|
search:
|
||||||
matches:
|
matches:
|
||||||
foreground: "#303446" # base
|
foreground: "#303446" # base
|
||||||
background: "#A5ADCE" # subtext0
|
background: "#A5ADCE" # subtext0
|
||||||
focused_match:
|
focused_match:
|
||||||
foreground: "#303446" # base
|
foreground: "#303446" # base
|
||||||
background: "#A6D189" # green
|
background: "#A6D189" # green
|
||||||
footer_bar:
|
footer_bar:
|
||||||
foreground: "#303446" # base
|
foreground: "#303446" # base
|
||||||
background: "#A5ADCE" # subtext0
|
background: "#A5ADCE" # subtext0
|
||||||
|
|
||||||
# Keyboard regex hints
|
# Keyboard regex hints
|
||||||
hints:
|
hints:
|
||||||
start:
|
start:
|
||||||
foreground: "#303446" # base
|
foreground: "#303446" # base
|
||||||
background: "#E5C890" # yellow
|
background: "#E5C890" # yellow
|
||||||
end:
|
end:
|
||||||
foreground: "#303446" # base
|
foreground: "#303446" # base
|
||||||
background: "#A5ADCE" # subtext0
|
background: "#A5ADCE" # subtext0
|
||||||
|
|
||||||
# Selection colors
|
# Selection colors
|
||||||
selection:
|
selection:
|
||||||
text: "#303446" # base
|
text: "#303446" # base
|
||||||
background: "#F2D5CF" # rosewater
|
background: "#F2D5CF" # rosewater
|
||||||
|
|
||||||
# Normal colors
|
# Normal colors
|
||||||
normal:
|
normal:
|
||||||
black: "#51576D" # surface1
|
black: "#51576D" # surface1
|
||||||
red: "#E78284" # red
|
red: "#E78284" # red
|
||||||
green: "#A6D189" # green
|
green: "#A6D189" # green
|
||||||
yellow: "#E5C890" # yellow
|
yellow: "#E5C890" # yellow
|
||||||
blue: "#8CAAEE" # blue
|
blue: "#8CAAEE" # blue
|
||||||
magenta: "#F4B8E4" # pink
|
magenta: "#F4B8E4" # pink
|
||||||
cyan: "#81C8BE" # teal
|
cyan: "#81C8BE" # teal
|
||||||
white: "#B5BFE2" # subtext1
|
white: "#B5BFE2" # subtext1
|
||||||
|
|
||||||
# Bright colors
|
# Bright colors
|
||||||
bright:
|
bright:
|
||||||
black: "#626880" # surface2
|
black: "#626880" # surface2
|
||||||
red: "#E78284" # red
|
red: "#E78284" # red
|
||||||
green: "#A6D189" # green
|
green: "#A6D189" # green
|
||||||
yellow: "#E5C890" # yellow
|
yellow: "#E5C890" # yellow
|
||||||
blue: "#8CAAEE" # blue
|
blue: "#8CAAEE" # blue
|
||||||
magenta: "#F4B8E4" # pink
|
magenta: "#F4B8E4" # pink
|
||||||
cyan: "#81C8BE" # teal
|
cyan: "#81C8BE" # teal
|
||||||
white: "#A5ADCE" # subtext0
|
white: "#A5ADCE" # subtext0
|
||||||
|
|
||||||
# Dim colors
|
# Dim colors
|
||||||
dim:
|
dim:
|
||||||
black: "#51576D" # surface1
|
black: "#51576D" # surface1
|
||||||
red: "#E78284" # red
|
red: "#E78284" # red
|
||||||
green: "#A6D189" # green
|
green: "#A6D189" # green
|
||||||
yellow: "#E5C890" # yellow
|
yellow: "#E5C890" # yellow
|
||||||
blue: "#8CAAEE" # blue
|
blue: "#8CAAEE" # blue
|
||||||
magenta: "#F4B8E4" # pink
|
magenta: "#F4B8E4" # pink
|
||||||
cyan: "#81C8BE" # teal
|
cyan: "#81C8BE" # teal
|
||||||
white: "#B5BFE2" # subtext1
|
white: "#B5BFE2" # subtext1
|
||||||
|
|
||||||
indexed_colors:
|
indexed_colors:
|
||||||
- { index: 16, color: "#EF9F76" }
|
- { index: 16, color: "#EF9F76" }
|
||||||
- { index: 17, color: "#F2D5CF" }
|
- { index: 17, color: "#F2D5CF" }
|
||||||
|
everforest_dark_hard: &everforest_dark_hard
|
||||||
|
primary:
|
||||||
|
background: '#272e33'
|
||||||
|
foreground: '#d3c6aa'
|
||||||
|
normal:
|
||||||
|
black: '#414b50'
|
||||||
|
red: '#e67e80'
|
||||||
|
green: '#a7c080'
|
||||||
|
yellow: '#dbbc7f'
|
||||||
|
blue: '#7fbbb3'
|
||||||
|
magenta: '#d699b6'
|
||||||
|
cyan: '#83c092'
|
||||||
|
white: '#d3c6aa'
|
||||||
|
bright:
|
||||||
|
black: '#475258'
|
||||||
|
red: '#e67e80'
|
||||||
|
green: '#a7c080'
|
||||||
|
yellow: '#dbbc7f'
|
||||||
|
blue: '#7fbbb3'
|
||||||
|
magenta: '#d699b6'
|
||||||
|
cyan: '#83c092'
|
||||||
|
white: '#d3c6aa'
|
||||||
|
everforest_dark_medium: &everforest_dark_medium
|
||||||
|
primary:
|
||||||
|
background: '#2d353b'
|
||||||
|
foreground: '#d3c6aa'
|
||||||
|
normal:
|
||||||
|
black: '#475258'
|
||||||
|
red: '#e67e80'
|
||||||
|
green: '#a7c080'
|
||||||
|
yellow: '#dbbc7f'
|
||||||
|
blue: '#7fbbb3'
|
||||||
|
magenta: '#d699b6'
|
||||||
|
cyan: '#83c092'
|
||||||
|
white: '#d3c6aa'
|
||||||
|
bright:
|
||||||
|
black: '#475258'
|
||||||
|
red: '#e67e80'
|
||||||
|
green: '#a7c080'
|
||||||
|
yellow: '#dbbc7f'
|
||||||
|
blue: '#7fbbb3'
|
||||||
|
magenta: '#d699b6'
|
||||||
|
cyan: '#83c092'
|
||||||
|
white: '#d3c6aa'
|
||||||
|
everforest_dark_soft: &everforest_dark_soft
|
||||||
|
primary:
|
||||||
|
background: '#333c43'
|
||||||
|
foreground: '#d3c6aa'
|
||||||
|
normal:
|
||||||
|
black: '#4d5960'
|
||||||
|
red: '#e67e80'
|
||||||
|
green: '#a7c080'
|
||||||
|
yellow: '#dbbc7f'
|
||||||
|
blue: '#7fbbb3'
|
||||||
|
magenta: '#d699b6'
|
||||||
|
cyan: '#83c092'
|
||||||
|
white: '#d3c6aa'
|
||||||
|
bright:
|
||||||
|
black: '#4d5960'
|
||||||
|
red: '#e67e80'
|
||||||
|
green: '#a7c080'
|
||||||
|
yellow: '#dbbc7f'
|
||||||
|
blue: '#7fbbb3'
|
||||||
|
magenta: '#d699b6'
|
||||||
|
cyan: '#83c092'
|
||||||
|
white: '#d3c6aa'
|
||||||
|
|
||||||
|
colors: *catppuccin_frappe
|
||||||
|
|
||||||
|
key_bindings:
|
||||||
|
- {key: F11, action: ToggleFullscreen}
|
||||||
|
@ -8,4 +8,17 @@
|
|||||||
|
|
||||||
"query:Podcast's:tags # \"Podcast's\" and unread = \"yes\"
|
"query:Podcast's:tags # \"Podcast's\" and unread = \"yes\"
|
||||||
|
|
||||||
"query:YouTube:tags # \"YouTube\" and unread = \"yes\"
|
"query:YouTube:tags =~ \"YouTube\" and unread = \"yes\"
|
||||||
|
|
||||||
|
"query:YouTube-GameSales:(tags # \"YouTube-GameSales\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-Comentary:(tags # \"YouTube-Comentary\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-Fun:(tags # \"YouTube-Fun\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-Croatian:(tags # \"YouTube-Croatian\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-Weeb:(tags # \"YouTube-Weeb\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-Tech:(tags # \"YouTube-Tech\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-Learning:(tags # \"YouTube-Learning\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-Linux:(tags # \"YouTube-Linux\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-Gaming:(tags # \"YouTube-Gaming\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-SelfHost:(tags # \"YouTube-SelfHost\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-OpenSource:(tags # \"YouTube-OpenSource\") and (unread = \"yes\")
|
||||||
|
"query:YouTube-Programming:(tags # \"YouTube-Programming\") and (unread = \"yes\")
|
||||||
|
@ -1,13 +1,60 @@
|
|||||||
|
'$schema' = "https://starship.rs/config-schema.json"
|
||||||
|
|
||||||
# Inserts a blank line between shell prompts
|
# Inserts a blank line between shell prompts
|
||||||
add_newline = false
|
add_newline = false
|
||||||
|
palette = "catppuccin_frappe"
|
||||||
|
format = '\[$username[@](bold blue)$hostname\] $all'
|
||||||
|
|
||||||
# Replace the "❯" symbol in the prompt with "➜"
|
|
||||||
# [character] # The name of the module we are configuring is "character"
|
|
||||||
# success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
|
|
||||||
|
|
||||||
# Disable the package module, hiding it from the prompt completely
|
[character]
|
||||||
[package]
|
# Note the use of Catppuccin color 'maroon'
|
||||||
|
success_symbol = "[❯](green)"
|
||||||
|
error_symbol = "[❮](red)"
|
||||||
|
vimcmd_symbol = "[❮](green)"
|
||||||
|
|
||||||
|
[username]
|
||||||
|
style_root = "bold red"
|
||||||
|
style_user = "bold yellow"
|
||||||
|
format = "[$user]($style)"
|
||||||
|
show_always = true
|
||||||
disabled = false
|
disabled = false
|
||||||
|
|
||||||
|
[hostname]
|
||||||
|
ssh_only = false
|
||||||
|
style = "bold teal"
|
||||||
|
format = "[$hostname]($style)"
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
truncation_length = 4
|
||||||
|
style = "bold lavender"
|
||||||
|
|
||||||
[cmd_duration]
|
[cmd_duration]
|
||||||
min_time = 500
|
min_time = 500
|
||||||
|
|
||||||
|
[palettes.catppuccin_frappe]
|
||||||
|
rosewater = "#f2d5cf"
|
||||||
|
flamingo = "#eebebe"
|
||||||
|
pink = "#f4b8e4"
|
||||||
|
mauve = "#ca9ee6"
|
||||||
|
red = "#e78284"
|
||||||
|
maroon = "#ea999c"
|
||||||
|
peach = "#ef9f76"
|
||||||
|
yellow = "#e5c890"
|
||||||
|
green = "#a6d189"
|
||||||
|
teal = "#81c8be"
|
||||||
|
sky = "#99d1db"
|
||||||
|
sapphire = "#85c1dc"
|
||||||
|
blue = "#8caaee"
|
||||||
|
lavender = "#babbf1"
|
||||||
|
text = "#c6d0f5"
|
||||||
|
subtext1 = "#b5bfe2"
|
||||||
|
subtext0 = "#a5adce"
|
||||||
|
overlay2 = "#949cbb"
|
||||||
|
overlay1 = "#838ba7"
|
||||||
|
overlay0 = "#737994"
|
||||||
|
surface2 = "#626880"
|
||||||
|
surface1 = "#51576d"
|
||||||
|
surface0 = "#414559"
|
||||||
|
base = "#303446"
|
||||||
|
mantle = "#292c3c"
|
||||||
|
crust = "#232634"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Config { lowerOnStart = True
|
Config { lowerOnStart = True
|
||||||
, overrideRedirect = True
|
, overrideRedirect = True
|
||||||
, font = "xft:IBMPlex Mono:size=10:antialias=true,IpaGothic:size=11:antialias,Symbols Nerd Font:size=10"
|
, font = "xft:IBMPlex Mono:size=10:antialias=true,IpaGothic:size=11:antialias=true,Symbols Nerd Font:size=10:antialias=true"
|
||||||
, bgColor = "#303446"
|
, bgColor = "#303446"
|
||||||
, fgColor = "#c6d0f5"
|
, fgColor = "#c6d0f5"
|
||||||
, position = TopSize L 100 27
|
, position = TopSize L 100 27
|
||||||
|
@ -52,7 +52,7 @@ main = xmonad
|
|||||||
myConfig = def
|
myConfig = def
|
||||||
{ modMask = myModMask
|
{ modMask = myModMask
|
||||||
, layoutHook = myLayoutHook
|
, layoutHook = myLayoutHook
|
||||||
, manageHook = myManageHook
|
, manageHook = insertPosition End Newer <+> myManageHook
|
||||||
, handleEventHook = trayerAboveXmobarEventHook
|
, handleEventHook = trayerAboveXmobarEventHook
|
||||||
, focusFollowsMouse = myFocusFollowsMouse
|
, focusFollowsMouse = myFocusFollowsMouse
|
||||||
, terminal = myTerminal
|
, terminal = myTerminal
|
||||||
@ -83,14 +83,15 @@ myStartupHook = do
|
|||||||
spawn "killall trayer-srg" -- kill current trayer on each restart
|
spawn "killall trayer-srg" -- kill current trayer on each restart
|
||||||
spawnOnce "sxhkd -c $HOME/.config/sxhkd/general"
|
spawnOnce "sxhkd -c $HOME/.config/sxhkd/general"
|
||||||
spawnOnce "gentoo-pipewire-launcher"
|
spawnOnce "gentoo-pipewire-launcher"
|
||||||
-- spawnOnce "transmission-daemon"
|
spawnOnce "transmission-daemon"
|
||||||
spawnOnce "syncthing"
|
spawnOnce "syncthing"
|
||||||
-- spawnOnce "lxsession"
|
spawnOnce "lxsession"
|
||||||
-- spawnOnce "picom"
|
spawnOnce "picom"
|
||||||
-- spawnOnce "clipmenud"
|
spawnOnce "clipmenud"
|
||||||
spawnOnce "dunst"
|
spawnOnce "dunst"
|
||||||
-- spawnOnce "discord --start-minimized"
|
-- spawnOnce "discord --start-minimized"
|
||||||
spawnOnce "keepassxc"
|
spawnOnce "keepassxc"
|
||||||
|
spawnOnce "/usr/libexec/polkit-gnome-authentication-agent-1"
|
||||||
spawn ("sleep 2 && trayer-srg --edge top --align right --widthtype request --padding 6 --iconspacing 7 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x303446 --height 27 -l")
|
spawn ("sleep 2 && trayer-srg --edge top --align right --widthtype request --padding 6 --iconspacing 7 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x303446 --height 27 -l")
|
||||||
setWMName "LG3D" -- Fix java programs
|
setWMName "LG3D" -- Fix java programs
|
||||||
|
|
||||||
@ -99,6 +100,7 @@ myScratchPads :: [NamedScratchpad]
|
|||||||
myScratchPads = [ NS "terminal" spawnTerm findTerm manageTerm
|
myScratchPads = [ NS "terminal" spawnTerm findTerm manageTerm
|
||||||
, NS "wiki" spawnWiki findWiki manageWiki
|
, NS "wiki" spawnWiki findWiki manageWiki
|
||||||
, NS "notes" spawnNotes findNotes manageNotes
|
, NS "notes" spawnNotes findNotes manageNotes
|
||||||
|
, NS "profanity" spawnProfanity findProfanity manageProfanity
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
spawnTerm = myTerminal ++ " --class scratchpad,scratchpad"
|
spawnTerm = myTerminal ++ " --class scratchpad,scratchpad"
|
||||||
@ -109,7 +111,7 @@ myScratchPads = [ NS "terminal" spawnTerm findTerm manageTerm
|
|||||||
w = 0.8
|
w = 0.8
|
||||||
t = 0.9 -h
|
t = 0.9 -h
|
||||||
l = 0.9 -w
|
l = 0.9 -w
|
||||||
spawnWiki = myTerminal ++ " -class wiki,wiki -e wiki"
|
spawnWiki = myTerminal ++ " --class wiki,wiki -e wiki"
|
||||||
findWiki = className =? "wiki"
|
findWiki = className =? "wiki"
|
||||||
manageWiki = customFloating $ W.RationalRect l t w h
|
manageWiki = customFloating $ W.RationalRect l t w h
|
||||||
where
|
where
|
||||||
@ -117,7 +119,7 @@ myScratchPads = [ NS "terminal" spawnTerm findTerm manageTerm
|
|||||||
w = 0.8
|
w = 0.8
|
||||||
t = 0.9 -h
|
t = 0.9 -h
|
||||||
l = 0.9 -w
|
l = 0.9 -w
|
||||||
spawnNotes = myTerminal ++ " -class wiki,wiki -e notes"
|
spawnNotes = myTerminal ++ " --class wiki,wiki -e notes"
|
||||||
findNotes = className =? "notes"
|
findNotes = className =? "notes"
|
||||||
manageNotes = customFloating $ W.RationalRect l t w h
|
manageNotes = customFloating $ W.RationalRect l t w h
|
||||||
where
|
where
|
||||||
@ -125,6 +127,15 @@ myScratchPads = [ NS "terminal" spawnTerm findTerm manageTerm
|
|||||||
w = 0.8
|
w = 0.8
|
||||||
t = 0.9 -h
|
t = 0.9 -h
|
||||||
l = 0.9 -w
|
l = 0.9 -w
|
||||||
|
spawnProfanity = myTerminal ++ " --class profanity,profanity -e profanity"
|
||||||
|
findProfanity = className =? "profanity"
|
||||||
|
manageProfanity = customFloating $ W.RationalRect l t w h
|
||||||
|
where
|
||||||
|
h = 0.8
|
||||||
|
w = 0.8
|
||||||
|
t = 0.9 -h
|
||||||
|
l = 0.9 -w
|
||||||
|
|
||||||
|
|
||||||
--Makes setting the spacingRaw simpler to write. The spacingRaw module adds a configurable amount of space around windows.
|
--Makes setting the spacingRaw simpler to write. The spacingRaw module adds a configurable amount of space around windows.
|
||||||
mySpacing :: Integer -> l a -> XMonad.Layout.LayoutModifier.ModifiedLayout Spacing l a
|
mySpacing :: Integer -> l a -> XMonad.Layout.LayoutModifier.ModifiedLayout Spacing l a
|
||||||
@ -139,11 +150,11 @@ mySpacing' i = spacingRaw True (Border i i i i) True (Border i i i i) True
|
|||||||
tall = renamed [Replace "tall"]
|
tall = renamed [Replace "tall"]
|
||||||
$ withBorder myBorderWidth
|
$ withBorder myBorderWidth
|
||||||
$ windowNavigation
|
$ windowNavigation
|
||||||
$ mySpacing 6
|
$ mySpacing 7
|
||||||
$ ResizableTall 1 (3/100) (1/2) []
|
$ ResizableTall 1 (3/100) (1/2) []
|
||||||
monocle = renamed [Replace "monocle"]
|
monocle = renamed [Replace "monocle"]
|
||||||
$ withBorder myBorderWidth
|
$ withBorder myBorderWidth
|
||||||
$ mySpacing 6
|
$ mySpacing 7
|
||||||
$ windowNavigation
|
$ windowNavigation
|
||||||
$ Full
|
$ Full
|
||||||
floats = renamed [Replace "floats"]
|
floats = renamed [Replace "floats"]
|
||||||
@ -164,7 +175,7 @@ myLayoutHook = lessBorders OnlyScreenFloat
|
|||||||
-- My manage hook
|
-- My manage hook
|
||||||
myManageHook :: ManageHook
|
myManageHook :: ManageHook
|
||||||
myManageHook = composeAll
|
myManageHook = composeAll
|
||||||
[ className =? "LibreWolf" --> doShiftAndGo ( myWorkspaces !! 0)
|
[ className =? "librewolf" --> doShiftAndGo ( myWorkspaces !! 0)
|
||||||
, className =? "newsboat" --> doShiftAndGo ( myWorkspaces !! 3)
|
, className =? "newsboat" --> doShiftAndGo ( myWorkspaces !! 3)
|
||||||
, className =? "videos" --> doShiftAndGo ( myWorkspaces !! 3)
|
, className =? "videos" --> doShiftAndGo ( myWorkspaces !! 3)
|
||||||
, className =? "ytfzf" --> doShiftAndGo ( myWorkspaces !! 3)
|
, className =? "ytfzf" --> doShiftAndGo ( myWorkspaces !! 3)
|
||||||
@ -173,22 +184,23 @@ myManageHook = composeAll
|
|||||||
, className =? "Ferdium" --> doShiftAndGo ( myWorkspaces !! 4)
|
, className =? "Ferdium" --> doShiftAndGo ( myWorkspaces !! 4)
|
||||||
, className =? "discord" --> doShiftAndGo ( myWorkspaces !! 4)
|
, className =? "discord" --> doShiftAndGo ( myWorkspaces !! 4)
|
||||||
, className =? "tutanota-desktop" --> doShiftAndGo ( myWorkspaces !! 4)
|
, className =? "tutanota-desktop" --> doShiftAndGo ( myWorkspaces !! 4)
|
||||||
, className =? "Lutris" --> doShiftAndGo ( myWorkspaces !! 5) <+> doF W.swapUp
|
, className =? "Lutris" --> doShiftAndGo ( myWorkspaces !! 5)
|
||||||
, className =? "Steam" --> doShiftAndGo ( myWorkspaces !! 5)
|
, className =? "steam" --> doShiftAndGo ( myWorkspaces !! 5)
|
||||||
, className =? "heroic" --> doShiftAndGo ( myWorkspaces !! 5)
|
, className =? "heroic" --> doShiftAndGo ( myWorkspaces !! 5)
|
||||||
|
, className =? "cartridges" --> doShiftAndGo ( myWorkspaces !! 5)
|
||||||
, isDialog --> doCenterFloat <+> doF W.swapUp
|
, isDialog --> doCenterFloat <+> doF W.swapUp
|
||||||
, className =? "Gimp" --> doFloat
|
, className =? "Gimp" --> doFloat <+> doF W.swapUp
|
||||||
, className =? "confirm" --> doFloat
|
, className =? "confirm" --> doFloat <+> doF W.swapUp
|
||||||
, className =? "file_progress" --> doFloat
|
, className =? "file_progress" --> doFloat <+> doF W.swapUp
|
||||||
, className =? "dialog" --> doFloat
|
, className =? "dialog" --> doFloat <+> doF W.swapUp
|
||||||
, className =? "download" --> doFloat
|
, className =? "download" --> doFloat <+> doF W.swapUp
|
||||||
, className =? "error" --> doFloat
|
, className =? "error" --> doFloat <+> doF W.swapUp
|
||||||
, className =? "notification" --> doFloat
|
, className =? "notification" --> doFloat <+> doF W.swapUp
|
||||||
, className =? "splash" --> doFloat
|
, className =? "splash" --> doFloat <+> doF W.swapUp
|
||||||
, className =? "toolbar" --> doFloat
|
, className =? "toolbar" --> doFloat <+> doF W.swapUp
|
||||||
, className =? "pinentry-gtk-2" --> doFloat
|
, className =? "pinentry-gtk-2" --> doFloat <+> doF W.swapUp
|
||||||
, className =? "Yad" --> doCenterFloat
|
, className =? "Yad" --> doCenterFloat <+> doF W.swapUp
|
||||||
, className =? "badd" --> doCenterFloat
|
, className =? "badd" --> doCenterFloat <+> doF W.swapUp
|
||||||
, isFullscreen --> doFullFloat <+> doF W.swapUp
|
, isFullscreen --> doFullFloat <+> doF W.swapUp
|
||||||
, namedScratchpadManageHook myScratchPads
|
, namedScratchpadManageHook myScratchPads
|
||||||
]
|
]
|
||||||
@ -215,6 +227,7 @@ myKeys = \c -> mkKeymap c $
|
|||||||
, ("M-s t", namedScratchpadAction myScratchPads "terminal") -- Toggle scratchpad
|
, ("M-s t", namedScratchpadAction myScratchPads "terminal") -- Toggle scratchpad
|
||||||
, ("M-s w", namedScratchpadAction myScratchPads "wiki") -- Toggle scratchpad
|
, ("M-s w", namedScratchpadAction myScratchPads "wiki") -- Toggle scratchpad
|
||||||
, ("M-s n", namedScratchpadAction myScratchPads "notes") -- Toggle scratchpad
|
, ("M-s n", namedScratchpadAction myScratchPads "notes") -- Toggle scratchpad
|
||||||
|
, ("M-s p", namedScratchpadAction myScratchPads "profanity") -- Toggle scratchpad
|
||||||
, ("M-1", viewDesktop 0) -- Check workspace 1
|
, ("M-1", viewDesktop 0) -- Check workspace 1
|
||||||
, ("M-2", viewDesktop 1) -- Check workspace 2
|
, ("M-2", viewDesktop 1) -- Check workspace 2
|
||||||
, ("M-3", viewDesktop 2) -- Check workspace 3
|
, ("M-3", viewDesktop 2) -- Check workspace 3
|
||||||
|
@ -2,13 +2,13 @@ export QT_QPA_PLATFORMTHEME=qt5ct
|
|||||||
|
|
||||||
# Path exprt (.zshenv method doesn't work with gentoo for no real reason)
|
# Path exprt (.zshenv method doesn't work with gentoo for no real reason)
|
||||||
typeset -U PATH path
|
typeset -U PATH path
|
||||||
path=("$HOME/.local/bin" "$HOME/bin/dmenu/" "$HOME/bin/gaming/" "$HOME/bin/statusbar/" "$HOME/bin/misc/" "$HOME/bin/wayland" "$HOME/bin/fzf" "$HOME/bin/bspwm" "$path[@]")
|
path=("$HOME/.local/share/cargo/bin" "$HOME/.local/bin" "$HOME/bin/dmenu" "$HOME/bin/misc" "$HOME/bin/statusbar" "$HOME/bin/tmux" "$path[@]")
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
export SXHKD_SHELL='/bin/sh'
|
export SXHKD_SHELL='/bin/sh'
|
||||||
|
|
||||||
[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx $HOME/.config/X11/xinitrc &> /dev/null
|
[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx $HOME/.config/X11/xinitrc &> /dev/null
|
||||||
# [[ $(fgconsole 2>/dev/null) == 1 ]] && exec start-river &> /dev/null
|
# [[ $(fgconsole 2>/dev/null) == 1 ]] && exec start-dwl &> /dev/null
|
||||||
# [[ $(fgconsole 2>/dev/null) == 1 ]] && exec start-hyprland &> /dev/null
|
# [[ $(fgconsole 2>/dev/null) == 1 ]] && exec start-hyprland &> /dev/null
|
||||||
|
|
||||||
eval "$(ssh-agent -s)" &> /dev/null
|
eval "$(ssh-agent -s)" &> /dev/null
|
||||||
|
@ -16,7 +16,16 @@ plug "zap-zsh/completions"
|
|||||||
plug "zap-zsh/vim"
|
plug "zap-zsh/vim"
|
||||||
plug "zsh-users/zsh-autosuggestions"
|
plug "zsh-users/zsh-autosuggestions"
|
||||||
plug "zsh-users/zsh-completions"
|
plug "zsh-users/zsh-completions"
|
||||||
plug "zsh-users/zsh-syntax-highlighting"
|
plug "chivalryq/git-alias"
|
||||||
|
plug "zdharma-continuum/fast-syntax-highlighting"
|
||||||
|
plug "zsh-users/zsh-history-substring-search"
|
||||||
|
plug "MichaelAquilina/zsh-you-should-use"
|
||||||
|
|
||||||
|
# Substring search settings
|
||||||
|
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=blue,fg=black,bold"
|
||||||
|
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=black,bold'
|
||||||
|
bindkey -M vicmd 'k' history-substring-search-up
|
||||||
|
bindkey -M vicmd 'j' history-substring-search-down
|
||||||
|
|
||||||
# Plugin settings
|
# Plugin settings
|
||||||
if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
|
if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
|
||||||
@ -33,7 +42,16 @@ plug "$XDG_CONFIG_HOME/zsh/functions.zsh"
|
|||||||
setopt appendhistory
|
setopt appendhistory
|
||||||
setopt INC_APPEND_HISTORY
|
setopt INC_APPEND_HISTORY
|
||||||
export HISTTIMEFORMAT="[%F %T]"
|
export HISTTIMEFORMAT="[%F %T]"
|
||||||
# HISTSIZE=10000
|
|
||||||
# SAVEHIST=5000
|
|
||||||
|
|
||||||
HISTFILE="$XDG_STATE_HOME"/zsh/history
|
HISTFILE="$XDG_STATE_HOME"/zsh/history
|
||||||
|
|
||||||
|
[ -n "$NNNLVL" ] && PS1="N$NNNLVL $PS1"
|
||||||
|
|
||||||
|
nnn_cd ()
|
||||||
|
{
|
||||||
|
if ! [ -z "$NNN_PIPE" ]; then
|
||||||
|
printf "%s\0" "0c${PWD}" > "${NNN_PIPE}" !&
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
trap nnn_cd EXIT
|
||||||
|
@ -13,41 +13,19 @@ alias tree='tree -C'
|
|||||||
alias less='less -R'
|
alias less='less -R'
|
||||||
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
|
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
|
||||||
|
|
||||||
# Git aliases
|
|
||||||
alias g='git'
|
|
||||||
alias gst='git status -s'
|
|
||||||
alias gc='git commit'
|
|
||||||
alias ga='git add'
|
|
||||||
alias gpl="git pull"
|
|
||||||
alias gpom="git pull origin master"
|
|
||||||
alias gpu="git push"
|
|
||||||
alias gpuom="git push origin master"
|
|
||||||
alias gd="git diff"
|
|
||||||
alias gch="git checkout"
|
|
||||||
alias gnb="git checkout -b"
|
|
||||||
alias gac="git add . && git commit"
|
|
||||||
alias grs="git restore --staged ."
|
|
||||||
alias gre="git restore"
|
|
||||||
alias gr="git remote"
|
|
||||||
alias gcl="git clone"
|
|
||||||
alias glg="git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"
|
|
||||||
alias gt="git ls-tree -r master --name-only"
|
|
||||||
alias grm="git remote"
|
|
||||||
alias gb="git branch"
|
|
||||||
alias gf="git fetch"
|
|
||||||
|
|
||||||
# Easier to type
|
# Easier to type
|
||||||
alias vi='nvim'
|
alias vi='nvim'
|
||||||
|
alias nnn='nnn -xec'
|
||||||
|
|
||||||
# Humna readable + better output
|
# Humna readable + better output
|
||||||
alias df='df -h -x devtmpfs -x tmpfs -x usbfs -x loop'
|
alias df='df -h -x devtmpfs -x tmpfs -x usbfs -x loop'
|
||||||
alias free='free -m -h'
|
alias free='free -m -h'
|
||||||
|
|
||||||
# speed up
|
# speed up
|
||||||
alias spotdl='spotdl --output-format ogg -p "{artist}/{album}/{artists} - {title}.{ext}" --dt 8 --st 8'
|
alias spotdl='spotdl --format mp3 --output "{artist}/{artists} - {title}" --threads 16 --sponsor-block'
|
||||||
|
|
||||||
# Just cause I can't remember the command at all
|
# Just cause I can't remember the command at all
|
||||||
alias update-grub='doas grub-mkconfig -o /boot/grub/grub.cfg'
|
alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
|
||||||
|
|
||||||
# Quickly see the hogger in the directory
|
# Quickly see the hogger in the directory
|
||||||
alias dust='du -hd1 | sort -hr | sed "s/.\///g" | sed "/\.$/d"'
|
alias dust='du -hd1 | sort -hr | sed "s/.\///g" | sed "/\.$/d"'
|
||||||
@ -59,10 +37,6 @@ alias ytvf='yt-dlp --merge-output-format mp4 --format best --embed-thumbnail --e
|
|||||||
|
|
||||||
# Nice
|
# Nice
|
||||||
alias dl='aria2c -j 16 -s 16 -x 16 -k 5M --file-allocation=none'
|
alias dl='aria2c -j 16 -s 16 -x 16 -k 5M --file-allocation=none'
|
||||||
|
|
||||||
# ;)
|
|
||||||
alias lf='lfrun $@'
|
|
||||||
|
|
||||||
alias b='buku --suggest'
|
alias b='buku --suggest'
|
||||||
|
|
||||||
# cryptography
|
# cryptography
|
||||||
|
@ -2,14 +2,21 @@
|
|||||||
|
|
||||||
# Cd into a directory using fzf
|
# Cd into a directory using fzf
|
||||||
fcd () {
|
fcd () {
|
||||||
dir=$(fd -a --type d --hidden --exclude ".git|.github" | fzf --prompt "Choose directory: ")
|
dir=$(fd -a --type d --hidden --exclude ".git|.github" --color=never | fzf --prompt "Choose directory: ")
|
||||||
|
[ -z $dir ] && return 1
|
||||||
|
cd $dir
|
||||||
|
}
|
||||||
|
|
||||||
|
# Cd into specific repo
|
||||||
|
fr () {
|
||||||
|
dir=$(fd . ~/repos --maxdepth 1 -a --type d --hidden --exclude ".git|.github" --color=never | fzf --prompt "Choose directory: ")
|
||||||
[ -z $dir ] && return 1
|
[ -z $dir ] && return 1
|
||||||
cd $dir
|
cd $dir
|
||||||
}
|
}
|
||||||
|
|
||||||
# Remove choosed stuff
|
# Remove choosed stuff
|
||||||
frm () {
|
frm () {
|
||||||
remove=$(fd --hidden --maxdepth 1 | fzf -m --prompt "Choose to delete: ")
|
remove=$(fd --hidden --maxdepth 1 --color=never | fzf -m --prompt "Choose to delete: ")
|
||||||
[ -z $remove ] && return 1
|
[ -z $remove ] && return 1
|
||||||
rm -rf $(printf '%s' $remove)
|
rm -rf $(printf '%s' $remove)
|
||||||
}
|
}
|
||||||
@ -33,6 +40,7 @@ md () {
|
|||||||
mvln () {
|
mvln () {
|
||||||
from=$(readlink -f $1)
|
from=$(readlink -f $1)
|
||||||
to=$(readlink -f $2)
|
to=$(readlink -f $2)
|
||||||
|
[ ! -d "$(basename $to)" ] && mkdir "$to"
|
||||||
mv $from $to
|
mv $from $to
|
||||||
ln -s $to $from
|
ln -s $to $from
|
||||||
}
|
}
|
||||||
@ -45,13 +53,17 @@ se() {
|
|||||||
|
|
||||||
# List my config and open the dir in a editor
|
# List my config and open the dir in a editor
|
||||||
ce() {
|
ce() {
|
||||||
fd . ~/.config -L --maxdepth 1 --color=never | fzf --prompt \
|
current=$(pwd)
|
||||||
"Choose config to edit: " --preview 'tree -a -C {}' | xargs -r $EDITOR
|
dir=$(fd . ~/.config -L --maxdepth 1 --color=never | fzf --prompt \
|
||||||
|
"Choose config to edit: " --preview 'tree -a -C {}')
|
||||||
|
[ "$dir" = "" ] && return
|
||||||
|
cd "$dir" && nvim .
|
||||||
|
cd "$current"
|
||||||
}
|
}
|
||||||
|
|
||||||
# List files in a directory and edit choosen one
|
# List files in a directory and edit choosen one
|
||||||
vf(){
|
vf(){
|
||||||
fd -L --maxdepth 1 --type f --color=never --hidden | fzf --prompt "Choose script to edit: " \
|
fd -L --maxdepth 1 --type f --color=never --hidden | fzf --prompt "Choose file to edit: " \
|
||||||
--preview 'bat --color=always --style=plain --pager=never {}' | xargs -r $EDITOR
|
--preview 'bat --color=always --style=plain --pager=never {}' | xargs -r $EDITOR
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,3 +96,31 @@ erm() {
|
|||||||
printf '%s\n' ""
|
printf '%s\n' ""
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Check use flags of package in world
|
||||||
|
u() {
|
||||||
|
cat /var/lib/portage/world | fzf --prompt "Choose package to uninstall: " --preview "equery u {}" --multi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check dependencies of packages in world
|
||||||
|
d() {
|
||||||
|
cat /var/lib/portage/world | fzf --prompt "Choose package to uninstall: " --preview "emerge -pqe {}"
|
||||||
|
}
|
||||||
|
|
||||||
|
n () {
|
||||||
|
# Block nesting of nnn in subshells
|
||||||
|
[ "${NNNLVL:-0}" -eq 0 ] || {
|
||||||
|
echo "nnn is already running"
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
# Tempfile location
|
||||||
|
export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
|
||||||
|
|
||||||
|
nnn "$@"
|
||||||
|
|
||||||
|
[ ! -f "$NNN_TMPFILE" ] || {
|
||||||
|
. "$NNN_TMPFILE"
|
||||||
|
rm -f "$NNN_TMPFILE" > /dev/null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
17
.zshenv
17
.zshenv
@ -10,7 +10,7 @@ export VIDEO="mpv"
|
|||||||
export IMAGE="nsxiv"
|
export IMAGE="nsxiv"
|
||||||
export OPENER="xdg-open"
|
export OPENER="xdg-open"
|
||||||
export PAGER="less"
|
export PAGER="less"
|
||||||
export WM="awesome"
|
export WM="xmonad"
|
||||||
export SUDO_ASKPASS="dmenu-pass"
|
export SUDO_ASKPASS="dmenu-pass"
|
||||||
|
|
||||||
# clipmenu settings
|
# clipmenu settings
|
||||||
@ -20,6 +20,17 @@ export CM_SELECTIONS="clipboard"
|
|||||||
export CM_OWN_CLIPBOARD=1
|
export CM_OWN_CLIPBOARD=1
|
||||||
export CM_DIR="$HOME/.cache"
|
export CM_DIR="$HOME/.cache"
|
||||||
|
|
||||||
|
# NNN settings
|
||||||
|
export NNN_FIFO="/tmp/nnn.fifo"
|
||||||
|
export NNN_PLUG="s:!zsh -i*;u:nmount;c:chksum;r:gitroot;v:imgview;m:mtpmount;d:xdgdefault;x:togglex"
|
||||||
|
export NNN_COLORS="2136"
|
||||||
|
export NNN_SSHFS="sshfs -o follow_symlinks"
|
||||||
|
|
||||||
|
# Catppuccin colors nnn
|
||||||
|
BLK="03" CHR="03" DIR="04" EXE="02" REG="07" HARDLINK="05" SYMLINK="05" MISSING="08" ORPHAN="01" FIFO="06" SOCK="03" UNKNOWN="01"
|
||||||
|
export NNN_COLORS="#04020301;4231"
|
||||||
|
export NNN_FCOLORS="$BLK$CHR$DIR$EXE$REG$HARDLINK$SYMLINK$MISSING$ORPHAN$FIFO$SOCK$UNKNOWN"
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
export XDG_STATE_HOME="$HOME/.local/state"
|
export XDG_STATE_HOME="$HOME/.local/state"
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
@ -48,6 +59,9 @@ export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|||||||
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||||||
export NUGET_PACKAGES="$XDG_CACHE_HOME/NuGetPackages"
|
export NUGET_PACKAGES="$XDG_CACHE_HOME/NuGetPackages"
|
||||||
export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
|
export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
|
||||||
|
export XCURSOR_PATH=/usr/share/icons:$XDG_DATA_HOME/icons
|
||||||
|
export MYPY_CACHE_DIR="$XDG_CACHE_HOME"/mypy
|
||||||
|
export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
|
||||||
|
|
||||||
# fzf catppuccin theme
|
# fzf catppuccin theme
|
||||||
export FZF_DEFAULT_OPTS=" \
|
export FZF_DEFAULT_OPTS=" \
|
||||||
@ -64,3 +78,4 @@ export BEMENU_OPTS='-H 24 --fb "#303446" --ff "#81c8be" \
|
|||||||
|
|
||||||
# bat theme
|
# bat theme
|
||||||
export BAT_THEME="Catppuccin-mocha"
|
export BAT_THEME="Catppuccin-mocha"
|
||||||
|
. "/home/crony/.local/share/cargo/env"
|
||||||
|
Loading…
Reference in New Issue
Block a user