mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
rest of misc stuff
This commit is contained in:
parent
bb2057f5d5
commit
07b4757bde
22 changed files with 120 additions and 381 deletions
|
|
@ -1,30 +0,0 @@
|
|||
{config, pkgs, lib, ...}:
|
||||
{
|
||||
xsession.windowManager.bspwm = {
|
||||
enable = true;
|
||||
startupPrograms = [
|
||||
"polybar left"
|
||||
"polybar middle"
|
||||
"polybar right"
|
||||
"xfce4-power-manager"
|
||||
"xsetroot -cursor_name left_ptr"
|
||||
"xsetroot -solid \"#000000\""
|
||||
"flashfocus"
|
||||
];
|
||||
settings = {
|
||||
border_width = 0;
|
||||
window_gap = 10;
|
||||
border_radius = 7;
|
||||
normal_border_color = "\#c0caf5";
|
||||
active_border_color = "\#c0caf5";
|
||||
focused_border_color = "\#c0caf5";
|
||||
spilt_ratio = 0.52;
|
||||
borderless_monocle = true;
|
||||
gapless_monocle = true;
|
||||
};
|
||||
monitors = {
|
||||
HDMI-0 = [ "I" "II" "III" "IV" "V" ];
|
||||
eDP-1 = [ "VI" "VII" "VIII" "IX" "X" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
## @@@@@@@@@@@@@@@@@@@@@@
|
||||
## Flashfocus config file
|
||||
## @@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
# Opacity of window during flash.
|
||||
flash-opacity: 0.5
|
||||
|
||||
# Windows are restored to this opacity value at the end of a flash.
|
||||
default-opacity: 1
|
||||
|
||||
# Length of flash in milliseconds.
|
||||
time: 500
|
||||
|
||||
# If true, flashes are not faded out. This will improve performance but flashes
|
||||
# won't be smooth.
|
||||
simple: false
|
||||
|
||||
# Number of animation frames in a flash.
|
||||
ntimepoints: 30
|
||||
|
||||
# Set this to false if you don't want windows to flash on focus.
|
||||
flash-on-focus: true
|
||||
|
||||
# Set this to false if you don't want fullscreen windows to flash.
|
||||
flash-fullscreen: true
|
||||
|
||||
# Whether or not to flash windows if they are the only window on the desktop.
|
||||
# Possible values:
|
||||
# 'always':
|
||||
# Always flash lone windows
|
||||
# 'never':
|
||||
# Never flash lone windows
|
||||
# 'on_open_close':
|
||||
# Lone windows will be flashed only if a) if they were just opened and b)
|
||||
# if another window was just closed.
|
||||
# 'on_switch':
|
||||
# Lone windows will be flashed only upon switching desktops.
|
||||
flash-lone-windows: 'always'
|
||||
|
||||
|
||||
# Defining window-specific flash rules
|
||||
#
|
||||
# X11-based window managers (e.g i3, bspwm)
|
||||
# -----------------------------------------
|
||||
# Flash rules are defined by matching the WM_CLASS property of a window. To get
|
||||
# the WM_CLASS property use 'xprop WM_CLASS' and click on a window. The
|
||||
# property is a tuple of the form (window-id, window-class). The window-class
|
||||
# is usually the name of the application, but not always.
|
||||
#
|
||||
#
|
||||
# Say I'd like to set all 'termite' windows to 80% opacity but leave other
|
||||
# windows at full opacity:
|
||||
#
|
||||
# rules:
|
||||
# - window-class: Termite
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
#
|
||||
# I also would prefer that firefox windows are not flashed on focus:
|
||||
#
|
||||
# rules:
|
||||
# - window-class: firefox
|
||||
# flash-on-focus: False
|
||||
# - window-class: Termite
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
#
|
||||
# For more complicated rules, you can use (python-style) regexes:
|
||||
#
|
||||
# rules:
|
||||
# - window-id: ^(?!termite)$
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
#
|
||||
# Sway
|
||||
# ----
|
||||
# Native wayland apps can be matched using the app_id and window name. These
|
||||
# can be found using `swaymsg -t get_tree`. XWayland apps are matched with
|
||||
# using WM_CLASS as above (this can also be found with `swaymsg`)
|
||||
#
|
||||
# Given that termite is wayland native and firefox is not, the rules above
|
||||
# could instead be written:
|
||||
#
|
||||
# rules:
|
||||
# - window-class: firefox
|
||||
# flash-on-focus: False
|
||||
# - app-id: termite
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
# rules:
|
||||
# - window-name: ^(?!termite)$
|
||||
# default-opacity: 0.8
|
||||
|
|
@ -2,7 +2,6 @@
|
|||
{
|
||||
imports = [
|
||||
./librewolf.nix
|
||||
./bspwm.nix
|
||||
./sxhkd.nix
|
||||
./rofi.nix
|
||||
./polybar.nix
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}:{
|
||||
{pkgs, ...}:
|
||||
{
|
||||
programs = {
|
||||
librewolf = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
let
|
||||
vim-moonfly = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "vim-moonfly";
|
||||
pname = "vim-moonfly";
|
||||
version = "1.0.0";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "bluz71";
|
||||
repo = "vim-moonfly-colors";
|
||||
|
|
|
|||
|
|
@ -1,44 +1,18 @@
|
|||
{
|
||||
services.picom = {
|
||||
enable = true;
|
||||
activeOpacity = 1.0;
|
||||
backend = "glx";
|
||||
experimentalBackends = false;
|
||||
fade = true;
|
||||
fadeDelta = 4;
|
||||
fadeSteps = [ 0.03 0.03 ];
|
||||
inactiveOpacity = 1.0;
|
||||
menuOpacity = 1.0;
|
||||
shadow = true;
|
||||
shadowExclude = [ "window_type = 'menu'" "class_g = 'firefox'" ];
|
||||
shadowOffsets = [ 25 25 ];
|
||||
shadow = false;
|
||||
shadowOpacity = 0.5;
|
||||
vSync = false;
|
||||
settings = {
|
||||
animations = true;
|
||||
animation = {
|
||||
stiffness = 200;
|
||||
window-mass = 0.4;
|
||||
dampening = 20;
|
||||
clamping = false;
|
||||
for-open-window = "zoom";
|
||||
for-unmap-window = "zoom";
|
||||
for-workspace-switch-in = "slide-down";
|
||||
for-workspace-switch-out = "zoom";
|
||||
for-transient-window = "slide-up";
|
||||
};
|
||||
|
||||
blur = false;
|
||||
blurExclude = [
|
||||
"window_type = 'dock'"
|
||||
"window_type = 'menu'"
|
||||
"class_g = 'firefox'"
|
||||
];
|
||||
|
||||
shadow-radius = 25;
|
||||
shadow-radius = 12;
|
||||
frame-opacity = 1.0;
|
||||
inactive-opacity-override = false;
|
||||
corner-radius = 15;
|
||||
corner-radius = 12;
|
||||
rounded-corners-exclude = [
|
||||
"window_type = 'desktop'"
|
||||
"window_type = 'tooltip'"
|
||||
|
|
|
|||
|
|
@ -12,68 +12,21 @@
|
|||
};
|
||||
"colors" = {
|
||||
background = "#000000";
|
||||
foreground = "#495eb8";
|
||||
blue = "#7aa2f7";
|
||||
alert = "#ad032e";
|
||||
deepblue = "#03339c";
|
||||
};
|
||||
"bar/left" = {
|
||||
width = "180px";
|
||||
offset.x = 10;
|
||||
modules.center = "xworkspaces";
|
||||
height = "20pt";
|
||||
radius = 6;
|
||||
fixed.center = false;
|
||||
dpi = 96;
|
||||
offset.y = 10;
|
||||
font = [ "Overpass Nerd Font:style=Regular:size=14;4" "Material Design Icons:style=Regular:size=16;4" ];
|
||||
background = "\${colors.background}";
|
||||
foreground = "\${colors.foreground}";
|
||||
line.size = "3pt";
|
||||
border = {
|
||||
size = "7pt";
|
||||
color = "\${colors.background}";
|
||||
radius = 7;
|
||||
};
|
||||
padding = {
|
||||
left = 0;
|
||||
right = 0;
|
||||
};
|
||||
cursor = {
|
||||
click = "pointer";
|
||||
scroll = "ns-resize";
|
||||
};
|
||||
enable.ipc = true;
|
||||
wm.restack = "bspwm";
|
||||
foreground = "#80a0ff";
|
||||
blue = "#74b2ff";
|
||||
alert = "#ff5189";
|
||||
deepblue = "#36c692";
|
||||
};
|
||||
"bar/middle" = {
|
||||
width = "130px";
|
||||
offset.x = 895;
|
||||
width = 100;
|
||||
offset.x = 910;
|
||||
modules.center = "date";
|
||||
height = "20pt";
|
||||
radius = 6;
|
||||
height = 20;
|
||||
fixed.center = false;
|
||||
dpi = 96;
|
||||
offset.y = 10;
|
||||
font = [ "Overpass Nerd Font:style=Regular:size=14;4" "Material Design Icons:style=Regular:size=16;4" ];
|
||||
font = [ "Overpass Nerd Font:style=Regular:size=12;5" ];
|
||||
background = "\${colors.background}";
|
||||
foreground = "\${colors.foreground}";
|
||||
line.size = "3pt";
|
||||
border = {
|
||||
size = "7pt";
|
||||
color = "\${colors.background}";
|
||||
radius = 7;
|
||||
};
|
||||
padding = {
|
||||
left = 0;
|
||||
right = 0;
|
||||
};
|
||||
cursor = {
|
||||
click = "pointer";
|
||||
scroll = "ns-resize";
|
||||
};
|
||||
enable.ipc = true;
|
||||
wm.restack = "bspwm";
|
||||
};
|
||||
"bar/right" = {
|
||||
width = "180px";
|
||||
|
|
@ -188,7 +141,7 @@
|
|||
interval = 1;
|
||||
date = {
|
||||
text = "\"%I:%M %p\"";
|
||||
alt = "\"%a, %B %d\"";
|
||||
alt = "\"%m/%d/%y\"";
|
||||
};
|
||||
label = {
|
||||
text = "\"%date%%{A}\"";
|
||||
|
|
|
|||
|
|
@ -7,28 +7,28 @@
|
|||
enable = true;
|
||||
enabledExtensions = with spicetify-nix.pkgs.extensions; [
|
||||
"adblock.js"
|
||||
"hidePodcasts.js"
|
||||
"shuffle+.js"
|
||||
"hidePodcasts.js"
|
||||
"shuffle+.js"
|
||||
];
|
||||
theme = spicetify-nix.pkgs.themes.Dribbblish;
|
||||
colorScheme = "custom";
|
||||
customColorScheme = {
|
||||
text = "7AA2F7";
|
||||
subtext = "F0F0F0";
|
||||
sidebar-text = "7AA2F7";
|
||||
main = "000000";
|
||||
sidebar = "000000";
|
||||
player = "000000";
|
||||
card = "000000";
|
||||
shadow = "03339c";
|
||||
selected-row = "797979";
|
||||
button = "31748f";
|
||||
button-active = "7AA2F7";
|
||||
button-disabled = "03339c";
|
||||
tab-active = "166632";
|
||||
notification = "1db954";
|
||||
notification-error = "eb6f92";
|
||||
misc = "FFFFFF";
|
||||
};
|
||||
theme = spicetify-nix.pkgs.themes.Dribbblish;
|
||||
colorScheme = "custom";
|
||||
customColorScheme = {
|
||||
text = "79dac8";
|
||||
subtext = "f8f8f8";
|
||||
sidebar-text = "79dac8";
|
||||
main = "000000";
|
||||
sidebar = "323437";
|
||||
player = "000000";
|
||||
card = "000000";
|
||||
shadow = "000000";
|
||||
selected-row = "7c8f8f";
|
||||
button = "74b2ff";
|
||||
button-active = "74b2ff";
|
||||
button-disabled = "555169";
|
||||
tab-active = "80a0ff";
|
||||
notification = "80a0ff";
|
||||
notification-error = "e2637f";
|
||||
misc = "282a36";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,16 +2,6 @@
|
|||
services.sxhkd = {
|
||||
enable = true;
|
||||
keybindings = {
|
||||
#terminal
|
||||
"super + Return" = "st";
|
||||
#application launcher
|
||||
"super + @space" = "rofi -show drun";
|
||||
#kill sxhkd
|
||||
"super + Escape" = "pkill -USR1 -x sxhkd";
|
||||
#restart bspwm
|
||||
"super + alt + {q,r}" = "bspc {quit,wm -r}";
|
||||
#kill current windows
|
||||
"alt + {F4, shift + F4}" = "bspc node -{c,k}";
|
||||
#media keybindings
|
||||
"XF86AudioPlay" = "playerctl play-pause";
|
||||
"XF86AudioPause" = "playerctl play-pause";
|
||||
|
|
@ -23,31 +13,9 @@
|
|||
"XF86AudioMute" = "amixer sset Master toggle ";
|
||||
"XF86MonBrightnessUp" = "brightnessctl s 20+";
|
||||
"XF86MonBrightnessDown" = "brightnessctl s 20-";
|
||||
#switch windows
|
||||
"alt + Tab" = "~/.config/rofi/window-switcher/window-switcher.sh";
|
||||
#screenshot stuff
|
||||
"Print" = "maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
||||
"super + Print" = "maim -s $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
||||
#stuff i'm not so sure about
|
||||
"super + m" = "bspc desktop -l next";
|
||||
"super + y" = "bspc node newest.marked.local -n newest.!automatic.local";
|
||||
"super + g" = "bspc node -s biggest.window";
|
||||
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
||||
"super + ctrl + {m,x,y,z}" = "bspc node -g {marked,locked,sticky,private}";
|
||||
"super + {_,shift + }{h,j,k,l}" = "bspc node -{f,s} {west,south,north,east}";
|
||||
"super + {p,b,comma,period}" = "bspc node -f @{parent,brother,first,second}";
|
||||
"super + {_,shift + }c" = "bspc node -f {next,prev}.local.!hidden.window";
|
||||
"super + bracket{left,right}" = "bspc desktop -f {prev,next}.local";
|
||||
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
||||
"super + {o,i}" = "bspc wm -h off; bspc node {older,newer} -f; bspc wm -h on";
|
||||
"super + {_,shift + }{1-9,0}" = "bspc {desktop -f,node -d} '^{1-9,10}'";
|
||||
"super + ctrl + {h,j,k,l}" = "bspc node -p {west,south,north,east}";
|
||||
"super + ctrl + {1-9}" = "bspc node -o 0.{1-9}";
|
||||
"super + ctrl + space" ="bspc node -p cancel";
|
||||
"super + ctrl + shift + space" = "bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel";
|
||||
"super + alt + {h,j,k,l}" = "bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}";
|
||||
"super + alt + shift + {h,j,k,l}" ="bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}";
|
||||
"super + {Left,Down,Up,Right}" = "bspc node -v {-20 0,0 20,0 -20,20 0}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue