diff options
| -rw-r--r-- | .bash_aliases | 1 | ||||
| -rw-r--r-- | .bashrc | 3 | ||||
| -rw-r--r-- | .config/picom/picom.conf | 31 | ||||
| -rw-r--r-- | .config/rofi/config.rasi | 78 | ||||
| -rw-r--r-- | .config/sxhkd/sxhkdrc | 5 | ||||
| -rw-r--r-- | .config/terminator/config | 27 | ||||
| -rw-r--r-- | .config/tofi/config | 24 | ||||
| -rw-r--r-- | .config/tofi/otherconfig | 314 | ||||
| -rw-r--r-- | .config/volumeicon/volumeicon | 28 | ||||
| -rwxr-xr-x | .dwm/bar.sh | 29 | ||||
| -rwxr-xr-x | .dwm/power.sh | 12 | ||||
| -rwxr-xr-x | .local/bin/tmux-sessionizer | 15 | ||||
| -rw-r--r-- | .sessionizer.sh | 25 | ||||
| -rw-r--r-- | .tmux.conf | 11 | ||||
| -rw-r--r-- | 30-touchpad.conf | 6 | ||||
| -rw-r--r-- | DWM.desktop | 5 | ||||
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | config/alacritty/alacritty.toml | 11 | ||||
| -rw-r--r-- | config/dunst/dunstrc (renamed from .config/dunst/dunstrc) | 12 | ||||
| -rw-r--r-- | config/fuzzel/fuzzel.ini | 16 | ||||
| -rw-r--r-- | config/hypr/hyprland.conf (renamed from .config/hypr/hyprland.conf) | 10 | ||||
| -rw-r--r-- | config/hypr/hyprpaper.conf (renamed from .config/hypr/hyprpaper.conf) | 1 | ||||
| -rw-r--r-- | config/nvim/init.lua (renamed from .config/nvim/init.lua) | 5 | ||||
| -rw-r--r-- | config/nvim/lua/compile.lua (renamed from .config/nvim/lua/compile.lua) | 0 | ||||
| -rw-r--r-- | config/waybar/config (renamed from .config/waybar/config) | 3 | ||||
| -rw-r--r-- | config/waybar/style.css (renamed from .config/waybar/style.css) | 0 | ||||
| -rw-r--r--[-rwxr-xr-x] | configuration.nix | 181 | ||||
| -rw-r--r-- | hardware-configuration.nix | 38 | ||||
| -rw-r--r-- | move_to_unstable.sh | 7 | ||||
| -rw-r--r-- | setup_debian.sh | 98 | ||||
| -rw-r--r-- | sources.list | 2 |
31 files changed, 227 insertions, 772 deletions
diff --git a/.bash_aliases b/.bash_aliases deleted file mode 100644 index bd6affd..0000000 --- a/.bash_aliases +++ /dev/null @@ -1 +0,0 @@ -alias copy="xclip -sel clip" diff --git a/.bashrc b/.bashrc deleted file mode 100644 index e03f566..0000000 --- a/.bashrc +++ /dev/null @@ -1,3 +0,0 @@ -source $HOME/.sessionizer.sh -bind '"\C-f": "sessionizer\n"' -bind '"\C-F": "sessionizer -cd\n"' diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf deleted file mode 100644 index c8f7b71..0000000 --- a/.config/picom/picom.conf +++ /dev/null @@ -1,31 +0,0 @@ -backend = "glx"; -glx-no-stencil = true; -glx-copy-from-front = false; - -# Opacity -active-opacity = 1; -inactive-opacity = 1; -frame-opacity = 1; -inactive-opacity-override = false; - -# Other -mark-wmwin-focused = true; -mark-ovredir-focused = true; -detect-rounded-corners = true; -detect-client-opacity = true; -vsync = true; -dbe = false; -unredir-if-possible = false; -focus-exclude = [ ]; -detect-transient = true; -detect-client-leader = true; - -# Window type settings -wintypes: -{ - dock = { - shadow = false; - }; -}; - -xrender-sync-fence = true; diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi deleted file mode 100644 index 58fb98a..0000000 --- a/.config/rofi/config.rasi +++ /dev/null @@ -1,78 +0,0 @@ -configuration { - display-drun: "Applications:"; - display-window: "Windows:"; - drun-display-format: "{name}"; - font: "UbuntuMono Nerd Font Medium 10"; - modi: "window,run,drun"; -} - -@theme "/dev/null" - -* { - bg: #131417; - bg-alt: #1e1f26; - - fg: #d3d7f2; - fg-alt: #787c99; - - background-color: @bg; - - border: 0; - margin: 0; - padding: 0; - spacing: 0; -} - -window { - width: 30%; -} - -element { - padding: 8 0; - text-color: @fg-alt; -} - -element selected { - text-color: @fg; -} - -element-text { - text-color: inherit; - vertical-align: 0.5; -} - -element-icon { - size: 14; - padding: 0 10 0 0; -} - -entry { - background-color: @bg-alt; - padding: 12; - text-color: @fg; -} - -inputbar { - children: [prompt, entry]; -} - -listview { - padding: 8 12; - background-color: @bg; - columns: 1; - lines: 8; -} - -mainbox { - background-color: @bg; - children: [inputbar, listview]; -} - -prompt { - background-color: @bg-alt; - enabled: true; - padding: 12 0 0 12; - text-color: @fg; -} - -/* vim: ft=sass diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc deleted file mode 100644 index 2f47207..0000000 --- a/.config/sxhkd/sxhkdrc +++ /dev/null @@ -1,5 +0,0 @@ -super + shift + v - /opt/ipman.py paste - -super + shift + s - /opt/ipman.py setip diff --git a/.config/terminator/config b/.config/terminator/config deleted file mode 100644 index 89de990..0000000 --- a/.config/terminator/config +++ /dev/null @@ -1,27 +0,0 @@ -[global_config] - focus = mouse -[keybindings] - split_horiz = <Shift><Alt>Down - split_vert = <Shift><Alt>Right - close_term = <Alt>c -[profiles] - [[default]] - background_darkness = 0.8 - background_type = transparent - cursor_shape = ibeam - cursor_color = "#aaaaaa" - font = UbuntuMono Nerd Font Mono 10 - show_titlebar = False - scrollbar_position = hidden - scrollback_infinite = True - use_system_font = False - use_theme_colors = True -[layouts] - [[default]] - [[[window0]]] - type = Window - parent = "" - [[[child1]]] - type = Terminal - parent = window0 -[plugins] diff --git a/.config/tofi/config b/.config/tofi/config deleted file mode 100644 index 3ea7c54..0000000 --- a/.config/tofi/config +++ /dev/null @@ -1,24 +0,0 @@ -font = UbuntuMono Nerd Font -font-size = 16 - -background-color = #000D -text-color = #67676b -selection-color = #f2f0fa -prompt-color = #f2f0fa -input-color = #f2f0fa - -prompt-text = "Applications > " -num-results = 10 -result-spacing = 25 - -width = 100% -height = 100% - -border-width = 0 -outline-width = 0 - -padding-left = 35% -padding-top = 30% - -drun-launch = true -matching-algorithm = fuzzy diff --git a/.config/tofi/otherconfig b/.config/tofi/otherconfig deleted file mode 100644 index 2f95e53..0000000 --- a/.config/tofi/otherconfig +++ /dev/null @@ -1,314 +0,0 @@ -# -### Fonts -# - # Font to use, either a path to a font file or a name. - # - # If a path is given, tofi will startup much quicker, but any - # characters not in the chosen font will fail to render. - # - # Otherwise, fonts are interpreted in Pango format. - font = "Sans" - - # Point size of text. - font-size = 24 - - # Comma separated list of OpenType font feature settings to apply, - # if supported by the chosen font. The format is similar to the CSS - # "font-feature-settings" property. - # - # Examples: - # - # font-features = "smcp, c2sc" (all small caps) - # font-features = "liga 0" (disable ligatures) - font-features = "" - - # Comma separated list of OpenType font variation settings to apply - # to variable fonts. The format is similar to the CSS - # "font-variation-settings" property. - # - # Examples: - # - # font-variations = "wght 900" (Extra bold) - # font-variations = "wdth 25, slnt -10" (Narrow and slanted) - font-variations = "" - - # Perform font hinting. Only applies when a path to a font has been - # specified via `font`. Disabling font hinting speeds up text - # rendering appreciably, but will likely look poor at small font pixel - # sizes. - hint-font = true - -# -### Text theming -# - # Default text color - # - # All text defaults to this color if not otherwise specified. - text-color = #FFFFFF - - # All pieces of text have the same theming attributes available: - # - # *-color - # Foreground color - # - # *-background - # Background color - # - # *-background-padding - # Background padding in pixels (comma-delimited, CSS-style list). - # See "DIRECTIONAL VALUES" under `man 5 tofi` for more info. - # - # *-background-corner-radius - # Radius of background box corners in pixels - - # Prompt text theme - # prompt-color = #FFFFFF - prompt-background = #00000000 - prompt-background-padding = 0 - prompt-background-corner-radius = 0 - - # Placeholder text theme - placeholder-color = #FFFFFFA8 - placeholder-background = #00000000 - placeholder-background-padding = 0 - placeholder-background-corner-radius = 0 - - # Input text theme - # input-color = #FFFFFF - input-background = #00000000 - input-background-padding = 0 - input-background-corner-radius = 0 - - # Default result text theme - # default-result-color = #FFFFFF - default-result-background = #00000000 - default-result-background-padding = 0 - default-result-background-corner-radius = 0 - - # Alternate (even-numbered) result text theme - # - # If unspecified, these all default to the corresponding - # default-result-* attribute. - # - # alternate-result-color = #FFFFFF - # alternate-result-background = #00000000 - # alternate-result-background-padding = 0 - # alternate-result-background-corner-radius = 0 - - # Selection text - selection-color = #F92672 - selection-background = #00000000 - selection-background-padding = 0 - selection-background-corner-radius = 0 - - # Matching portion of selection text - selection-match-color = #00000000 - - -# -### Text cursor theme -# - # Style of the optional text cursor. - # - # Supported values: bar, block, underscore - text-cursor-style = bar - - # Color of the text cursor - # - # If unspecified, defaults to the same as input-color - # text-cursor-color = #FFFFFF - - # Color of text behind the text cursor when text-cursor-style = block - # - # If unspecified, defaults to the same as background-color - # text-cursor-background = #000000 - - # Corner radius of the text cursor - text-cursor-corner-radius = 0 - - # Thickness of the bar and underscore text cursors. - # - # If unspecified, defaults to a font-dependent value when - # text-cursor-style = underscore, or to 2 otherwise. - # text-cursor-thickness = 2 - -# -### Text layout -# - # Prompt to display. - prompt-text = "run: " - - # Extra horizontal padding between prompt and input. - prompt-padding = 0 - - # Placeholder input text. - placeholder-text = "" - - # Maximum number of results to display. - # If 0, tofi will draw as many results as it can fit in the window. - num-results = 0 - - # Spacing between results in pixels. Can be negative. - result-spacing = 0 - - # List results horizontally. - horizontal = false - - # Minimum width of input in horizontal mode. - min-input-width = 0 - -# -### Window theming -# - # Width and height of the window. Can be pixels or a percentage. - width = 1280 - height = 720 - - # Window background color - background-color = #1B1D1E - - # Width of the border outlines in pixels. - outline-width = 4 - - # Border outline color - outline-color = #080800 - - # Width of the border in pixels. - border-width = 12 - - # Border color - border-color = #F92672 - - # Radius of window corners in pixels. - corner-radius = 0 - - # Padding between borders and text. Can be pixels or a percentage. - padding-top = 8 - padding-bottom = 8 - padding-left = 8 - padding-right = 8 - - # Whether to clip text drawing to be within the specified padding. This - # is mostly important for allowing text to be inset from the border, - # while still allowing text backgrounds to reach right to the edge. - clip-to-padding = true - - # Whether to scale the window by the output's scale factor. - scale = true - -# -### Window positioning -# - # The name of the output to appear on. An empty string will use the - # default output chosen by the compositor. - output = "" - - # Location on screen to anchor the window to. - # - # Supported values: top-left, top, top-right, right, bottom-right, - # bottom, bottom-left, left, center. - anchor = center - - # Set the size of the exclusive zone. - # - # A value of -1 means ignore exclusive zones completely. - # A value of 0 will move tofi out of the way of other windows' zones. - # A value greater than 0 will set that much space as an exclusive zone. - # - # Values greater than 0 are only meaningful when tofi is anchored to a - # single edge. - exclusive-zone = -1 - - # Window offset from edge of screen. Only has an effect when anchored - # to the relevant edge. Can be pixels or a percentage. - margin-top = 0 - margin-bottom = 0 - margin-left = 0 - margin-right = 0 - -# -### Behaviour -# - # Hide the mouse cursor. - hide-cursor = false - - # Show a text cursor in the input field. - text-cursor = false - - # Sort results by number of usages in run and drun modes. - history = true - - # Specify an alternate file to read and store history information - # from / to. This shouldn't normally be needed, and is intended to - # facilitate the creation of custom modes. - # history-file = /path/to/histfile - - # Select the matching algorithm used. If normal, substring matching is - # used, weighted to favour matches closer to the beginning of the - # string. If prefix, only substrings at the beginning of the string are - # matched. If fuzzy, searching is performed via a simple fuzzy matching - # algorithm. - # - # Supported values: normal, prefix, fuzzy - matching-algorithm = normal - - # If true, require a match to allow a selection to be made. If false, - # making a selection with no matches will print input to stdout. - # In drun mode, this is always true. - require-match = true - - # If true, automatically accept a result if it is the only one - # remaining. If there's only one result on startup, window creation is - # skipped altogether. - auto-accept-single = false - - # If true, typed input will be hidden, and what is displayed (if - # anything) is determined by the hidden-character option. - hide-input = false - - # Replace displayed input characters with a character. If the empty - # string is given, input will be completely hidden. - # This option only has an effect when hide-input is set to true. - hidden-character = "*" - - # If true, use physical keys for shortcuts, regardless of the current - # keyboard layout. If false, use the current layout's keys. - physical-keybindings = true - - # Instead of printing the selected entry, print the 1-based index of - # the selection. This option has no effect in run or drun mode. If - # require-match is set to false, non-matching input will still result - # in the input being printed. - print-index = false - - # If true, directly launch applications on selection when in drun mode. - # Otherwise, just print the command line to stdout. - drun-launch = false - - # The terminal to run terminal programs in when in drun mode. - # This option has no effect if drun-launch is set to true. - # Defaults to the value of the TERMINAL environment variable. - # terminal = foot - - # Delay keyboard initialisation until after the first draw to screen. - # This option is experimental, and will cause tofi to miss keypresses - # for a short time after launch. The only reason to use this option is - # performance on slow systems. - late-keyboard-init = false - - # If true, allow multiple simultaneous processes. - # If false, create a lock file on startup to prevent multiple instances - # from running simultaneously. - multi-instance = false - - # Assume input is plain ASCII, and disable some Unicode handling - # functions. This is faster, but means e.g. a search for "e" will not - # match "é". - ascii-input = false - -# -### Inclusion -# - # Configs can be split between multiple files, and then included - # within each other. - # include = /path/to/config diff --git a/.config/volumeicon/volumeicon b/.config/volumeicon/volumeicon deleted file mode 100644 index 72dddf1..0000000 --- a/.config/volumeicon/volumeicon +++ /dev/null @@ -1,28 +0,0 @@ -[Alsa] -card=default -channel=Master -logarithmic_scale=false - -[Notification] -show_notification=true -notification_type=0 - -[StatusIcon] -stepsize=5 -onclick=pavucontrol -theme=White Gnome -use_panel_specific_icons=false -reverse_scroll_direction=false -lmb_slider=false -mmb_mute=false -use_horizontal_slider=false -show_sound_level=false -use_transparent_background=false - -[Hotkeys] -up_enabled=true -down_enabled=true -mute_enabled=true -up=XF86AudioRaiseVolume -down=XF86AudioLowerVolume -mute=XF86AudioMute diff --git a/.dwm/bar.sh b/.dwm/bar.sh deleted file mode 100755 index 966afe8..0000000 --- a/.dwm/bar.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -battery() { - capacity="$(cat /sys/class/power_supply/BAT1/capacity)" - case "$(cat /sys/class/power_supply/BAT1/status)" in - Charging) printf " $capacity +";; - Discharging) printf " $capacity -";; - Full) printf " $capacity";; - esac -} - -wlan() { - case "$(cat /sys/class/net/wl*/operstate 2>/dev/null)" in - up) echo " $(iwgetid -r)";; - down) printf " Disconnected";; - esac -} - -clock() { - printf " $(date '+%H:%M')" -} - -user() { - printf "$(whoami)" -} - -while(true) do - xsetroot -name "| $(battery) | $(wlan) | $(clock) | $(user) " && sleep 2 -done diff --git a/.dwm/power.sh b/.dwm/power.sh deleted file mode 100755 index e5c5ad2..0000000 --- a/.dwm/power.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -chosen=$(printf " Power Off\n Restart\n Suspend\n Hibernate\n Log Out\n Lock" | rofi -dmenu -i -p "Choice:") - -case "$chosen" in - " Power Off") poweroff ;; - " Restart") reboot ;; - " Suspend") systemctl suspend-then-hibernate ;; - " Hibernate") systemctl hibernate ;; - " Log Out") killall dwm ;; - " Lock") betterlockscreen -l ;; - *) exit 1 ;; -esac diff --git a/.local/bin/tmux-sessionizer b/.local/bin/tmux-sessionizer deleted file mode 100755 index 8f1c263..0000000 --- a/.local/bin/tmux-sessionizer +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -DIR=$(fdfind --type d --strip-cwd-prefix -L -H | fzf) -SESSION_NAME="$DIR_$(date +%M%S)" - -if [ -n "$DIR" ] -then - tmux new-session -d -c "$DIR" -s "$SESSION_NAME" - if [ -n "$TMUX" ] - then - tmux switch -t "$SESSION_NAME" - else - tmux attach -t "$SESSION_NAME" - fi -fi diff --git a/.sessionizer.sh b/.sessionizer.sh deleted file mode 100644 index 79dde27..0000000 --- a/.sessionizer.sh +++ /dev/null @@ -1,25 +0,0 @@ -sessionizer() { - DIR=$(fdfind . $HOME --type d -L -H | fzf) - SESSION_NAME="$DIR_$(date +%M%S)" - - if [ -n "$DIR" ] - then - if [ "$1" == "-cd" ] - then - cd $DIR - return - fi - tmux new-session -d -c "$DIR" -s "$SESSION_NAME" - if [ -n "$TMUX" ] - then - tmux switch -t "$SESSION_NAME" - else - tmux attach -t "$SESSION_NAME" - fi - fi -} - -if [[ $- != *i* ]] -then - sessionizer -fi @@ -1,4 +1,4 @@ -set -sg escape-time 20 +set -sg escape-time 0 set -g history-limit 10000 set -g status-interval 5 @@ -40,14 +40,13 @@ bind-key c new-window -c "#{pane_current_path}" unbind f bind f split-pane "bash ~/.sessionizer.sh" -bg="#698DDA" +bg="#272727" set -g status-position "bottom" set -g status-style bg=default,fg=default -set -g status-justify "centre" -set -g status-left " #[bg=${bg},fg=#ffffff] tmux " -set -g status-right "compromyse " +set -g status-left " λ " +set -g status-right "" set -g window-status-format " #I:#W " -set -g window-status-current-format "#[bg=${bg},fg=#000000] #I:#W " +set -g window-status-current-format "#[bg=${bg},fg=#f2f0fa] #I:#W " run '~/.tmux/plugins/tpm/tpm' diff --git a/30-touchpad.conf b/30-touchpad.conf deleted file mode 100644 index 86ae81c..0000000 --- a/30-touchpad.conf +++ /dev/null @@ -1,6 +0,0 @@ -Section "InputClass" - Identifier "touchpad catchall" - Driver "libinput" - Option "Tapping" "on" - Option "DisableWhileTyping" "on" -EndSection diff --git a/DWM.desktop b/DWM.desktop deleted file mode 100644 index 68f6cd5..0000000 --- a/DWM.desktop +++ /dev/null @@ -1,5 +0,0 @@ -[Desktop Entry] -Name=Dynamic Window Manager -Comment=This session logs you into DWM -Exec=dwm -Type=XSession diff --git a/README.md b/README.md deleted file mode 100644 index 27ef622..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# dotfiles
\ No newline at end of file diff --git a/config/alacritty/alacritty.toml b/config/alacritty/alacritty.toml new file mode 100644 index 0000000..3c39090 --- /dev/null +++ b/config/alacritty/alacritty.toml @@ -0,0 +1,11 @@ +[window] +dynamic_title = true + +[font] +normal = { family = "UbuntuMono Nerd Font Mono", style = "Regular" } +bold = { family = "UbuntuMono Nerd Font Mono", style = "Bold" } +italic = { family = "UbuntuMono Nerd Font Mono", style = "Italic" } +bold_italic = { family = "UbuntuMono Nerd Font Mono", style = "Bold Italic" } + +[cursor] +style = { shape = "Beam" } diff --git a/.config/dunst/dunstrc b/config/dunst/dunstrc index 52973b6..902ba1c 100644 --- a/.config/dunst/dunstrc +++ b/config/dunst/dunstrc @@ -1,11 +1,9 @@ [global] - monitor = 0 + monitor = 1 follow = none - geometry = "300x5-30+20" indicate_hidden = yes shrink = no transparency = 0 - notification_height = 0 separator_height = 2 padding = 8 horizontal_padding = 8 @@ -38,8 +36,6 @@ always_run_script = true title = Dunst class = Dunst - startup_notification = false - verbosity = mesg corner_radius = 0 ignore_dbusclose = false force_xinerama = false @@ -49,12 +45,6 @@ [experimental] per_monitor_dpi = false -[shortcuts] - close = ctrl+space - close_all = ctrl+shift+space - history = ctrl+grave - context = ctrl+shift+period - [urgency_low] background = "#131417" foreground = "#ffffff" diff --git a/config/fuzzel/fuzzel.ini b/config/fuzzel/fuzzel.ini new file mode 100644 index 0000000..42f47df --- /dev/null +++ b/config/fuzzel/fuzzel.ini @@ -0,0 +1,16 @@ +width=50 +font=UbuntuMono Nerd Font:size=8 +terminal=alacritty -e +prompt="> " +layer=overlay +line-height=16 +icons-enabled=no + +[colors] +background=272727ff +selection-text=272727ff +selection-match=272727ff +selection=f2f0faff +text=f2f0faff +match=f2f0faff +border=f2f0faff diff --git a/.config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 22d71f3..075dbec 100644 --- a/.config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -1,6 +1,7 @@ -monitor=,1920x1080@60,auto,1 +monitor=eDP-1,1920x1080@60,0x0,1 +monitor=HDMI-A-1,2560x1440@60,-2560x-350,1 -exec-once = waybar & hyprpaper & dunst & # /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec-once = waybar & hyprpaper & dunst & /nix/store/$(ls -la /nix/store | grep 'polkit-gnome' | grep 4096 | awk '{print $9}' | sed -n '$p')/libexec/polkit-gnome-authentication-agent-1 & blueman-applet & nm-applet xwayland { force_zero_scaling = true @@ -59,13 +60,14 @@ gestures { workspace_swipe = true } -bind = SUPER SHIFT, RETURN, exec, terminator +bind = SUPER SHIFT, RETURN, exec, alacritty bind = SUPER SHIFT, Q, killactive bind = SUPER SHIFT, B, exit bind = SUPER, E, exec, dolphin bind = SUPER SHIFT, F, togglefloating bind = SUPER, F, fullscreen, 1 -bind = SUPER, SPACE, exec, pkill tofi || tofi-drun +bind = SUPER, SPACE, exec, pkill fuzzel || fuzzel +bind = SUPER, X, exec, waylock bind = SUPER, RETURN, layoutmsg, swapwithmaster master bind = SUPER SHIFT, J, layoutmsg, swapnext diff --git a/.config/hypr/hyprpaper.conf b/config/hypr/hyprpaper.conf index 2af46e3..8204052 100644 --- a/.config/hypr/hyprpaper.conf +++ b/config/hypr/hyprpaper.conf @@ -1,2 +1,3 @@ preload = /home/compromyse/Pictures/wallpaper.jpg wallpaper = ,/home/compromyse/Pictures/wallpaper.jpg +splash = false diff --git a/.config/nvim/init.lua b/config/nvim/init.lua index ffb09a8..f3873b6 100644 --- a/.config/nvim/init.lua +++ b/config/nvim/init.lua @@ -185,6 +185,11 @@ vim.keymap.set('t', '<A-y>', '<cmd>ToggleTerm<cr>', { noremap = true }) vim.keymap.set('n', '<A-n>', '<cmd>bnext<cr>', { noremap = true }) vim.keymap.set('n', '<A-p>', '<cmd>bprev<cr>', { noremap = true }) +vim.keymap.set('n', '<C-h>', '<cmd>TmuxNavigateLeft<cr>', { noremap = true }) +vim.keymap.set('n', '<C-j>', '<cmd>TmuxNavigateDown<cr>', { noremap = true }) +vim.keymap.set('n', '<C-k>', '<cmd>TmuxNavigateUp<cr>', { noremap = true }) +vim.keymap.set('n', '<C-l>', '<cmd>TmuxNavigateRight<cr>', { noremap = true }) + vim.keymap.set('n', '<A-a>', '<cmd>lua oil.toggle_float()<cr>', { noremap = true }) -- Splitting The Window diff --git a/.config/nvim/lua/compile.lua b/config/nvim/lua/compile.lua index f529b90..f529b90 100644 --- a/.config/nvim/lua/compile.lua +++ b/config/nvim/lua/compile.lua diff --git a/.config/waybar/config b/config/waybar/config index 68f25d7..24cb4f0 100644 --- a/.config/waybar/config +++ b/config/waybar/config @@ -1,5 +1,6 @@ { "layer": "top", + "output": "eDP-1", "height": 40, "modules-left": ["custom/launcher", "hyprland/workspaces", "hyprland/window"], "modules-right": ["tray", "cpu", "backlight", "battery", "clock"], @@ -25,7 +26,7 @@ }, "hyprland/window": { "format": "> {title}", - "separate-outputs": true + "separate-outputs": false }, "tray": { "spacing": 10 diff --git a/.config/waybar/style.css b/config/waybar/style.css index a42db21..a42db21 100644 --- a/.config/waybar/style.css +++ b/config/waybar/style.css diff --git a/configuration.nix b/configuration.nix index c4940ef..691a311 100755..100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,10 +1,12 @@ { config, pkgs, ... }: { - imports = - [ - ./hardware-configuration.nix - ]; + imports = [ + ./hardware-configuration.nix + <home-manager/nixos> + ]; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; @@ -13,6 +15,11 @@ networking.hostName = "OwO"; networking.networkmanager.enable = true; + fileSystems."/data" = { + device = "/dev/sda"; + fsType = "ext4"; + }; + time.timeZone = "Asia/Kolkata"; nixpkgs.config.allowUnfree = true; @@ -55,6 +62,10 @@ }; }; + services.logind.extraConfig = '' + HandlePowerKey=ignore + ''; + systemd.services.greetd.serviceConfig = { Type = "idle"; StandardInput = "tty"; @@ -65,55 +76,146 @@ TTYVTDisallocate = true; }; - /* nixpkgs.overlays = [ - (self: super: { - waybar = super.waybar.overrideAttrs (oldAttrs: { - src = super.fetchFromGitHub { - owner = "Alexays"; - repo = "waybar"; - rev = "e46f66b4687eb807b6fc9c6714e52c52d0885926"; - hash = "sha256-bNzLLkkhH1MZmBneP3PH3xkED0hDWXyiaMqNWF2ilII="; - }; - }); - }) - ]; */ + environment.etc."inputrc".text = pkgs.lib.mkForce ( + builtins.readFile <nixpkgs/nixos/modules/programs/bash/inputrc> + '' + set completion-ignore-case on + '' + ); users.users.compromyse = { isNormalUser = true; extraGroups = [ "wheel" "storage" "libvirtd" ]; - packages = with pkgs; [ - neofetch - ]; }; - environment.systemPackages = with pkgs; [ - vim - wget - git + home-manager.useUserPackages = true; + home-manager.useGlobalPkgs = true; - polkit_gnome + home-manager.users.compromyse = { pkgs, ... }: { + home.packages = with pkgs; [ + wget + + tmux + fzf + fd + ripgrep + + cinnamon.nemo + mate.eom + + spotify + firefox + + pavucontrol + blueman + brillo + ]; + + programs.bash = { + enable = true; + initExtra= '' + export PS1="\[\e[38;5;243m\]\h \[\e[38;5;254m\]\w \[\033[0m\]> " + + sessionizer() { + DIR=$(fd . $HOME --type d -L -H | fzf) + SESSION_NAME="$DIR_$(date +%M%S)" + + if [ -n "$DIR" ] + then + if [ "$1" == "-cd" ] + then + cd $DIR + return + fi + tmux new-session -d -c "$DIR" -s "$SESSION_NAME" + if [ -n "$TMUX" ] + then + tmux switch -t "$SESSION_NAME" + else + tmux attach -t "$SESSION_NAME" + fi + fi + } + + if [[ $- != *i* ]] + then + sessionizer + fi + + bind '"\C-f": "sessionizer\n"' + bind '"\C-F": "sessionizer -cd\n"' + ''; + }; + + programs.git = { + enable = true; + userName = "Raghuram Subramani"; + userEmail = "raghus2247@gmail.com"; + }; + + programs.neovim = { + enable = true; + defaultEditor = true; + viAlias = true; + vimAlias = true; + vimdiffAlias = true; + }; + + + programs.alacritty = { + enable = true; + }; + + home.file = { + ".tmux.conf".source = ./.tmux.conf; + ".fdignore".source = ./.fdignore; + ".config" = { + source = ./config; + recursive = true; + }; + }; + + home.pointerCursor = { + gtk.enable = true; + package = pkgs.bibata-cursors; + name = "Bibata-Modern-Classic"; + size = 16; + }; + + gtk = { + enable = true; + + theme = { name = "adw-gtk3-dark"; package = pkgs.adw-gtk3; }; + iconTheme = { name = "Papirus-Light"; package = pkgs.papirus-icon-theme; }; + + font = { name = "UbuntuMono Nerd Font"; }; + }; + + qt = { + enable = true; + platformTheme = "gtk"; + style.name = "adwaita-dark"; + }; + + home.stateVersion = "23.11"; + programs.home-manager.enable = true; + }; + environment.systemPackages = with pkgs; [ waybar + tofi fuzzel dunst hyprpaper - greetd.tuigreet - greetd.greetd - terminator - firefox - spotify - virt-manager + networkmanagerapplet - pavucontrol - blueman + greetd.tuigreet + greetd.greetd + polkit_gnome + waylock libnotify libappindicator - - materia-theme - papirus-icon-theme - capitaine-cursors ]; fonts.packages = with pkgs; [ @@ -128,9 +230,10 @@ }; security.polkit.enable = true; + security.pam.services.waylock.text = '' + auth include login + ''; - system.copySystemConfiguration = true; - - system.stateVersion = "unstable"; + system.stateVersion = "23.11"; } diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..4618943 --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,38 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/347f3061-af46-40c7-aae3-fd4546cebb24"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/03DC-FCFF"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp3s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/move_to_unstable.sh b/move_to_unstable.sh deleted file mode 100644 index dc48868..0000000 --- a/move_to_unstable.sh +++ /dev/null @@ -1,7 +0,0 @@ -# Install Debian Unstable -sudo cp sources.list /etc/apt/sources.list -sudo apt-get update -sudo apt-get -y full-upgrade -sudo apt-get -y dist-upgrade - -echo "Reboot To Finish.." diff --git a/setup_debian.sh b/setup_debian.sh deleted file mode 100644 index 33a1933..0000000 --- a/setup_debian.sh +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/bash - -CURRENT_DIR=$(pwd) -TEMP_DIR=$CURRENT_DIR/temp -rm -rf $TEMP_DIR -mkdir $TEMP_DIR - -# Warning To Install Debian Unstable -echo "Please run \"move_to_unstable.sh\" before this." -read -p "Press enter to continue..." - -# Add `bash_aliases` -cp .bash_aliases $HOME - -# Install Dependancies -sudo apt-get -y install git curl wget build-essential unzip autoconf autotools-dev libpam0g-dev libxcomposite-dev -sudo apt-get -y install libxft-dev libx11-dev libxinerama-dev libpam0g-dev libxcb1-dev xorg libpam0g-dev libxmu-dev -sudo apt-get -y install fonts-droid-fallback fonts-font-awesome j4-dmenu-desktop mate-polkit feh picom dunst network-manager-gnome volumeicon-alsa blueman xss-lock -sudo apt-get -y install lxappearance materia-gtk-theme papirus-icon-theme breeze-cursor-theme - -# Change `/opt` Permissions -sudo chown $USER:$USER -R /opt - -# Go To `/opt` And Clone Repositories -cd /opt -git clone https://github.com/compromyse/dwm - -# Install `DWM` -cd /opt/dwm -make -sudo make install -make clean - -# Install `ly` -cd /opt -git clone --recurse-submodules https://github.com/fairyglade/ly -cd /opt/ly -make -sudo make install -sudo make installsystemd -sudo systemctl enable ly.service - -# Install `xsecurelock` -cd /opt -git clone https://github.com/google/xsecurelock -cd xsecurelock -sh autogen.sh -echo "Enter a PAM service name (in /etc/pam.d): " -read choice -./configure --with-pam-service-name=$choice -make -sudo make install -make clean - -# Add `DWM.desktop` -sudo mkdir /usr/share/xsessions -cd $CURRENT_DIR -sudo cp DWM.desktop /usr/share/xsessions - -# Install `WMName` -cd /opt -git clone https://git.suckless.org/wmname -cd /opt/wmname -make -sudo make install -make clean - -# Add Dotfiles -cd $CURRENT_DIR/.config -cp -r * $HOME/.config -cd $CURRENT_DIR -cp -r .dwm $HOME - -# Install `packer.nvim` -git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim - -# Install Font -mkdir $HOME/.fonts -cd $TEMP_DIR -wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/UbuntuMono.zip -unzip UbuntuMono.zip -mv *.ttf $HOME/.fonts -cd $CURRENT_DIR - -# Install Programs -sudo apt-get install -y terminator nemo - -# Make `bash` Case Insensitive -echo 'set completion-ignore-case On' | sudo tee -a /etc/inputrc - -# Make systemd ignore power key -echo "HandlePowerKey=ignore" | sudo tee -a /etc/systemd/logind.conf - -# Copy touchpad configuration -sudo cp 30-touchpad.conf /etc/X11/xorg.conf.d/30-touchpad.conf - -# Remove The Temporary Directory -rm -rf $TEMP_DIR diff --git a/sources.list b/sources.list deleted file mode 100644 index 52cf4d9..0000000 --- a/sources.list +++ /dev/null @@ -1,2 +0,0 @@ -# Unstable Repository -deb http://deb.debian.org/debian/ sid main non-free contrib |
