updates
This commit is contained in:
parent
a46cd330d3
commit
66ab56bccd
8 changed files with 83 additions and 12 deletions
19
bash/.bashrc
19
bash/.bashrc
|
|
@ -171,18 +171,23 @@ alias sha1='openssl sha1'
|
||||||
|
|
||||||
alias clickpaste='sleep 3; xdotool type "$(xclip -o -selection clipboard)"'
|
alias clickpaste='sleep 3; xdotool type "$(xclip -o -selection clipboard)"'
|
||||||
|
|
||||||
|
# fzf aliases
|
||||||
|
# use fp to do a fzf search and preview the files
|
||||||
|
alias fp="fzf --preview 'bat --style=numbers --color=always --line-range :500 {}'"
|
||||||
|
# search for a file and open with nvim
|
||||||
|
alias vf='nvim $(fp)'
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
# SPECIAL FUNCTIONS
|
# SPECIAL FUNCTIONS
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
||||||
chezedit() {
|
#chezedit() {
|
||||||
if [ -z "$1" ]; then
|
# if [ -z "$1" ]; then
|
||||||
echo "Usage: chezedit <config file>"
|
# echo "Usage: chezedit <config file>"
|
||||||
return 1
|
# return 1
|
||||||
fi
|
# fi
|
||||||
chezmoi edit "$1" && chezmoi apply "$1"
|
# chezmoi edit "$1" && chezmoi apply "$1"
|
||||||
}
|
#}
|
||||||
|
|
||||||
# Extracts any archive(s) (if unp isn't installed)
|
# Extracts any archive(s) (if unp isn't installed)
|
||||||
extract() {
|
extract() {
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,9 @@ dwindle {
|
||||||
}
|
}
|
||||||
|
|
||||||
master {
|
master {
|
||||||
new_status = master
|
# new_status = master
|
||||||
|
new_status = inherit
|
||||||
|
mfact = 0.50
|
||||||
}
|
}
|
||||||
|
|
||||||
misc {
|
misc {
|
||||||
|
|
@ -178,7 +180,8 @@ device {
|
||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
bindd = $mainMod, return, Launch a terminal, exec, $terminal bash --rcfile ~/.dotfiles/bash/.bashrc
|
#bindd = $mainMod, return, Launch a terminal, exec, $terminal bash --rcfile ~/.dotfiles/bash/.bashrc
|
||||||
|
bindd = $mainMod, return, Launch a terminal, exec, $terminal
|
||||||
bindd = $mainMod, B, Launch the default browser, exec, $browser
|
bindd = $mainMod, B, Launch the default browser, exec, $browser
|
||||||
bindd = $mainMod, C, Launch Visual Studio Code, exec, $editor
|
bindd = $mainMod, C, Launch Visual Studio Code, exec, $editor
|
||||||
bindd = $mainMod, N, Launch Neovim, exec, $editor-alt
|
bindd = $mainMod, N, Launch Neovim, exec, $editor-alt
|
||||||
|
|
@ -187,9 +190,11 @@ bindd = $mainMod, M, Exit Hyprland, exit,
|
||||||
bindd = $mainMod, E, Launch the file manager, exec, $fileManager
|
bindd = $mainMod, E, Launch the file manager, exec, $fileManager
|
||||||
bindd = $mainMod, W, Toggle floating, togglefloating,
|
bindd = $mainMod, W, Toggle floating, togglefloating,
|
||||||
bindd = $mainMod, space, Launch menu, exec, $menu
|
bindd = $mainMod, space, Launch menu, exec, $menu
|
||||||
|
bind = $mainMod, O, layoutmsg, swapwithmaster
|
||||||
bind = $mainMod, P, pseudo, # dwindle
|
bind = $mainMod, P, pseudo, # dwindle
|
||||||
bind = $mainMod, J, togglesplit, # dwindle
|
bind = $mainMod, J, togglesplit, # dwindle
|
||||||
|
|
||||||
|
bindd = $mainMod, I, Switch between master/dwingle, exec, $HOME/.config/hypr/switchlayout.sh
|
||||||
bindd = $mainMod, S, Launch menu to modify/create script, exec, autoscriptmenu
|
bindd = $mainMod, S, Launch menu to modify/create script, exec, autoscriptmenu
|
||||||
|
|
||||||
bindd = $mainMod, period, Launch the Emoji Picker, exec, jome -d | wl-copy #Emojipicker + clipboard copy
|
bindd = $mainMod, period, Launch the Emoji Picker, exec, jome -d | wl-copy #Emojipicker + clipboard copy
|
||||||
|
|
@ -239,7 +244,7 @@ bindm = $mainMod, mouse:272, movewindow
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
# Color picker
|
# Color picker
|
||||||
bindd = $mainMod, P, Color Picker, exec, $colorPicker | wl-copy
|
#bindd = $mainMod, P, Color Picker, exec, $colorPicker | wl-copy
|
||||||
|
|
||||||
# Screen locking
|
# Screen locking
|
||||||
bindd = $mainMod, L, Lock the screen, exec, hyprlock
|
bindd = $mainMod, L, Lock the screen, exec, hyprlock
|
||||||
|
|
|
||||||
3
hypr/.config/hypr/monitors.conf
Normal file
3
hypr/.config/hypr/monitors.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Generated by nwg-displays on 2024-10-24 at 08:24:17. Do not edit manually.
|
||||||
|
|
||||||
|
monitor=DP-3,3440x1440@59.97,0x0,1.0
|
||||||
9
hypr/.config/hypr/switchlayout.sh
Executable file
9
hypr/.config/hypr/switchlayout.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
case "$(hyprctl -j getoption general:layout | jq -r .str)" in
|
||||||
|
dwindle) hyprctl keyword general:layout master
|
||||||
|
notify-send "Switched to MASTER layout"
|
||||||
|
;;
|
||||||
|
master) hyprctl keyword general:layout dwindle
|
||||||
|
notify-send "Switch to DWINDLE layout"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
12
hypr/.config/hypr/workspaces.conf
Normal file
12
hypr/.config/hypr/workspaces.conf
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Generated by nwg-displays on 2024-10-24 at 08:24:46. Do not edit manually.
|
||||||
|
|
||||||
|
workspace=1,monitor:DP-3,default:true
|
||||||
|
workspace=2,monitor:DP-3
|
||||||
|
workspace=3,monitor:DP-3
|
||||||
|
workspace=5,monitor:DP-3
|
||||||
|
workspace=4,monitor:DP-3
|
||||||
|
workspace=6,monitor:DP-3
|
||||||
|
workspace=7,monitor:DP-3
|
||||||
|
workspace=8,monitor:DP-3
|
||||||
|
workspace=9,monitor:DP-3
|
||||||
|
workspace=10,monitor:DP-3
|
||||||
|
|
@ -2,3 +2,8 @@ profile home {
|
||||||
output DP-4 position 0,0
|
output DP-4 position 0,0
|
||||||
output DP-5 disable
|
output DP-5 disable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
profile office {
|
||||||
|
output DP-3 position 0,0
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
"modules-center": ["hyprland/window"],
|
"modules-center": ["hyprland/window"],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"tray",
|
"tray",
|
||||||
|
"custom/updates",
|
||||||
"memory",
|
"memory",
|
||||||
"cpu",
|
"cpu",
|
||||||
"network",
|
"network",
|
||||||
|
|
@ -25,6 +26,28 @@
|
||||||
// "wireplumber#microphone"
|
// "wireplumber#microphone"
|
||||||
],
|
],
|
||||||
|
|
||||||
|
"custom/updates": {
|
||||||
|
"format": "{} {icon}",
|
||||||
|
"return-type": "json",
|
||||||
|
"format-icons": {
|
||||||
|
"has-updates": "",
|
||||||
|
"updated": ""
|
||||||
|
},
|
||||||
|
"exec-if": "which waybar-module-pacman-updates",
|
||||||
|
"exec": "waybar-module-pacman-updates --interval-seconds 5 --network-interval-seconds 300"
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// "format": "{icon}{}",
|
||||||
|
// "return-type": "json",
|
||||||
|
// "format-icons": {
|
||||||
|
// "pending-updates": " ",
|
||||||
|
// "updated": " ",
|
||||||
|
// },
|
||||||
|
// "exec-if": "which waybar-updates",
|
||||||
|
// "exec": "waybar-updates"
|
||||||
|
// },
|
||||||
|
|
||||||
"hyprland/window": {
|
"hyprland/window": {
|
||||||
"format": " {}"
|
"format": " {}"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@ window#waybar {
|
||||||
#memory,
|
#memory,
|
||||||
#workspaces,
|
#workspaces,
|
||||||
#tray,
|
#tray,
|
||||||
|
#custom-updates,
|
||||||
#backlight {
|
#backlight {
|
||||||
background: #1e1e2e;
|
background: #1e1e2e;
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
|
|
@ -81,7 +82,7 @@ window#waybar {
|
||||||
}
|
}
|
||||||
|
|
||||||
#memory {
|
#memory {
|
||||||
border-radius: 10px 0px 0px 10px;
|
/* border-radius: 10px 0px 0px 10px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
#window {
|
#window {
|
||||||
|
|
@ -97,10 +98,18 @@ window#waybar {
|
||||||
border-right: 0px;
|
border-right: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-updates {
|
||||||
|
color: #a6adc8;
|
||||||
|
border-radius: 10px 0px 0px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#idle_inhibitor{
|
||||||
|
color: #a6adc8;
|
||||||
|
}
|
||||||
|
|
||||||
#network {
|
#network {
|
||||||
color: #a6adc8;
|
color: #a6adc8;
|
||||||
border-radius: 10px 0px 0px 10px;
|
border-radius: 10px 0px 0px 10px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue