updated all my files for rofi
authordanix <danix@danix.xyz>
Sun, 19 Mar 2023 11:09:49 +0000 (12:09 +0100)
committerdanix <danix@danix.xyz>
Sun, 19 Mar 2023 11:09:49 +0000 (12:09 +0100)
25 files changed:
scripts/danixland-appsmenu.sh [deleted file]
scripts/danixland-sshmenu.sh [deleted file]
scripts/danixland-window.sh [deleted file]
scripts/darknix-appsmenu.sh [new file with mode: 0755]
scripts/darknix-powermenu.sh [moved from scripts/danixland-powermenu.sh with 79% similarity, mode: 0755]
scripts/darknix-runner.sh [new file with mode: 0755]
scripts/darknix-scrotmenu.sh [moved from scripts/danixland-scrotmenu.sh with 57% similarity, mode: 0755]
scripts/darknix-sshmenu.sh [new file with mode: 0755]
scripts/darknix-utilsmenu.sh [moved from scripts/danixland-utilsmenu.sh with 85% similarity, mode: 0755]
scripts/darknix-window.sh [new file with mode: 0755]
theme/appmenu.rasi [new file with mode: 0644]
theme/appsmenu.rasi [deleted file]
theme/i3exit.rasi [new file with mode: 0644]
theme/libs/reset.rasi [new file with mode: 0644]
theme/libs/settings.rasi [new file with mode: 0644]
theme/main.rasi [new file with mode: 0644]
theme/powermenu.rasi
theme/runner.rasi [new file with mode: 0644]
theme/scrotmenu.rasi
theme/shared/colors/dark-amber.rasi [deleted file]
theme/shared/option-menu.rasi [deleted file]
theme/shared/res/1366x768.rasi [deleted file]
theme/shared/settings.rasi [deleted file]
theme/sshmenu.rasi [new file with mode: 0644]
theme/utilsmenu.rasi

diff --git a/scripts/danixland-appsmenu.sh b/scripts/danixland-appsmenu.sh
deleted file mode 100644 (file)
index b34aac0..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-rofi -no-lazy-grab -show drun -theme danixland/appsmenu.rasi
-
diff --git a/scripts/danixland-sshmenu.sh b/scripts/danixland-sshmenu.sh
deleted file mode 100644 (file)
index 659a36e..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-rofi -no-lazy-grab -show ssh -theme danixland/appsmenu.rasi
-
diff --git a/scripts/danixland-window.sh b/scripts/danixland-window.sh
deleted file mode 100644 (file)
index 28fbfb7..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-case $1 in
-       all )
-               rofi -no-lazy-grab -show window -theme danixland/appsmenu.rasi
-               ;;
-       desktop )
-               rofi -no-lazy-grab -show windowcd -theme danixland/appsmenu.rasi
-               ;;
-esac
-
-
diff --git a/scripts/darknix-appsmenu.sh b/scripts/darknix-appsmenu.sh
new file mode 100755 (executable)
index 0000000..6c499c4
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# rofi -no-lazy-grab -show drun -theme blackpearl/appmenu
+rofi -no-lazy-grab -show drun -theme darknix/appmenu.rasi
+
old mode 100644 (file)
new mode 100755 (executable)
similarity index 79%
rename from scripts/danixland-powermenu.sh
rename to scripts/darknix-powermenu.sh
index 00fa7cf..c81cfd6
@@ -1,17 +1,18 @@
 #!/bin/bash
 
-rofi_command="rofi -theme danixland/powermenu.rasi"
+# rofi_command="rofi -theme blackpearl/powermenu.rasi"
+rofi_command="rofi -theme darknix/powermenu.rasi"
 
 ### Options ###
 power_off=""
 reboot=""
-lock="ï ½"
-suspend="鈴"
-log_out="ï\90¦"
+lock="ï\91\96"
+suspend="⏾" 
+log_out="﫼"
 # Variable passed to rofi
 options="$power_off\n$reboot\n$lock\n$suspend\n$log_out"
 
-chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)"
+chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 0)"
 case $chosen in
     $power_off)
         notify-send 'shutting down' 'the system is going to shutdown now'
@@ -25,7 +26,7 @@ case $chosen in
         ;;
     $lock)
         sleep 1
-        i3lock-wrapper
+        i3lock-fancy
         ;;
     $suspend)
         sleep 1
diff --git a/scripts/darknix-runner.sh b/scripts/darknix-runner.sh
new file mode 100755 (executable)
index 0000000..36517d1
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+rofi -no-lazy-grab -show run -theme darknix/runner.rasi
+
old mode 100644 (file)
new mode 100755 (executable)
similarity index 57%
rename from scripts/danixland-scrotmenu.sh
rename to scripts/darknix-scrotmenu.sh
index e35f92a..dbafcb7
@@ -1,24 +1,19 @@
 #!/bin/bash
 
-rofi_command="rofi -theme danixland/scrotmenu.rasi"
+rofi_command="rofi -theme darknix/scrotmenu.rasi"
 
 ### Options ###
 screen=""
 area=""
-window=""
 # Variable passed to rofi
-options="$screen\n$area\n$window"
+options="$screen\n$area"
 
 chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)"
 case $chosen in
     $screen)
-        sleep 1; i3-scrot
+        i3-scrot -d 3
         ;;
     $area)
         i3-scrot -s
         ;;
-    $window)
-        sleep 1; i3-scrot -u
-        ;;
 esac
-
diff --git a/scripts/darknix-sshmenu.sh b/scripts/darknix-sshmenu.sh
new file mode 100755 (executable)
index 0000000..b70d4b9
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+rofi -no-lazy-grab -show ssh -no-parse-known-hosts -theme darknix/sshmenu.rasi
+
old mode 100644 (file)
new mode 100755 (executable)
similarity index 85%
rename from scripts/danixland-utilsmenu.sh
rename to scripts/darknix-utilsmenu.sh
index 46260f1..9bcab99
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-rofi_command="rofi -theme danixland/utilsmenu.rasi"
+rofi_command="rofi -theme darknix/utilsmenu.rasi"
 
 ### Options ###
 wpaper=""
