Skip to content

Instantly share code, notes, and snippets.

View DaveDavenport's full-sized avatar
💭
I may be very slow to respond.

Dave Davenport DaveDavenport

💭
I may be very slow to respond.
View GitHub Profile
diff --git a/Examples/test_script_env.sh b/Examples/test_script_env.sh
index 64899eb7..638443ae 100755
--- a/Examples/test_script_env.sh
+++ b/Examples/test_script_env.sh
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
-
+if [ -z "${ROFI_OUTSIDE}" ]
+then
Program : bCNC
Version : 0.9.10
Last Change : 3 Aug 2017
Platform : linux2
Python : 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0]
TkVersion : 8.6
TclVersion : 8.6
Traceback:
! "Enabled modi" Set from: Default
! rofi.modi: window,run,ssh
! "Window width" Set from: Default
rofi.width: 1000
! "Number of lines" Set from: Default
! rofi.lines: 15
! "Number of columns" Set from: Default
! rofi.columns: 1
! "Font to use" Set from: Default
> rofi -help
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
! <bg>,<fg>, <bgalt>, <hlfg>,<hlbg>
rofi.color-normal: #fdf6e3,#002b36,#eee8d5,#586e75,#eee8d5
rofi.color-urgent: #fdf6e3,#dc322f,#eee8d5,#dc322f,#fdf6e3
rofi.color-active: #fdf6e3,#268bd2,#eee8d5,#268bd2,#fdf6e3
! <background>, <border>
rofi.color-window: #fdf6e3,#002b36
@DaveDavenport
DaveDavenport / gist:91d0141e9f366db09b1e
Created July 5, 2014 17:24
Patch for different sorting.
diff --git a/source/rofi.c b/source/rofi.c
index 40ffaa6..d3a3a96 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -869,6 +869,59 @@ int window_match ( char **tokens, __attribute__( ( unused ) ) const char *input,
return match;
}
+static int lev_sort ( const void *p1, const void *p2, void *arg )
+{
#!/bin/bash
### Dmenu Launcher ###############
# Version 0.5.7 by Scott Garrett #
# Wintervenom [(at)] gmail.com #
##################################
# Depends on: dmenu #
# Optional: slmenu #
##################################
# Changelog #
# 0.4.1 + Read DMENU_OPTIONS #