aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-08-06 09:08:46 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-08-06 09:08:46 +0530
commit855324577e2266a9cd03fb9662aa82645080a1c5 (patch)
tree92b27943a99a17a09ccda7be6e7b5cf9c8dbfcd1
parent91a5f9790cfd4a98ee940633694fb512ecf24942 (diff)
rofi!
-rw-r--r--.xinitrc7
-rw-r--r--home-manager/home.nix2
-rw-r--r--i3/config26
-rw-r--r--nixos/desktop-environment.nix6
-rw-r--r--rofi/config.rasi133
5 files changed, 165 insertions, 9 deletions
diff --git a/.xinitrc b/.xinitrc
new file mode 100644
index 0000000..ef072be
--- /dev/null
+++ b/.xinitrc
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+xmodmap -e "pointer = 3 2 1"
+dunst &
+nitrogen --restore &
+
+exec i3
diff --git a/home-manager/home.nix b/home-manager/home.nix
index b65a59f..44f5a3d 100644
--- a/home-manager/home.nix
+++ b/home-manager/home.nix
@@ -22,12 +22,14 @@ let
confFiles = linkConfFiles [
"starship.toml"
+ ".xinitrc"
];
confDirs = linkConfDirs [
"fortune"
"lxqt"
"i3"
+ "rofi"
"nvim"
"kitty"
"tmux"
diff --git a/i3/config b/i3/config
index dc633fc..7a158fa 100644
--- a/i3/config
+++ b/i3/config
@@ -16,7 +16,8 @@ tiling_drag modifier titlebar
bindsym $mod+t exec kitty
bindsym $mod+q kill
-bindsym $mod+d exec --no-startup-id dmenu_run
+bindsym $mod+r exec --no-startup-id rofi -show drun
+bindsym $mod+Shift+r exec --no-startup-id rofi -show window
bindsym $mod+Left focus left
bindsym $mod+Down focus down
@@ -101,11 +102,24 @@ mode "resize" {
bindsym $mod+r mode "default"
}
-bindsym $mod+r mode "resize"
-
-exec xrandr --auto
-exec --no-startup-id 'xmodmap -e "pointer = 3 2 1"'
-
bar {
status_command i3status
}
+
+exec --no-startup-id xrandr --auto
+
+set $bg #282828
+set $red #cc241d
+set $green #98971a
+set $yellow #d79921
+set $blue #458588
+set $purple #b16286
+set $aqua #689d68
+set $gray #a89984
+set $darkgray #1d2021
+
+# class border|backgr|text|indicator|child_border
+client.focused $green $green $darkgray $purple $darkgray
+client.focused_inactive $darkgray $darkgray $yellow $purple $darkgray
+client.unfocused $darkgray $darkgray $yellow $purple $darkgray
+client.urgent $red $red $white $red $red
diff --git a/nixos/desktop-environment.nix b/nixos/desktop-environment.nix
index bde2730..3fe408f 100644
--- a/nixos/desktop-environment.nix
+++ b/nixos/desktop-environment.nix
@@ -29,9 +29,7 @@
kitty
mesa-demos
xmodmap
- xwallpaper
- lxqt.lxqt-notificationd
lxqt.lxqt-powermanagement
lxqt.pavucontrol-qt
lxqt.pcmanfm-qt
@@ -40,7 +38,9 @@
lxqt.lxqt-themes
# Useful i3 tools
- dmenu
+ rofi
+ nitrogen
+ dunst
i3status
i3lock
];
diff --git a/rofi/config.rasi b/rofi/config.rasi
new file mode 100644
index 0000000..d6168d9
--- /dev/null
+++ b/rofi/config.rasi
@@ -0,0 +1,133 @@
+configuration {
+ modi: "drun,run,window";
+ show-icons: true;
+ drun-display-format: "{name}";
+ display-drun: " ";
+ display-run: " ";
+ display-window: " ";
+
+ font: "JetBrainsMono Nerd Font 12";
+ icon-theme: "Papirus-Dark";
+}
+
+* {
+ bg0: #282828;
+ bg1: #3c3836;
+ bg2: #504945;
+ bg3: #665c54;
+
+ fg0: #fbf1c7;
+ fg1: #ebdbb2;
+ fg2: #d5c4a1;
+ fg3: #bdae93;
+ fg4: #a89984;
+
+ red: #cc241d;
+ green: #98971a;
+ yellow: #d79921;
+ blue: #458588;
+ purple: #b16286;
+ aqua: #689d6a;
+ orange: #d65d0e;
+
+ border-radius: 10px;
+ spacing: 10px;
+}
+
+window {
+ width: 700px;
+ background-color: @bg0;
+ border: 2px;
+ border-color: @yellow;
+ border-radius: @border-radius;
+ padding: 18px;
+}
+
+mainbox {
+ spacing: @spacing;
+}
+
+inputbar {
+ background-color: @bg1;
+ border-radius: @border-radius;
+ padding: 10px;
+ spacing: 10px;
+ children: [ prompt, entry ];
+}
+
+prompt {
+ text-color: @yellow;
+}
+
+entry {
+ text-color: @fg1;
+ placeholder: "Search...";
+ placeholder-color: @fg4;
+}
+
+listview {
+ lines: 10;
+ columns: 1;
+ cycle: true;
+ dynamic: true;
+ scrollbar: false;
+ spacing: 6px;
+}
+
+scrollbar {
+ width: 4px;
+ handle-color: @yellow;
+ handle-width: 8px;
+ background-color: transparent;
+}
+
+mode-switcher {
+ spacing: 6px;
+}
+
+button {
+ background-color: @bg1;
+ text-color: @fg3;
+ border-radius: 8px;
+ padding: 8px;
+}
+
+button selected {
+ background-color: @blue;
+ text-color: @fg0;
+}
+
+element {
+ border-radius: 8px;
+ padding: 10px;
+ spacing: 12px;
+}
+
+element normal.normal,
+element normal.urgent,
+element normal.active {
+ background-color: transparent;
+ text-color: @fg1;
+}
+
+element alternate.normal,
+element alternate.urgent,
+element alternate.active {
+ background-color: transparent;
+ text-color: @fg1;
+}
+
+element selected.normal {
+ background-color: @bg2;
+ text-color: @fg0;
+}
+
+element selected.active {
+ background-color: @green;
+ text-color: @bg0;
+}
+
+element selected.urgent {
+ background-color: @red;
+ text-color: @fg0;
+}