diff --git a/scripts/darknix-window.sh b/scripts/darknix-window.sh
new file mode 100755 (executable)
index 0000000..eb4f161
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+case $1 in
+       all )
+               rofi -no-lazy-grab -show window -theme darknix/main.rasi
+               ;;
+       desktop )
+               rofi -no-lazy-grab -show windowcd -theme darknix/main.rasi
+               ;;
+esac
+
+
diff --git a/theme/appmenu.rasi b/theme/appmenu.rasi
new file mode 100644 (file)
index 0000000..a01b23c
--- /dev/null
@@ -0,0 +1,163 @@
+/*
+ * DARKNIX appsmenu rofi theme
+ * tested on a 1366x768 screen
+ */
+
+/* IMPORTS */
+@import "libs/settings.rasi"
+@import "libs/reset.rasi"
+
+/** Default settings, every widget inherits from this. */
+* {
+    /** Default background color is transparent. */
+    background-color: @bg-trans;
+    text-color:       @accent;
+}
+
+/**
+ * Entry box on top. 
+ */
+entry {
+    /** Background is grey */
+    background-color: @bg;
+    /** 4px padding on the inside of the border. */
+    padding:       4px;
+    /** when no text is set, show 'Type to filter' */
+    placeholder:       "Type to filter";
+    placeholder-color: @fg;
+    /** inherit font setting from parent */
+    font: inherit;
+    cursor: text;
+       border: 2px 2px 2px 0px;
+    /** with a radius on the left two corners. */ 
+    border-radius: 0px 4px 4px 0px;
+    /** add matching border. */
+    border-color: @accent;
+}
+
+/**
+ * Input bar
+ */
+inputbar {
+    /** no spacing between widgets */
+    spacing: 0;
+    /** include entry and mode-switcher (removes prompt) */
+    children: [  icon-keyboard, entry ];
+    /** use monospace font. */
+    font:   "Montserrat 18";
+    margin: 0 10em 1em;
+}
+
+entry {
+       vertical-align: 0.5;
+}
+
+/**
+ * Small icon in inputbar
+ */
+icon-keyboard {
+    /** give it a 2 pixel border, except on the right side. */
+    border:        2px 0px 2px 2px;
+    /** with a radius on the left two corners. */ 
+    border-radius: 4px 0px 0px 4px;
+    /** add matching border. */
+    border-color: @accent;
+    /** match background. */
+    background-color: @bg;
+    /** move icon away from right border. */
+    padding: 0px 10px 0px 10px;
+    /** Only use required space. */
+    expand: false;
+    /** icon is around 1.2 font width */
+    size: 1.2em;
+    /** Icon name, we use symbolic name here */
+    filename: "keyboard";
+}
+
+/**
+ * Main window widget
+ */
+window {
+    /** Place on top center of rofi window on the top center of the screen. */
+    anchor: north;
+    location: north;
+
+    /** 100% screen width */
+    width: 100%;
+
+    /** Black transparent color. */
+    background-color: @bg-trans;
+    /** Small one 1 font width border on inside of window. */
+    padding: 0 0 2em;
+
+    /** border */
+    border:  0;
+}
+
+/**
+ * Main container in the window.
+ */
+mainbox { 
+    /** spacing between widgets */
+    spacing: 1em;
+}
+
+/**
+ * listview that shows entries.
+ */
+listview {
+    /** 4 rows. */
+    lines: 4;
+    /** 6 columns */
+    columns: 6;
+    /** add 1 em spacing between items */
+    spacing: 0.5em;
+    /** Don't reduce columns if less items are available. */
+    fixed-columns: true;
+}
+scrollbar {
+       enabled: false;
+}
+
+/**
+ * entry in listview.
+ */
+element {
+    /** clients are packed vertically. */
+    orientation:      vertical;
+    /** 2 px border */
+    border:           1px;
+    /** with 4px radius on corners. */
+    border-radius:    1em;
+    border-color:     @accent;
+    background-color: @bg-trans;
+    /** 4 px padding on the inside of border */
+    cursor: pointer;
+    padding:          6px;
+}
+
+/** selected element */
+element selected {
+    /** highlighted colors */
+    background-color: @bg-focus;
+    text-color:       @fg-list;
+}
+
+/** Entry icon */
+element-icon {
+    /** change size to 128 pixels. */
+    size: 128px;
+    cursor: inherit;
+}
+
+/** Entry text */
+element-text {
+    /* align font in (horizontally) center */
+    horizontal-align: 0.5;
+    cursor: inherit;
+}
+element-text selected {
+    border-radius: 1em;
+    background-color: @accent;
+    text-color: @bg;
+}
diff --git a/theme/appsmenu.rasi b/theme/appsmenu.rasi
deleted file mode 100644 (file)
index f01483a..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * This theme is intended for a 8x2 items list menu with a headerbar.
- */
-@import "shared/settings.rasi"
-* {
-  background-color: @transparent;
-  text-color: @foreground-list;
-  font: @text-font;
-}
-#window {
-  background-color: @background-trans;
-  transparency: "background";
-  padding: @list-8-window-padding;
-}
-inputbar,
-prompt,
-textbox-prompt-colon,
-entry {
-  background-color: @background;
-}
-#inputbar {
-  children: [ prompt, textbox-prompt-colon, entry ];
-  margin: @inputbar-margin;
-}
-#prompt {
-  padding: @prompt-padding;
-  background-color: @accent;
-  text-color: @background;
-}
-#textbox-prompt-colon {
-  expand: false;
-  str: "  : :  ";
-  padding: @apps-textbox-prompt-colon-padding;
-}
-#entry {
-  text-color: @accent;
-  padding: @entry-padding;
-}
-#element {
-  padding: @list-element-padding;
-  margin: @list-element-margin;
-  border: @list-element-border;
-  background-color: @background;
-  border-color: @background;
-}
-#element.selected {
-  background-color: @background-focus;
-  text-color: @accent;
-  border-color: @accent;
-}
-
diff --git a/theme/i3exit.rasi b/theme/i3exit.rasi
new file mode 100644 (file)
index 0000000..c142a60
--- /dev/null
@@ -0,0 +1,63 @@
+/*
+ * DARKNIX scrotmenu rofi theme
+ * tested on a 1366x768 screen
+ */
+
+/* IMPORTS */
+@import "libs/settings.rasi"
+@import "libs/reset.rasi"
+
+scrollbar {
+    disabled: true;
+}
+window {
+    fullscreen: true;
+    background-color: @bg-trans;
+    width: 100%;
+    position: north;
+}
+mainbox {
+    children: [ textbox1, listview ];
+    border: 0;
+    padding: 0;
+}
+textbox1 {
+    margin: 1em;
+    padding: 0;
+    width: 100%;
+    text-color: @accent;
+    font: "Montserrat 24";
+    str: "Are you sure you want to exit?";
+    vertical-align: 0.2;
+    horizontal-align: 0.5;
+}
+listview {
+    columns: 2;
+    lines: 1;
+    expand: false;
+    cycle: true;
+    spacing: 4em;
+    /*  60px is the height of the items  */
+    padding: calc(50% - 5em) 22em;
+    orientation: horizontal;
+}
+element {
+    border: 1px;
+    border-radius: 1em 2em;
+    border-color: @accent;
+    background-color: @bg;
+    orientation: horizontal;
+    padding: 2em 0;
+}
+element selected {
+    background-color: @accent;
+/*    border-color: @bg-focus;*/
+}
+element-text {
+    font: "Inconsolata Nerd Font 70";
+    horizontal-align: 0.35;
+    vertical-align: 0.5;
+}
+element-text selected {
+    text-color: @bg;
+}
\ No newline at end of file
diff --git a/theme/libs/reset.rasi b/theme/libs/reset.rasi
new file mode 100644 (file)
index 0000000..e3d4d2f
--- /dev/null
@@ -0,0 +1,19 @@
+* {
+       /* COLORS SETTINGS */
+       accent:                 rgba(255,191,0,1);
+       bg:                     rgba(28,28,28,1);
+       bg-trans:               rgba(28,28,28,0.85);
+       bg-focus:               rgba(40,40,40,1);
+       fg:                     rgba(136,136,136,1);
+       fg-list:                rgba(187,187,187,1);
+       on:                     rgba(68,173,77,1);
+       off:                    rgba(227,64,57,1);
+       transparent:    rgba(255,255,255,0);
+
+       /* STYLE RESET */
+       border: 0;
+       padding: 0;
+       margin: 0;
+       background-color: @transparent;
+       text-color: @accent;
+}
diff --git a/theme/libs/settings.rasi b/theme/libs/settings.rasi
new file mode 100644 (file)
index 0000000..6b4535a
--- /dev/null
@@ -0,0 +1,19 @@
+configuration {
+       modi: "run,window,drun,ssh";
+/*     font: "Inconsolata Nerd Font Regular 12";*/
+       drun-display-format: "{icon} <span weight='light' size='small'><i>{name}</i></span>";
+    display-drun: "Apps";
+       show-icons: true;
+       icon-theme: "MB-Mango-Suru-GLOW";
+       drun-match-fields: "name,generic,exec,category";
+       hide-scrollbar: true;
+       cycle: true;
+/*    fullscreen: true;*/
+       sidebar-mode: false;
+       terminal: "alacritty";
+       ssh-client: "ssh";
+       ssh-command: "{terminal} -e {ssh-client} {host}";
+       run-command: "{cmd}";
+       run-shell-command: "{terminal} -e {cmd}";
+       cache-dir: "/home/danix/.cache/";
+}
diff --git a/theme/main.rasi b/theme/main.rasi
new file mode 100644 (file)
index 0000000..a250c66
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ * BLACKPEARL appsmenu rofi theme
+ * tested on a 1366x768 screen
+ */
+
+/* IMPORTS */
+@import "libs/settings.rasi"
+@import "libs/reset.rasi"
+
+/** Default settings, every widget inherits from this. */
+* {
+    /** Default background color is transparent. */
+    background-color: transparent;
+    /** Default text is white */
+    text-color:       @accent;
+}
+
index dc49261..767ffbf 100644 (file)
@@ -1,13 +1,53 @@
-/**
- * This theme is intended for a 5 items wide menu on a 1920x1080 pixels resolution.
- * You may have to tweak values such as the window padding if you have a different resolution.
+/*
+ * DARKNIX powermenu rofi theme
+ * tested on a 1366x768 screen
  */
-@import "shared/option-menu.rasi"
-#window {
-  padding: @option-5-window-padding;
+
+/* IMPORTS */
+@import "libs/settings.rasi"
+@import "libs/reset.rasi"
+
+scrollbar {
+    disabled: true;
 }
-#listview {
-  spacing: @option-5-listview-spacing;
-  lines: 5;
+window {
+    fullscreen: true;
+    background-color: @bg-trans;
+    width: 100%;
+    position: north;
 }
-
+mainbox {
+    children: [ listview ];
+    border: 0;
+    padding: 0;
+}
+listview {
+    columns: 5;
+    lines: 1;
+    expand: false;
+    cycle: true;
+    spacing: 3em;
+    /*  60px is the height of the items  */
+    padding: calc(50% - 5em) 6em;
+    orientation: horizontal;
+}
+element {
+    border: 1px;
+    border-radius: 1em 2em;
+    border-color: @accent;
+    background-color: @bg;
+    orientation: horizontal;
+    padding: 2em 0;
+}
+element selected {
+    background-color: @accent;
+/*    border-color: @bg-focus;*/
+}
+element-text {
+    font: "Inconsolata Nerd Font 70";
+    horizontal-align: 0.35;
+    vertical-align: 0.5;
+}
+element-text selected {
+    text-color: @bg;
+}
\ No newline at end of file
diff --git a/theme/runner.rasi b/theme/runner.rasi
new file mode 100644 (file)
index 0000000..fa2aabf
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * DARKNIX runner rofi theme
+ * tested on a 1366x768 screen
+ */
+
+/* IMPORTS */
+@import "libs/settings.rasi"
+@import "libs/reset.rasi"
+
+window {
+       anchor: north;
+       location: north;
+       width: 600px;
+       height: 400px;
+       margin: 0;
+       background-color: @bg-trans;
+}
+mainbox {
+       background-color: @bg-trans;
+       children: [ inputbar, listview ];
+    border:  0;
+    padding: 0;
+}
+inputbar {
+}
+prompt {
+       enabled: false;
+}
+entry {
+       text-color: @accent;
+       background-color: @bg-focus;
+       border: 1px solid;
+       border-color: @accent;
+       border-radius: 5px;
+       padding: 10px; 
+       horizontal-align: 0.0;
+       vertical-align: 0.5;
+       placeholder: "enter app to search...";
+       placeholder-color: @fg;
+}
+listview {
+       margin: 60px 0;
+       columns: 1;
+       lines: 12;
+       expand: false;
+       /*cycle: true;*/
+       spacing: 10px;
+       /*padding: 50px 10px;*/
+}
+element {
+       text-color: @fg;
+}
+element.selected {
+       background-color: @bg-focus;
+       text-color: @accent;
+}
index eaa4e38..6440709 100644 (file)
@@ -1,13 +1,53 @@
-/**
- * This theme is intended for a 3 items wide menu on a 1920x1080 pixels resolution.
- * You may have to tweak values such as the window padding if you have a different resolution.
+/*
+ * DARKNIX scrotmenu rofi theme
+ * tested on a 1366x768 screen
  */
-@import "shared/option-menu.rasi"
-#window {
-  padding: @option-3-window-padding;
+
+/* IMPORTS */
+@import "libs/settings.rasi"
+@import "libs/reset.rasi"
+
+scrollbar {
+    disabled: true;
 }
-#listview {
-  spacing: @option-3-listview-spacing;
-  lines: 3;
+window {
+    fullscreen: true;
+    background-color: @bg-trans;
+    width: 100%;
+    position: north;
 }
-
+mainbox {
+    children: [ listview ];
+    border: 0;
+    padding: 0;
+}
+listview {
+    columns: 2;
+    lines: 1;
+    expand: false;
+    cycle: true;
+    spacing: 4em;
+    /*  60px is the height of the items  */
+    padding: calc(50% - 5em) 22em;
+    orientation: horizontal;
+}
+element {
+    border: 1px;
+    border-radius: 1em 2em;
+    border-color: @accent;
+    background-color: @bg;
+    orientation: horizontal;
+    padding: 2em 0;
+}
+element selected {
+    background-color: @accent;
+/*    border-color: @bg-focus;*/
+}
+element-text {
+    font: "Inconsolata Nerd Font 70";
+    horizontal-align: 0.35;
+    vertical-align: 0.5;
+}
+element-text selected {
+    text-color: @bg;
+}
\ No newline at end of file
diff --git a/theme/shared/colors/dark-amber.rasi b/theme/shared/colors/dark-amber.rasi
deleted file mode 100644 (file)
index ef4b960..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-* {
-  accent:           rgba(255,191,0,1);
-  background:       rgba(28,28,28,1);
-  background-trans: rgba(28,28,28,0.85);
-  background-focus: rgba(40,40,40,1);
-  foreground:       rgba(136,136,136,1);
-  foreground-list:  rgba(187,187,187,1);
-  on:               rgba(68,173,77,1);
-  off:              rgba(227,64,57,1);
-  transparent:         rgba(255,255,255,0);
-}
diff --git a/theme/shared/option-menu.rasi b/theme/shared/option-menu.rasi
deleted file mode 100644 (file)
index a5c5f41..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * Settings used in every rofi option menu:
- *  - i3layoutmenu
- *  - mpdmenu
- *  - powermenu
- *  - scrotmenu
- */
-@import "settings.rasi"
-* {
-  background-color: @transparent;
-  text-color: @foreground;
-  font: @icon-font;
-}
-#window {
-  children: [ horibox ];
-  background-color: @background-trans;
-  transparency: "background";
-}
-#horibox {
-  children: [ listview ];
-}
-#listview {
-  layout: horizontal;
-}
-#element {
-  padding: @option-element-padding;
-  background-color: @background;
-}
-#element.selected {
-  background-color: @accent;
-  text-color: @background;
-}
-
diff --git a/theme/shared/res/1366x768.rasi b/theme/shared/res/1366x768.rasi
deleted file mode 100644 (file)
index 7ab9d8b..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-* {
-  /* General */
-  text-font:                            "Roboto Mono Nerd Font Regular 14";
-  text-font-mono:                       "Roboto Mono Nerd Font Regular 14";
-  icon-font:                            "Hurmit Nerd Font Mono 50";
-  icon-font-small:                      "Hurmit Nerd Font Mono 24";
-  inputbar-margin:                      4px 4px;
-  prompt-padding:                       14px 18px;
-  entry-padding:                        16px 14px 14px 0px;
-  /* list menus: appsmenu, networkmenu and nmvpnmenu */
-  list-element-padding:                 13px;
-  list-element-margin:                  @inputbar-margin;
-  list-element-border:                  0px 0px 0px 8px;
-  list-8-window-padding:                120px 100px;
-  /* option menus: i3layoutmenu, mpdmenu, powermenu and scrotmenu */
-  /**
-   * Values bellow are 'no-padding' ones for a size 50 (@icon-font) font, played around using this character: ■
-   * We then add add 70 actual padding around the icons.
-   *                                    -10px 0px   -15px -79px */
-  option-element-padding:               60px  70px  55px  -9px;
-option-2-window-padding:              293px 450px;
-  option-3-window-padding:              293px 290px;
-  option-2-listview-spacing:            220px;
-  option-3-listview-spacing:            100px;
-  option-5-window-padding:              293px 129px;
-  option-5-listview-spacing:            49px;
-  option-6-listview-spacing:            30px;
-  /* appsmenu */
-  apps-textbox-prompt-colon-padding:    16px;
-  /* mpdmenu */
-  mpd-window-padding:                   257px 64px;
-  mpd-inputbar-margin:                  10px 0px;
-  mpd-prompt-padding:                   14px 20px 10px 20px;
-  mpd-prompt-margin:                    0px 0px 0px -2px;
-  mpd-element-border:                   12px;
-  /* Every @option-element-padding minus @mpd-element-border */
-  mpd-element-padding:                  48px 58px 43px -21px;
-  /* networkmenu */
-  network-textbox-prompt-colon-padding: 12px 10px 8px 10px;
-  /* nmvpnmenu */
-  nmvpn-textbox-prompt-colon-padding:   @network-textbox-prompt-colon-padding;
-}
diff --git a/theme/shared/settings.rasi b/theme/shared/settings.rasi
deleted file mode 100644 (file)
index 29e5206..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Allows to change the settings of every menu simply by editing this file
- */
-@import "colors/dark-amber.rasi"
-@import "res/1366x768.rasi"
-
-#window {
-  width: 100%;
-  height: 100%;
-}
-
diff --git a/theme/sshmenu.rasi b/theme/sshmenu.rasi
new file mode 100644 (file)
index 0000000..bc37251
--- /dev/null
@@ -0,0 +1,157 @@
+/*
+ * DARKNIX appsmenu rofi theme
+ * tested on a 1366x768 screen
+ */
+
+/* IMPORTS */
+@import "libs/settings.rasi"
+@import "libs/reset.rasi"
+
+/** Default settings, every widget inherits from this. */
+* {
+    /** Default background color is transparent. */
+    background-color: @bg-trans;
+    text-color:       @accent;
+}
+
+/**
+ * Entry box on top. 
+ */
+entry {
+    /** Background is grey */
+    background-color: @bg;
+    /** 4px padding on the inside of the border. */
+    padding:       4px;
+    /** when no text is set, show 'Type to filter' */
+    placeholder:       "Type to filter";
+    placeholder-color: @fg;
+    /** inherit font setting from parent */
+    font: inherit;
+    cursor: text;
+       border: 2px 2px 2px 0px;
+    /** with a radius on the left two corners. */ 
+    border-radius: 0px 4px 4px 0px;
+    /** add matching border. */
+    border-color: @accent;
+}
+
+/**
+ * Input bar
+ */
+inputbar {
+    /** no spacing between widgets */
+    spacing: 0;
+    /** include entry and mode-switcher (removes prompt) */
+    children: [  icon-keyboard, entry ];
+    /** use monospace font. */
+    font:   "Montserrat 18";
+    margin: 0 10em 1em;
+}
+
+entry {
+       vertical-align: 0.5;
+}
+
+/**
+ * Small icon in inputbar
+ */
+icon-keyboard {
+    /** give it a 2 pixel border, except on the right side. */
+    border:        2px 0px 2px 2px;
+    /** with a radius on the left two corners. */ 
+    border-radius: 4px 0px 0px 4px;
+    /** add matching border. */
+    border-color: @accent;
+    /** match background. */
+    background-color: @bg;
+    /** move icon away from right border. */
+    padding: 0px 10px 0px 10px;
+    /** Only use required space. */
+    expand: false;
+    /** icon is around 1.2 font width */
+    size: 1.2em;
+    /** Icon name, we use symbolic name here */
+    filename: "keyboard";
+}
+
+/**
+ * Main window widget
+ */
+window {
+    fullscreen: true;
+    /** Place on top center of rofi window on the top center of the screen. */
+    anchor: north;
+    location: north;
+
+    /** 100% screen width */
+    width: 100%;
+
+    /** Black transparent color. */
+    background-color: @bg-trans;
+    /** Small one 1 font width border on inside of window. */
+    padding: 0 0 2em;
+
+    /** border */
+    border:  0;
+}
+
+/**
+ * Main container in the window.
+ */
+mainbox { 
+    /** spacing between widgets */
+    spacing: 1em;
+}
+
+/**
+ * listview that shows entries.
+ */
+listview {
+    /** 4 rows. */
+    lines: 3;
+    /** 6 columns */
+    columns: 2;
+    /** add 1 em spacing between items */
+    spacing: 1em;
+    /** Don't reduce columns if less items are available. */
+    fixed-columns: true;
+}
+scrollbar {
+       enabled: false;
+}
+
+/**
+ * entry in listview.
+ */
+element {
+    /** clients are packed vertically. */
+    orientation: vertical;
+    /** 2 px border */
+    border: 1px;
+    /** with 4px radius on corners. */
+    border-radius:    1em;
+    border-color:     @accent;
+    background-color: @bg-trans;
+    /** 4 px padding on the inside of border */
+    cursor: pointer;
+    padding: 2em 3em 3em;
+}
+
+/** selected element */
+element selected {
+    /** highlighted colors */
+    background-color: @accent;
+}
+/** Entry text */
+element-text {
+    /* align font in (horizontally) center */
+    vertical-align: 0.5;
+    horizontal-align: 0.5;
+    cursor: inherit;
+    text-color: @accent;
+}
+element-text selected {
+    border-radius: 1em;
+    background-color: @accent;
+    text-color: @bg;
+}
index fe39c8a..9c155d5 100644 (file)
@@ -1,13 +1,53 @@
-/**
- * This theme is intended for a 3 items wide menu on a 1920x1080 pixels resolution.
- * You may have to tweak values such as the window padding if you have a different resolution.
+/*
+ * DARKNIX utilsmenu rofi theme
+ * tested on a 1366x768 screen
  */
-@import "shared/option-menu.rasi"
-#window {
-  padding: @option-2-window-padding;
+
+/* IMPORTS */
+@import "libs/settings.rasi"
+@import "libs/reset.rasi"
+
+scrollbar {
+    disabled: true;
 }
-#listview {
-  spacing: @option-3-listview-spacing;
-  lines: 3;
+window {
+    fullscreen: true;
+    background-color: @bg-trans;
+    width: 100%;
+    position: north;
 }
-
+mainbox {
+    children: [ listview ];
+    border: 0;
+    padding: 0;
+}
+listview {
+    columns: 2;
+    lines: 1;
+    expand: false;
+    cycle: true;
+    spacing: 4em;
+    /*  60px is the height of the items  */
+    padding: calc(50% - 5em) 22em;
+    orientation: horizontal;
+}
+element {
+    border: 1px;
+    border-radius: 1em 2em;
+    border-color: @accent;
+    background-color: @bg;
+    orientation: horizontal;
+    padding: 2em 0;
+}
+element selected {
+    background-color: @accent;
+/*    border-color: @bg-focus;*/
+}
+element-text {
+    font: "Inconsolata Nerd Font 70";
+    horizontal-align: 0.35;
+    vertical-align: 0.5;
+}
+element-text selected {
+    text-color: @bg;
+}
\ No newline at end of file